Skip to content

Commit f9177bd

Browse files
committed
fix
1 parent 7e98e7b commit f9177bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ortools/sat/cp_model_presolve.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3650,6 +3650,7 @@ void CpModelPresolver::ProcessOneLinearWithAmo(int ct_index,
36503650
if (!PropagateDomainsInLinear(/*ct_index=*/-1, &temp_ct_)) {
36513651
return;
36523652
}
3653+
if (context_->ModelIsUnsat()) return;
36533654
}
36543655

36553656
// Extract enforcement or fix literal.

0 commit comments

Comments
 (0)