Skip to content

Commit d8fa9b1

Browse files
committed
fix #5064
1 parent dc20433 commit d8fa9b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ortools/flatzinc/cp_model_fz_solver.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1821,6 +1821,7 @@ void CpModelProtoWithMapping::OrToolsArgMax(const fz::Constraint& fz_ct,
18211821
for (const auto& [value, literal] : GetFullEncoding(z)) {
18221822
if (value < min_index || value >= min_index + num_vars) {
18231823
AddImplication({}, NegatedRef(literal));
1824+
continue;
18241825
}
18251826
const int64_t index = value - min_index;
18261827
AddLinearConstraint({literal}, Domain(index - num_vars),

0 commit comments

Comments
 (0)