Java Reference
Java Reference
Detailed Description
Sets a variable's value equal to a function on a set of variables and, optionally, a constant.
Protobuf type
Definition at line 14 of file MPArrayWithConstantConstraint.java.
Classes | |
| class | Builder |
Public Member Functions | |
| .lang.Override final com.google.protobuf.UnknownFieldSet | getUnknownFields () |
| .lang.Override java.util.List< java.lang.Integer > | getVarIndexList () |
| int | getVarIndexCount () |
| int | getVarIndex (int index) |
| .lang.Override boolean | hasConstant () |
optional double constant = 2; More... | |
| .lang.Override double | getConstant () |
optional double constant = 2; More... | |
| .lang.Override boolean | hasResultantVarIndex () |
optional int32 resultant_var_index = 3; More... | |
| .lang.Override int | getResultantVarIndex () |
optional int32 resultant_var_index = 3; More... | |
| .lang.Override final boolean | isInitialized () |
| .lang.Override void | writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException |
| .lang.Override int | getSerializedSize () |
| .lang.Override boolean | equals (final java.lang.Object obj) |
| .lang.Override int | hashCode () |
| .lang.Override Builder | newBuilderForType () |
| .lang.Override Builder | toBuilder () |
| .lang.Override com.google.protobuf.Parser< MPArrayWithConstantConstraint > | getParserForType () |
| .lang.Override com.google.ortools.linearsolver.MPArrayWithConstantConstraint | getDefaultInstanceForType () |
Static Public Member Functions | |
| static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseFrom (java.io.InputStream input) throws java.io.IOException |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
| static Builder | newBuilder () |
| static Builder | newBuilder (com.google.ortools.linearsolver.MPArrayWithConstantConstraint prototype) |
| static com.google.ortools.linearsolver.MPArrayWithConstantConstraint | getDefaultInstance () |
| static com.google.protobuf.Parser< MPArrayWithConstantConstraint > | parser () |
Static Public Attributes | |
| static final int | VAR_INDEX_FIELD_NUMBER = 1 |
| static final int | CONSTANT_FIELD_NUMBER = 2 |
| static final int | RESULTANT_VAR_INDEX_FIELD_NUMBER = 3 |
| .lang.Deprecated static final com.google.protobuf.Parser< MPArrayWithConstantConstraint > | PARSER |
Protected Member Functions | |
| .lang.Override java.lang.Object | newInstance (UnusedPrivateParameter unused) |
| .lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable () |
| .lang.Override Builder | newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
Member Function Documentation
◆ equals()
|
inline |
Definition at line 260 of file MPArrayWithConstantConstraint.java.
◆ getConstant()
|
inline |
optional double constant = 2;
- Returns
- The constant.
Implements MPArrayWithConstantConstraintOrBuilder.
Definition at line 182 of file MPArrayWithConstantConstraint.java.
◆ getDefaultInstance()
|
inlinestatic |
Definition at line 799 of file MPArrayWithConstantConstraint.java.
◆ getDefaultInstanceForType()
|
inline |
Definition at line 824 of file MPArrayWithConstantConstraint.java.
◆ getDescriptor()
|
inlinestatic |
Definition at line 112 of file MPArrayWithConstantConstraint.java.
◆ getParserForType()
|
inline |
Definition at line 819 of file MPArrayWithConstantConstraint.java.
◆ getResultantVarIndex()
|
inline |
optional int32 resultant_var_index = 3;
- Returns
- The resultantVarIndex.
Implements MPArrayWithConstantConstraintOrBuilder.
Definition at line 201 of file MPArrayWithConstantConstraint.java.
◆ getSerializedSize()
|
inline |
Definition at line 232 of file MPArrayWithConstantConstraint.java.
◆ getUnknownFields()
|
inline |
Definition at line 36 of file MPArrayWithConstantConstraint.java.
◆ getVarIndex()
|
inline |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
- Parameters
-
index The index of the element to return.
- Returns
- The varIndex at the given index.
Implements MPArrayWithConstantConstraintOrBuilder.
Definition at line 163 of file MPArrayWithConstantConstraint.java.
◆ getVarIndexCount()
|
inline |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
- Returns
- The count of varIndex.
Implements MPArrayWithConstantConstraintOrBuilder.
Definition at line 150 of file MPArrayWithConstantConstraint.java.
◆ getVarIndexList()
|
inline |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
- Returns
- A list containing the varIndex.
Implements MPArrayWithConstantConstraintOrBuilder.
Definition at line 138 of file MPArrayWithConstantConstraint.java.
◆ hasConstant()
|
inline |
optional double constant = 2;
- Returns
- Whether the constant field is set.
Implements MPArrayWithConstantConstraintOrBuilder.
Definition at line 174 of file MPArrayWithConstantConstraint.java.
◆ hashCode()
|
inline |
Definition at line 287 of file MPArrayWithConstantConstraint.java.
◆ hasResultantVarIndex()
|
inline |
optional int32 resultant_var_index = 3;
- Returns
- Whether the resultantVarIndex field is set.
Implements MPArrayWithConstantConstraintOrBuilder.
Definition at line 193 of file MPArrayWithConstantConstraint.java.
◆ internalGetFieldAccessorTable()
|
inlineprotected |
Definition at line 118 of file MPArrayWithConstantConstraint.java.
◆ isInitialized()
|
inline |
Definition at line 207 of file MPArrayWithConstantConstraint.java.
◆ newBuilder() [1/2]
|
inlinestatic |
Definition at line 383 of file MPArrayWithConstantConstraint.java.
◆ newBuilder() [2/2]
|
inlinestatic |
Definition at line 386 of file MPArrayWithConstantConstraint.java.
◆ newBuilderForType() [1/2]
|
inline |
Definition at line 382 of file MPArrayWithConstantConstraint.java.
◆ newBuilderForType() [2/2]
|
inlineprotected |
Definition at line 396 of file MPArrayWithConstantConstraint.java.
◆ newInstance()
|
inlineprotected |
Definition at line 29 of file MPArrayWithConstantConstraint.java.
◆ parseDelimitedFrom() [1/2]
|
inlinestatic |
Definition at line 355 of file MPArrayWithConstantConstraint.java.
◆ parseDelimitedFrom() [2/2]
|
inlinestatic |
Definition at line 360 of file MPArrayWithConstantConstraint.java.
◆ parseFrom() [1/10]
|
inlinestatic |
Definition at line 333 of file MPArrayWithConstantConstraint.java.
◆ parseFrom() [2/10]
|
inlinestatic |
Definition at line 337 of file MPArrayWithConstantConstraint.java.
◆ parseFrom() [3/10]
|
inlinestatic |
Definition at line 322 of file MPArrayWithConstantConstraint.java.
◆ parseFrom() [4/10]
|
inlinestatic |
Definition at line 327 of file MPArrayWithConstantConstraint.java.
◆ parseFrom() [5/10]
|
inlinestatic |
Definition at line 367 of file MPArrayWithConstantConstraint.java.
◆ parseFrom() [6/10]
|
inlinestatic |
Definition at line 373 of file MPArrayWithConstantConstraint.java.
◆ parseFrom() [7/10]
|
inlinestatic |
Definition at line 343 of file MPArrayWithConstantConstraint.java.
◆ parseFrom() [8/10]
|
inlinestatic |
Definition at line 348 of file MPArrayWithConstantConstraint.java.
◆ parseFrom() [9/10]
|
inlinestatic |
Definition at line 311 of file MPArrayWithConstantConstraint.java.
◆ parseFrom() [10/10]
|
inlinestatic |
Definition at line 316 of file MPArrayWithConstantConstraint.java.
◆ parser()
|
inlinestatic |
Definition at line 814 of file MPArrayWithConstantConstraint.java.
◆ toBuilder()
|
inline |
Definition at line 390 of file MPArrayWithConstantConstraint.java.
◆ writeTo()
|
inline |
Definition at line 217 of file MPArrayWithConstantConstraint.java.
Member Data Documentation
◆ CONSTANT_FIELD_NUMBER
|
static |
Definition at line 167 of file MPArrayWithConstantConstraint.java.
◆ PARSER
|
static |
Definition at line 804 of file MPArrayWithConstantConstraint.java.
◆ RESULTANT_VAR_INDEX_FIELD_NUMBER
|
static |
Definition at line 186 of file MPArrayWithConstantConstraint.java.
◆ VAR_INDEX_FIELD_NUMBER
|
static |
Definition at line 125 of file MPArrayWithConstantConstraint.java.
The documentation for this class was generated from the following file: