Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.Sat.CumulativeConstraint Class Reference

Specialized cumulative constraint. More...

Inheritance diagram for Google.OrTools.Sat.CumulativeConstraint:
Google.OrTools.Sat.Constraint

Public Member Functions

 CumulativeConstraint (CpModel cp_model, CpModelProto model)
 
CumulativeConstraint AddDemand< D > (IntervalVar interval, D demand)
 Adds a pair (interval, demand) to the constraint.
 
CumulativeConstraint AddDemands< D > (IEnumerable< IntervalVar > intervals, IEnumerable< D > demands)
 Adds all pairs (interval, demand) to the constraint.
 
- Public Member Functions inherited from Google.OrTools.Sat.Constraint
 Constraint (CpModelProto model)
 
void OnlyEnforceIf (ILiteral lit)
 Adds a literal to the constraint.
 
void OnlyEnforceIf (ILiteral[] lits)
 Adds a list of literals to the constraint.
 

Additional Inherited Members

- Properties inherited from Google.OrTools.Sat.Constraint
int Index [get]
 The index of the constraint in the model.
 
ConstraintProto Proto [get, set]
 The underlying constraint proto.
 

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.

Constructor & Destructor Documentation

◆ CumulativeConstraint()

Google.OrTools.Sat.CumulativeConstraint.CumulativeConstraint ( CpModel cp_model,
CpModelProto model )
inline

Definition at line 366 of file Constraints.cs.

Member Function Documentation

◆ AddDemand< D >()

CumulativeConstraint Google.OrTools.Sat.CumulativeConstraint.AddDemand< D > ( IntervalVar interval,
D demand )
inline

Adds a pair (interval, demand) to the constraint.

Definition at line 372 of file Constraints.cs.

◆ AddDemands< D >()

CumulativeConstraint Google.OrTools.Sat.CumulativeConstraint.AddDemands< D > ( IEnumerable< IntervalVar > intervals,
IEnumerable< D > demands )
inline

Adds all pairs (interval, demand) to the constraint.

Definition at line 382 of file Constraints.cs.


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