Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
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) |
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 29 of file ReservoirConstraintProto.java.
boolean com.google.ortools.sat.ReservoirConstraintProto.equals | ( | final java.lang.Object | obj | ) |
Definition at line 319 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 235 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 227 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 220 of file ReservoirConstraintProto.java.
|
static |
Definition at line 1558 of file ReservoirConstraintProto.java.
com.google.ortools.sat.ReservoirConstraintProto com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstanceForType | ( | ) |
Definition at line 1594 of file ReservoirConstraintProto.java.
|
static |
Definition at line 54 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 194 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 183 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 160 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 205 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 172 of file ReservoirConstraintProto.java.
long com.google.ortools.sat.ReservoirConstraintProto.getMaxLevel | ( | ) |
int64 max_level = 2;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 84 of file ReservoirConstraintProto.java.
long com.google.ortools.sat.ReservoirConstraintProto.getMinLevel | ( | ) |
int64 min_level = 1;
Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.
Definition at line 73 of file ReservoirConstraintProto.java.
com.google.protobuf.Parser< ReservoirConstraintProto > com.google.ortools.sat.ReservoirConstraintProto.getParserForType | ( | ) |
Definition at line 1589 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.getSerializedSize | ( | ) |
Definition at line 278 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 133 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 122 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 99 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 144 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 111 of file ReservoirConstraintProto.java.
int com.google.ortools.sat.ReservoirConstraintProto.hashCode | ( | ) |
Definition at line 343 of file ReservoirConstraintProto.java.
|
protected |
Definition at line 60 of file ReservoirConstraintProto.java.
final boolean com.google.ortools.sat.ReservoirConstraintProto.isInitialized | ( | ) |
Definition at line 242 of file ReservoirConstraintProto.java.
|
static |
Definition at line 446 of file ReservoirConstraintProto.java.
|
static |
Definition at line 449 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.newBuilderForType | ( | ) |
Definition at line 445 of file ReservoirConstraintProto.java.
|
protected |
Definition at line 459 of file ReservoirConstraintProto.java.
|
static |
Definition at line 417 of file ReservoirConstraintProto.java.
|
static |
Definition at line 423 of file ReservoirConstraintProto.java.
|
static |
Definition at line 394 of file ReservoirConstraintProto.java.
|
static |
Definition at line 398 of file ReservoirConstraintProto.java.
|
static |
Definition at line 383 of file ReservoirConstraintProto.java.
|
static |
Definition at line 388 of file ReservoirConstraintProto.java.
|
static |
Definition at line 430 of file ReservoirConstraintProto.java.
|
static |
Definition at line 436 of file ReservoirConstraintProto.java.
|
static |
Definition at line 404 of file ReservoirConstraintProto.java.
|
static |
Definition at line 409 of file ReservoirConstraintProto.java.
|
static |
Definition at line 372 of file ReservoirConstraintProto.java.
|
static |
Definition at line 377 of file ReservoirConstraintProto.java.
|
static |
Definition at line 1584 of file ReservoirConstraintProto.java.
Builder com.google.ortools.sat.ReservoirConstraintProto.toBuilder | ( | ) |
Definition at line 453 of file ReservoirConstraintProto.java.
void com.google.ortools.sat.ReservoirConstraintProto.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 252 of file ReservoirConstraintProto.java.
|
static |
Definition at line 210 of file ReservoirConstraintProto.java.
|
static |
Definition at line 149 of file ReservoirConstraintProto.java.
|
static |
Definition at line 77 of file ReservoirConstraintProto.java.
|
static |
Definition at line 66 of file ReservoirConstraintProto.java.
|
static |
Definition at line 88 of file ReservoirConstraintProto.java.