![]() |
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]. 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] Note that min level must be <= 0, and the max level must be >= 0. Please use fixed level_changes to simulate initial state. The array of boolean variables 'actives', if defined, indicates which actions are actually performed. If this array is not defined, then it is assumed that all actions will be performed.
Protobuf type operations_research.sat.ReservoirConstraintProto
Definition at line 31 of file ReservoirConstraintProto.java.
Classes | |
class | Builder |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.sat.ReservoirConstraintProto | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.ReservoirConstraintProto | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.ReservoirConstraintProto | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.ReservoirConstraintProto | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.ReservoirConstraintProto | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.ReservoirConstraintProto | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.sat.ReservoirConstraintProto | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.ReservoirConstraintProto | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.ReservoirConstraintProto | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.sat.ReservoirConstraintProto | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.sat.ReservoirConstraintProto | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.sat.ReservoirConstraintProto | parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static Builder | newBuilder () |
static Builder | newBuilder (com.google.ortools.sat.ReservoirConstraintProto prototype) |
static com.google.ortools.sat.ReservoirConstraintProto | getDefaultInstance () |
static com.google.protobuf.Parser< ReservoirConstraintProto > | parser () |
Static Public Attributes | |
static final int | MIN_LEVEL_FIELD_NUMBER = 1 |
static final int | MAX_LEVEL_FIELD_NUMBER = 2 |
static final int | TIME_EXPRS_FIELD_NUMBER = 3 |
static final int | LEVEL_CHANGES_FIELD_NUMBER = 6 |
static final int | ACTIVE_LITERALS_FIELD_NUMBER = 5 |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
boolean com.google.ortools.sat.ReservoirConstraintProto.equals | ( | final java.lang.Object | obj | ) |
Definition at line 321 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.getActiveLiterals | ( | int | index | ) |
repeated int32 active_literals = 5;
index | The index of the element to return. |
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 237 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.getActiveLiteralsCount | ( | ) |
repeated int32 active_literals = 5;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 229 of file ReservoirConstraintProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.ReservoirConstraintProto.getActiveLiteralsList | ( | ) |
repeated int32 active_literals = 5;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 222 of file ReservoirConstraintProto.java.
|
static |
Definition at line 1560 of file ReservoirConstraintProto.java.
com.google.ortools.sat.ReservoirConstraintProto com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstanceForType | ( | ) |
Definition at line 1596 of file ReservoirConstraintProto.java.
|
static |
Definition at line 56 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ReservoirConstraintProto.getLevelChanges | ( | int | index | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 196 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.getLevelChangesCount | ( | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 185 of file ReservoirConstraintProto.java.
java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.ReservoirConstraintProto.getLevelChangesList | ( | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 162 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ReservoirConstraintProto.getLevelChangesOrBuilder | ( | int | index | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 207 of file ReservoirConstraintProto.java.
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.ReservoirConstraintProto.getLevelChangesOrBuilderList | ( | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 174 of file ReservoirConstraintProto.java.
long com.google.ortools.sat.ReservoirConstraintProto.getMaxLevel | ( | ) |
int64 max_level = 2;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 86 of file ReservoirConstraintProto.java.
long com.google.ortools.sat.ReservoirConstraintProto.getMinLevel | ( | ) |
int64 min_level = 1;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 75 of file ReservoirConstraintProto.java.
com.google.protobuf.Parser< ReservoirConstraintProto > com.google.ortools.sat.ReservoirConstraintProto.getParserForType | ( | ) |
Definition at line 1591 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.getSerializedSize | ( | ) |
Definition at line 280 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ReservoirConstraintProto.getTimeExprs | ( | int | index | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 135 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.getTimeExprsCount | ( | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 124 of file ReservoirConstraintProto.java.
java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.ReservoirConstraintProto.getTimeExprsList | ( | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 101 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ReservoirConstraintProto.getTimeExprsOrBuilder | ( | int | index | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 146 of file ReservoirConstraintProto.java.
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.ReservoirConstraintProto.getTimeExprsOrBuilderList | ( | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 113 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.hashCode | ( | ) |
Definition at line 345 of file ReservoirConstraintProto.java.
|
protected |
Definition at line 62 of file ReservoirConstraintProto.java.
final boolean com.google.ortools.sat.ReservoirConstraintProto.isInitialized | ( | ) |
Definition at line 244 of file ReservoirConstraintProto.java.
|
static |
Definition at line 448 of file ReservoirConstraintProto.java.
|
static |
Definition at line 451 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.newBuilderForType | ( | ) |
Definition at line 447 of file ReservoirConstraintProto.java.
|
protected |
Definition at line 461 of file ReservoirConstraintProto.java.
|
static |
Definition at line 419 of file ReservoirConstraintProto.java.
|
static |
Definition at line 425 of file ReservoirConstraintProto.java.
|
static |
Definition at line 396 of file ReservoirConstraintProto.java.
|
static |
Definition at line 400 of file ReservoirConstraintProto.java.
|
static |
Definition at line 385 of file ReservoirConstraintProto.java.
|
static |
Definition at line 390 of file ReservoirConstraintProto.java.
|
static |
Definition at line 432 of file ReservoirConstraintProto.java.
|
static |
Definition at line 438 of file ReservoirConstraintProto.java.
|
static |
Definition at line 406 of file ReservoirConstraintProto.java.
|
static |
Definition at line 411 of file ReservoirConstraintProto.java.
|
static |
Definition at line 374 of file ReservoirConstraintProto.java.
|
static |
Definition at line 379 of file ReservoirConstraintProto.java.
|
static |
Definition at line 1586 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.toBuilder | ( | ) |
Definition at line 455 of file ReservoirConstraintProto.java.
void com.google.ortools.sat.ReservoirConstraintProto.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 254 of file ReservoirConstraintProto.java.
|
static |
Definition at line 212 of file ReservoirConstraintProto.java.
|
static |
Definition at line 151 of file ReservoirConstraintProto.java.
|
static |
Definition at line 79 of file ReservoirConstraintProto.java.
|
static |
Definition at line 68 of file ReservoirConstraintProto.java.
|
static |
Definition at line 90 of file ReservoirConstraintProto.java.