![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Specialized reservoir constraint.
This constraint allows adding events (time, levelChange, isActive (optional)) to the reservoir constraint incrementally.
Definition at line 24 of file ReservoirConstraint.java.
| com.google.ortools.sat.ReservoirConstraint.ReservoirConstraint | ( | CpModel | model | ) |
Definition at line 25 of file ReservoirConstraint.java.
| com.google.ortools.sat.ReservoirConstraint.ReservoirConstraint | ( | CpModel | model | ) |
Definition at line 25 of file ReservoirConstraint.java.
| ReservoirConstraint com.google.ortools.sat.ReservoirConstraint.addEvent | ( | LinearArgument | time, |
| long | levelChange ) |
Adds a mandatory event
It will increase the used capacity by levelChange at time time. time must be an affine expression.
Definition at line 36 of file ReservoirConstraint.java.
| ReservoirConstraint com.google.ortools.sat.ReservoirConstraint.addEvent | ( | LinearArgument | time, |
| long | levelChange ) |
Adds a mandatory event
It will increase the used capacity by levelChange at time time. time must be an affine expression.
Definition at line 36 of file ReservoirConstraint.java.
| ReservoirConstraint com.google.ortools.sat.ReservoirConstraint.addEvent | ( | long | time, |
| long | levelChange ) |
Adds a mandatory event at a fixed time
It will increase the used capacity by levelChange at time time.
Definition at line 50 of file ReservoirConstraint.java.
| ReservoirConstraint com.google.ortools.sat.ReservoirConstraint.addEvent | ( | long | time, |
| long | levelChange ) |
Adds a mandatory event at a fixed time
It will increase the used capacity by levelChange at time time.
Definition at line 50 of file ReservoirConstraint.java.
| ReservoirConstraint com.google.ortools.sat.ReservoirConstraint.addOptionalEvent | ( | LinearExpr | time, |
| long | levelChange, | ||
| Literal | isActive ) |
Adds an optional event
If isActive is true, It will increase the used capacity by levelChange at time time. time must be an affine expression.
Definition at line 64 of file ReservoirConstraint.java.
| ReservoirConstraint com.google.ortools.sat.ReservoirConstraint.addOptionalEvent | ( | LinearExpr | time, |
| long | levelChange, | ||
| Literal | isActive ) |
Adds an optional event
If isActive is true, It will increase the used capacity by levelChange at time time. time must be an affine expression.
Definition at line 64 of file ReservoirConstraint.java.
| ReservoirConstraint com.google.ortools.sat.ReservoirConstraint.addOptionalEvent | ( | long | time, |
| long | levelChange, | ||
| Literal | isActive ) |
Adds an optional event at a fixed time
If isActive is true, It will increase the used capacity by levelChange at time time.
Definition at line 78 of file ReservoirConstraint.java.
| ReservoirConstraint com.google.ortools.sat.ReservoirConstraint.addOptionalEvent | ( | long | time, |
| long | levelChange, | ||
| Literal | isActive ) |
Adds an optional event at a fixed time
If isActive is true, It will increase the used capacity by levelChange at time time.
Definition at line 78 of file ReservoirConstraint.java.