Google OR-Tools v9.11
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 2873 of file CpModel.pb.cs.
|
inline |
Definition at line 2898 of file CpModel.pb.cs.
|
inline |
Definition at line 2906 of file CpModel.pb.cs.
|
inline |
Definition at line 3074 of file CpModel.pb.cs.
|
inline |
Definition at line 2917 of file CpModel.pb.cs.
|
inline |
Definition at line 2986 of file CpModel.pb.cs.
|
inline |
Definition at line 2992 of file CpModel.pb.cs.
|
inline |
Definition at line 3009 of file CpModel.pb.cs.
|
inline |
Definition at line 3111 of file CpModel.pb.cs.
|
inline |
Definition at line 3093 of file CpModel.pb.cs.
|
inline |
Definition at line 3024 of file CpModel.pb.cs.
|
inline |
Definition at line 3030 of file CpModel.pb.cs.
|
static |
Field number for the "active_literals" field.
Definition at line 2974 of file CpModel.pb.cs.
|
static |
Field number for the "level_changes" field.
Definition at line 2960 of file CpModel.pb.cs.
|
static |
Field number for the "max_level" field.
Definition at line 2934 of file CpModel.pb.cs.
|
static |
Field number for the "min_level" field.
Definition at line 2922 of file CpModel.pb.cs.
|
static |
Field number for the "time_exprs" field.
Definition at line 2946 of file CpModel.pb.cs.
|
get |
Definition at line 2980 of file CpModel.pb.cs.
|
staticget |
Definition at line 2886 of file CpModel.pb.cs.
|
get |
Currently, we only support constant level changes.
Definition at line 2969 of file CpModel.pb.cs.
|
getset |
Definition at line 2938 of file CpModel.pb.cs.
|
getset |
Definition at line 2926 of file CpModel.pb.cs.
|
staticget |
Definition at line 2882 of file CpModel.pb.cs.
|
get |
affine expressions.
Definition at line 2955 of file CpModel.pb.cs.