Skip to content

Commit

Permalink
Fix treatment of IntAffineView in IntLinCombFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
cprudhom committed Sep 6, 2024
1 parent 300f539 commit bbfdfff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static Constraint reduce(IntVar[] VARS, int[] COEFFS, Operator OPERATOR,
long b = view.b;
NVARS[i] = var;
NCOEFFS[i] *= a;
RESULT += b * NCOEFFS[i];
RESULT -= b * NCOEFFS[i];
}
int id = NVARS[i].getId();
int pos = map.get(id);
Expand Down

0 comments on commit bbfdfff

Please sign in to comment.