[CP-SAT] inactive max_hs code; use better core code when the objective is pseudo-boolean

This commit is contained in:
Laurent Perron
2022-02-14 13:31:52 +01:00
parent d2a66654b4
commit d78ce574fc
7 changed files with 221 additions and 331 deletions

View File

@@ -1404,7 +1404,7 @@ bool FixedModuloPropagator::PropagateOuterBounds() {
bool FixedModuloPropagator::PropagateBoundsWhenExprIsPositive(
AffineExpression expr, AffineExpression target) {
const IntegerValue min_target = integer_trail_->LowerBound(target);
DCHECK_GE(min_target, 0);
DCHECK_GE(min_target, 0) << target.DebugString();
const IntegerValue max_target = integer_trail_->UpperBound(target);
// The propagation rules below will not be triggered if the domain of target