DotNet Reference
.Net Reference
Detailed Description
Specialized cumulative constraint.
This constraint allows adding (interval, demand) pairs to the cumulative constraint incrementally.
Definition at line 364 of file Constraints.cs.
Public Member Functions | |
CumulativeConstraint (CpModel cp_model, CpModelProto model) | |
CumulativeConstraint | AddDemand< D > (IntervalVar interval, D demand) |
Adds a pair (interval, demand) to the constraint. More... | |
CumulativeConstraint | AddDemands< D > (IEnumerable< IntervalVar > intervals, IEnumerable< D > demands) |
Adds all pairs (interval, demand) 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
◆ CumulativeConstraint()
|
inline |
Definition at line 366 of file Constraints.cs.
Member Function Documentation
◆ AddDemand< D >()
|
inline |
Adds a pair (interval, demand) to the constraint.
Definition at line 372 of file Constraints.cs.
◆ AddDemands< D >()
|
inline |
Adds all pairs (interval, demand) to the constraint.
Definition at line 382 of file Constraints.cs.
◆ OnlyEnforceIf() [1/2]
|
inlineinherited |
Adds a literal to the constraint.
Definition at line 38 of file Constraints.cs.
◆ OnlyEnforceIf() [2/2]
|
inlineinherited |
Adds a list of literals to the constraint.
Definition at line 44 of file Constraints.cs.
Property Documentation
◆ Index
|
getinherited |
The index of the constraint in the model.
Definition at line 53 of file Constraints.cs.
◆ 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: