![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Maintain a reservoir level within bounds. The water level starts at 0, and at any time, it must be within [min_level, max_level]. More...
Public Member Functions | |
ReservoirConstraintProto () | |
ReservoirConstraintProto (ReservoirConstraintProto other) | |
ReservoirConstraintProto | Clone () |
override bool | Equals (object other) |
bool | Equals (ReservoirConstraintProto other) |
override int | GetHashCode () |
override string | ToString () |
void | WriteTo (pb::CodedOutputStream output) |
int | CalculateSize () |
void | MergeFrom (ReservoirConstraintProto other) |
void | MergeFrom (pb::CodedInputStream input) |
Static Public Attributes | |
const int | MinLevelFieldNumber = 1 |
Field number for the "min_level" field. | |
const int | MaxLevelFieldNumber = 2 |
Field number for the "max_level" field. | |
const int | TimeExprsFieldNumber = 3 |
Field number for the "time_exprs" field. | |
const int | LevelChangesFieldNumber = 6 |
Field number for the "level_changes" field. | |
const int | ActiveLiteralsFieldNumber = 5 |
Field number for the "active_literals" field. | |
Properties | |
static pb::MessageParser< ReservoirConstraintProto > | Parser [get] |
static pbr::MessageDescriptor | Descriptor [get] |
long | MinLevel [get, set] |
long | MaxLevel [get, set] |
pbc::RepeatedField< global::Google.OrTools.Sat.LinearExpressionProto > | TimeExprs [get] |
affine expressions. | |
pbc::RepeatedField< global::Google.OrTools.Sat.LinearExpressionProto > | LevelChanges [get] |
Currently, we only support constant level changes. | |
pbc::RepeatedField< int > | ActiveLiterals [get] |
Maintain a reservoir level within bounds. The water level starts at 0, and at any time, it must be within [min_level, max_level].
If the variable active_literals[i] is true, and if the expression time_exprs[i] is assigned a value t, then the current level changes by level_changes[i] at the time t. Therefore, at any time t: sum(level_changes[i] * active_literals[i] if time_exprs[i] <= t) in [min_level, max_level]
Definition at line 3102 of file CpModel.pb.cs.
|
inline |
Definition at line 3127 of file CpModel.pb.cs.
|
inline |
Definition at line 3135 of file CpModel.pb.cs.
|
inline |
Definition at line 3303 of file CpModel.pb.cs.
|
inline |
Definition at line 3146 of file CpModel.pb.cs.
|
inline |
Definition at line 3215 of file CpModel.pb.cs.
|
inline |
Definition at line 3221 of file CpModel.pb.cs.
|
inline |
Definition at line 3238 of file CpModel.pb.cs.
|
inline |
Definition at line 3340 of file CpModel.pb.cs.
|
inline |
Definition at line 3322 of file CpModel.pb.cs.
|
inline |
Definition at line 3253 of file CpModel.pb.cs.
|
inline |
Definition at line 3259 of file CpModel.pb.cs.
|
static |
Field number for the "active_literals" field.
Definition at line 3203 of file CpModel.pb.cs.
|
static |
Field number for the "level_changes" field.
Definition at line 3189 of file CpModel.pb.cs.
|
static |
Field number for the "max_level" field.
Definition at line 3163 of file CpModel.pb.cs.
|
static |
Field number for the "min_level" field.
Definition at line 3151 of file CpModel.pb.cs.
|
static |
Field number for the "time_exprs" field.
Definition at line 3175 of file CpModel.pb.cs.
|
get |
Definition at line 3209 of file CpModel.pb.cs.
|
staticget |
Definition at line 3115 of file CpModel.pb.cs.
|
get |
Currently, we only support constant level changes.
Definition at line 3198 of file CpModel.pb.cs.
|
getset |
Definition at line 3167 of file CpModel.pb.cs.
|
getset |
Definition at line 3155 of file CpModel.pb.cs.
|
staticget |
Definition at line 3111 of file CpModel.pb.cs.
|
get |
affine expressions.
Definition at line 3184 of file CpModel.pb.cs.