DotNet Reference

.Net Reference

Detailed Description

Specialized NoOverlap2D constraint.

This constraint allows adding rectanles to the NoOverlap2D constraint incrementally.

Definition at line 406 of file Constraints.cs.

Public Member Functions

 NoOverlap2dConstraint (CpModelProto model)
 
NoOverlap2dConstraint AddRectangle (IntervalVar xInterval, IntervalVar yInterval)
 Adds a rectangle (xInterval, yInterval) to the constraint. More...
 
void OnlyEnforceIf (ILiteral lit)
 Adds a literal to the constraint. More...
 
void OnlyEnforceIf (ILiteral[] lits)
 Adds a list of literals to the constraint. More...
 

Properties

int Index [get]
 The index of the constraint in the model. More...
 
ConstraintProto Proto [get, set]
 The underlying constraint proto. More...
 

Constructor & Destructor Documentation

◆ NoOverlap2dConstraint()

NoOverlap2dConstraint ( CpModelProto  model)
inline

Definition at line 408 of file Constraints.cs.

Member Function Documentation

◆ AddRectangle()

NoOverlap2dConstraint AddRectangle ( IntervalVar  xInterval,
IntervalVar  yInterval 
)
inline

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

Definition at line 413 of file Constraints.cs.

◆ OnlyEnforceIf() [1/2]

void OnlyEnforceIf ( ILiteral  lit)
inlineinherited

Adds a literal to the constraint.

Definition at line 38 of file Constraints.cs.

◆ OnlyEnforceIf() [2/2]

void OnlyEnforceIf ( ILiteral[]  lits)
inlineinherited

Adds a list of literals to the constraint.

Definition at line 44 of file Constraints.cs.

Property Documentation

◆ Index

int Index
getinherited

The index of the constraint in the model.

Definition at line 53 of file Constraints.cs.

◆ Proto

ConstraintProto Proto
getsetinherited

The underlying constraint proto.

Definition at line 61 of file Constraints.cs.


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