![]()  | 
  
    Google OR-Tools v9.14
    
   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 3106 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] | 
| affine expressions.   | |
| pbc::RepeatedField< global::Google.OrTools.Sat.LinearExpressionProto > | LevelChanges [get] | 
| Currently, we only support constant level changes.   | |
| pbc::RepeatedField< int > | ActiveLiterals [get] | 
      
  | 
  inline | 
Definition at line 3131 of file CpModel.pb.cs.
      
  | 
  inline | 
Definition at line 3139 of file CpModel.pb.cs.
      
  | 
  inline | 
Definition at line 3307 of file CpModel.pb.cs.
      
  | 
  inline | 
Definition at line 3150 of file CpModel.pb.cs.
      
  | 
  inline | 
Definition at line 3219 of file CpModel.pb.cs.
      
  | 
  inline | 
Definition at line 3225 of file CpModel.pb.cs.
      
  | 
  inline | 
Definition at line 3242 of file CpModel.pb.cs.
      
  | 
  inline | 
Definition at line 3344 of file CpModel.pb.cs.
      
  | 
  inline | 
Definition at line 3326 of file CpModel.pb.cs.
      
  | 
  inline | 
Definition at line 3257 of file CpModel.pb.cs.
      
  | 
  inline | 
Definition at line 3263 of file CpModel.pb.cs.
      
  | 
  static | 
Field number for the "active_literals" field.
Definition at line 3207 of file CpModel.pb.cs.
      
  | 
  static | 
Field number for the "level_changes" field.
Definition at line 3193 of file CpModel.pb.cs.
      
  | 
  static | 
Field number for the "max_level" field.
Definition at line 3167 of file CpModel.pb.cs.
      
  | 
  static | 
Field number for the "min_level" field.
Definition at line 3155 of file CpModel.pb.cs.
      
  | 
  static | 
Field number for the "time_exprs" field.
Definition at line 3179 of file CpModel.pb.cs.
      
  | 
  get | 
Definition at line 3213 of file CpModel.pb.cs.
      
  | 
  staticget | 
Definition at line 3119 of file CpModel.pb.cs.
      
  | 
  get | 
Currently, we only support constant level changes.
Definition at line 3202 of file CpModel.pb.cs.
      
  | 
  getset | 
Definition at line 3171 of file CpModel.pb.cs.
      
  | 
  getset | 
Definition at line 3159 of file CpModel.pb.cs.
      
  | 
  staticget | 
Definition at line 3115 of file CpModel.pb.cs.
      
  | 
  get | 
affine expressions.
Definition at line 3188 of file CpModel.pb.cs.