C++ Reference: class ReservoirConstraint

This documentation is automatically generated.



Specialized reservoir constraint.

This constraint allows adding emptying/refilling events to the reservoir constraint incrementally.

Method
AddEvent

Return type: void

Arguments: IntVar time, int64 demand

Adds a mandatory event It will increase the used capacity by `c demand at time `c time.

AddOptionalEvent

Return type: void

Arguments: IntVar time, int64 demand, BoolVar is_active

Adds a optional event If `c is_active is true, It will increase the used capacity by `c demand at time `c time.