Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
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 486 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addActiveLiterals | ( | int | value | ) |
repeated int32 active_literals = 5;
value | The activeLiterals to add. |
Definition at line 1516 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addAllActiveLiterals | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
repeated int32 active_literals = 5;
values | The activeLiterals to add. |
Definition at line 1529 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addAllLevelChanges | ( | java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > | values | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1330 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addAllTimeExprs | ( | java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > | values | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 1018 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChanges | ( | com.google.ortools.sat.LinearExpressionProto | value | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1253 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChanges | ( | com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1294 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChanges | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto | value ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1273 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChanges | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1312 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChangesBuilder | ( | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1423 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChangesBuilder | ( | int | index | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1434 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprs | ( | com.google.ortools.sat.LinearExpressionProto | value | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 941 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprs | ( | com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 982 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprs | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto | value ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 961 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprs | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 1000 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprsBuilder | ( | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 1111 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprsBuilder | ( | int | index | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 1122 of file ReservoirConstraintProto.java.
com.google.ortools.sat.ReservoirConstraintProto com.google.ortools.sat.ReservoirConstraintProto.Builder.build | ( | ) |
Definition at line 549 of file ReservoirConstraintProto.java.
com.google.ortools.sat.ReservoirConstraintProto com.google.ortools.sat.ReservoirConstraintProto.Builder.buildPartial | ( | ) |
Definition at line 558 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.clear | ( | ) |
Definition at line 514 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.clearActiveLiterals | ( | ) |
repeated int32 active_literals = 5;
Definition at line 1542 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.clearLevelChanges | ( | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1349 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.clearMaxLevel | ( | ) |
int64 max_level = 2;
Definition at line 834 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.clearMinLevel | ( | ) |
int64 min_level = 1;
Definition at line 802 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.clearTimeExprs | ( | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 1037 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.Builder.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 1493 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.Builder.getActiveLiteralsCount | ( | ) |
repeated int32 active_literals = 5;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 1485 of file ReservoirConstraintProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.ReservoirConstraintProto.Builder.getActiveLiteralsList | ( | ) |
repeated int32 active_literals = 5;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 1477 of file ReservoirConstraintProto.java.
com.google.ortools.sat.ReservoirConstraintProto com.google.ortools.sat.ReservoirConstraintProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 544 of file ReservoirConstraintProto.java.
|
static |
Definition at line 491 of file ReservoirConstraintProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.ReservoirConstraintProto.Builder.getDescriptorForType | ( | ) |
Definition at line 539 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ReservoirConstraintProto.Builder.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 1200 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.getLevelChangesBuilder | ( | int | index | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1383 of file ReservoirConstraintProto.java.
java.util.List< com.google.ortools.sat.LinearExpressionProto.Builder > com.google.ortools.sat.ReservoirConstraintProto.Builder.getLevelChangesBuilderList | ( | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1447 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.Builder.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 1186 of file ReservoirConstraintProto.java.
java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.ReservoirConstraintProto.Builder.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 1172 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ReservoirConstraintProto.Builder.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 1394 of file ReservoirConstraintProto.java.
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.ReservoirConstraintProto.Builder.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 1409 of file ReservoirConstraintProto.java.
long com.google.ortools.sat.ReservoirConstraintProto.Builder.getMaxLevel | ( | ) |
int64 max_level = 2;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 815 of file ReservoirConstraintProto.java.
long com.google.ortools.sat.ReservoirConstraintProto.Builder.getMinLevel | ( | ) |
int64 min_level = 1;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 783 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprs | ( | int | index | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 888 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsBuilder | ( | int | index | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 1071 of file ReservoirConstraintProto.java.
java.util.List< com.google.ortools.sat.LinearExpressionProto.Builder > com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsBuilderList | ( | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 1135 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsCount | ( | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 874 of file ReservoirConstraintProto.java.
java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsList | ( | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 860 of file ReservoirConstraintProto.java.
com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsOrBuilder | ( | int | index | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 1082 of file ReservoirConstraintProto.java.
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsOrBuilderList | ( | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 1097 of file ReservoirConstraintProto.java.
|
protected |
Definition at line 497 of file ReservoirConstraintProto.java.
final boolean com.google.ortools.sat.ReservoirConstraintProto.Builder.isInitialized | ( | ) |
Definition at line 688 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.mergeFrom | ( | com.google.ortools.sat.ReservoirConstraintProto | other | ) |
Definition at line 611 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 693 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 602 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.removeLevelChanges | ( | int | index | ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1366 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.removeTimeExprs | ( | int | index | ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 1054 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setActiveLiterals | ( | int | index, |
int | value ) |
repeated int32 active_literals = 5;
index | The index to set the value at. |
value | The activeLiterals to set. |
Definition at line 1502 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setLevelChanges | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto | value ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1214 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setLevelChanges | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue ) |
Currently, we only support constant level changes.
repeated .operations_research.sat.LinearExpressionProto level_changes = 6;
Definition at line 1235 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setMaxLevel | ( | long | value | ) |
int64 max_level = 2;
value | The maxLevel to set. |
Definition at line 823 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setMinLevel | ( | long | value | ) |
int64 min_level = 1;
value | The minLevel to set. |
Definition at line 791 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setTimeExprs | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto | value ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 902 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setTimeExprs | ( | int | index, |
com.google.ortools.sat.LinearExpressionProto.Builder | builderForValue ) |
affine expressions.
repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;
Definition at line 923 of file ReservoirConstraintProto.java.