Class NoOverlap2dConstraint
java.lang.Object
com.google.ortools.sat.Constraint
com.google.ortools.sat.NoOverlap2dConstraint
Specialized NoOverlap2D constraint.
This constraint allows adding rectangles to the NoOverlap2D constraint incrementally.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRectangle
(IntervalVar xInterval, IntervalVar yInterval) Adds a rectangle (xInterval, yInterval) to the constraint.Methods inherited from class com.google.ortools.sat.Constraint
getBuilder, getIndex, onlyEnforceIf, onlyEnforceIf
-
Constructor Details
-
NoOverlap2dConstraint
-
-
Method Details
-
addRectangle
Adds a rectangle (xInterval, yInterval) to the constraint.- Parameters:
xInterval
- the x interval of the rectangle.yInterval
- the y interval of the rectangle.- Returns:
- this constraint
-