Skip to content

Commit

Permalink
Fixed SMG bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatfpmK committed Dec 6, 2024
1 parent dc3ee84 commit 45b863e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ namespace synthesis {
for (auto choice : transitionMatrix.getRowGroupIndices(state)) {
if (maximize ? epsilonGreaterOrEqual(constrainedChoiceValues[choice], result[state]) : epsilonGreaterOrEqual(result[state], constrainedChoiceValues[choice])) {
optimalChoices[state] = stateRowIndex;
optimalChoiceSet.set(state);
break;
}
stateRowIndex++;
Expand All @@ -169,6 +170,7 @@ namespace synthesis {
for (auto choice : transitionMatrix.getRowGroupIndices(state)) {
if (maximize ? epsilonGreaterOrEqual(result[state], constrainedChoiceValues[choice]) : epsilonGreaterOrEqual(constrainedChoiceValues[choice], result[state])) {
optimalChoices[state] = stateRowIndex;
optimalChoiceSet.set(state);
break;
}
stateRowIndex++;
Expand Down

0 comments on commit 45b863e

Please sign in to comment.