We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9161340 commit 462c8d7Copy full SHA for 462c8d7
src/solvers/liap/nfgliap.cc
@@ -38,12 +38,7 @@ class StrategicLyapunovFunction : public FunctionOnSimplices {
38
: m_game(p_start.GetGame()), m_profile(p_start)
39
{
40
m_scale = m_game->GetMaxPayoff() - m_game->GetMinPayoff();
41
- if (m_scale == 0.0) {
42
- m_scale = 1.0;
43
- }
44
- else {
45
- m_scale = 1.0 / m_scale;
46
+ m_scale = (m_scale == 0.0) ? 1.0 : 1.0 / m_scale;
47
}
48
~StrategicLyapunovFunction() override = default;
49
0 commit comments