Skip to content

Commit

Permalink
Mark remaining capacity constraints as lazy.
Browse files Browse the repository at this point in the history
  • Loading branch information
sukritkalra committed Nov 9, 2023
1 parent 6606803 commit a051860
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions schedulers/tetrisched/src/CapacityConstraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ void CapacityConstraint::translate(SolverModelPtr solverModel) {
capacityConstraint->addTerm(-1 * usageUpperBound);
capacityConstraint->addTerm(usageUpperBound, overlapVariable);
}
capacityConstraint->addAttribute(ConstraintAttribute::LAZY_CONSTRAINT);
solverModel->addConstraint(capacityConstraint);
// if (!capacityConstraint->isTriviallySatisfiable()) {
// // COMMENT (Sukrit): We can try to see if adding Lazy constraints
Expand Down

0 comments on commit a051860

Please sign in to comment.