Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.NoOverlap2dConstraint Class Reference
Inheritance diagram for com.google.ortools.sat.NoOverlap2dConstraint:
com.google.ortools.sat.Constraint com.google.ortools.sat.Constraint

Public Member Functions

 NoOverlap2dConstraint (CpModelProto.Builder builder)
 
NoOverlap2dConstraint addRectangle (IntervalVar xInterval, IntervalVar yInterval)
 Adds a rectangle (xInterval, yInterval) to the constraint.
 
 NoOverlap2dConstraint (CpModelProto.Builder builder)
 
NoOverlap2dConstraint addRectangle (IntervalVar xInterval, IntervalVar yInterval)
 Adds a rectangle (xInterval, yInterval) to the constraint.
 
- Public Member Functions inherited from com.google.ortools.sat.Constraint
 Constraint (CpModelProto.Builder builder)
 
void onlyEnforceIf (Literal lit)
 
void onlyEnforceIf (Literal[] lits)
 
int getIndex ()
 
ConstraintProto.Builder getBuilder ()
 
 Constraint (CpModelProto.Builder builder)
 
void onlyEnforceIf (Literal lit)
 
void onlyEnforceIf (Literal[] lits)
 
int getIndex ()
 
ConstraintProto.Builder getBuilder ()
 

Detailed Description

Specialized NoOverlap2D constraint.

This constraint allows adding rectanles to the NoOverlap2D constraint incrementally.

Definition at line 24 of file NoOverlap2dConstraint.java.

Constructor & Destructor Documentation

◆ NoOverlap2dConstraint() [1/2]

com.google.ortools.sat.NoOverlap2dConstraint.NoOverlap2dConstraint ( CpModelProto.Builder builder)

Definition at line 25 of file NoOverlap2dConstraint.java.

◆ NoOverlap2dConstraint() [2/2]

com.google.ortools.sat.NoOverlap2dConstraint.NoOverlap2dConstraint ( CpModelProto.Builder builder)

Definition at line 25 of file NoOverlap2dConstraint.java.

Member Function Documentation

◆ addRectangle() [1/2]

NoOverlap2dConstraint com.google.ortools.sat.NoOverlap2dConstraint.addRectangle ( IntervalVar xInterval,
IntervalVar yInterval )

Adds a rectangle (xInterval, yInterval) to the constraint.

Definition at line 30 of file NoOverlap2dConstraint.java.

◆ addRectangle() [2/2]

NoOverlap2dConstraint com.google.ortools.sat.NoOverlap2dConstraint.addRectangle ( IntervalVar xInterval,
IntervalVar yInterval )

Adds a rectangle (xInterval, yInterval) to the constraint.

Definition at line 30 of file NoOverlap2dConstraint.java.


The documentation for this class was generated from the following files: