![]() |
Google OR-Tools v9.15
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...
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 3098 of file CpModel.pb.cs.
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] |
| pbc::RepeatedField< global::Google.OrTools.Sat.LinearExpressionProto > | LevelChanges [get] |
| pbc::RepeatedField< int > | ActiveLiterals [get] |
|
inline |
Definition at line 3123 of file CpModel.pb.cs.
|
inline |
Definition at line 3131 of file CpModel.pb.cs.
|
inline |
Definition at line 3293 of file CpModel.pb.cs.
|
inline |
Definition at line 3142 of file CpModel.pb.cs.
|
inline |
Definition at line 3205 of file CpModel.pb.cs.
|
inline |
Definition at line 3211 of file CpModel.pb.cs.
|
inline |
Definition at line 3228 of file CpModel.pb.cs.
|
inline |
Definition at line 3330 of file CpModel.pb.cs.
|
inline |
Definition at line 3312 of file CpModel.pb.cs.
|
inline |
Definition at line 3243 of file CpModel.pb.cs.
|
inline |
Definition at line 3249 of file CpModel.pb.cs.
|
static |
Field number for the "active_literals" field.
Definition at line 3193 of file CpModel.pb.cs.
|
static |
Field number for the "level_changes" field.
Definition at line 3182 of file CpModel.pb.cs.
|
static |
Field number for the "max_level" field.
Definition at line 3159 of file CpModel.pb.cs.
|
static |
Field number for the "min_level" field.
Definition at line 3147 of file CpModel.pb.cs.
|
static |
Field number for the "time_exprs" field.
Definition at line 3171 of file CpModel.pb.cs.
|
get |
Definition at line 3199 of file CpModel.pb.cs.
|
staticget |
Definition at line 3111 of file CpModel.pb.cs.
|
get |
Definition at line 3188 of file CpModel.pb.cs.
|
getset |
Definition at line 3163 of file CpModel.pb.cs.
|
getset |
Definition at line 3151 of file CpModel.pb.cs.
|
staticget |
Definition at line 3107 of file CpModel.pb.cs.
|
get |
Definition at line 3177 of file CpModel.pb.cs.