Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | Builder |
Public Member Functions | |
java.util.List< java.lang.Integer > | getQvar1IndexList () |
int | getQvar1IndexCount () |
int | getQvar1Index (int index) |
java.util.List< java.lang.Integer > | getQvar2IndexList () |
int | getQvar2IndexCount () |
int | getQvar2Index (int index) |
java.util.List< java.lang.Double > | getCoefficientList () |
int | getCoefficientCount () |
double | getCoefficient (int index) |
final boolean | isInitialized () |
void | writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException |
int | getSerializedSize () |
boolean | equals (final java.lang.Object obj) |
int | hashCode () |
Builder | newBuilderForType () |
Builder | toBuilder () |
com.google.protobuf.Parser< MPQuadraticObjective > | getParserForType () |
com.google.ortools.linearsolver.MPQuadraticObjective | getDefaultInstanceForType () |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.linearsolver.MPQuadraticObjective | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPQuadraticObjective | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPQuadraticObjective | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPQuadraticObjective | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPQuadraticObjective | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPQuadraticObjective | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPQuadraticObjective | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPQuadraticObjective | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.linearsolver.MPQuadraticObjective | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPQuadraticObjective | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.linearsolver.MPQuadraticObjective | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPQuadraticObjective | 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.MPQuadraticObjective prototype) |
static com.google.ortools.linearsolver.MPQuadraticObjective | getDefaultInstance () |
static com.google.protobuf.Parser< MPQuadraticObjective > | parser () |
Static Public Attributes | |
static final int | QVAR1_INDEX_FIELD_NUMBER = 1 |
static final int | QVAR2_INDEX_FIELD_NUMBER = 2 |
static final int | COEFFICIENT_FIELD_NUMBER = 3 |
static final com.google.protobuf.Parser< MPQuadraticObjective > | PARSER |
Protected Member Functions | |
java.lang.Object | newInstance (UnusedPrivateParameter unused) |
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
Quadratic part of a model's objective. Added with other objectives (such as linear), this creates the model's objective function to be optimized. Note: the linear part of the objective currently needs to be specified in the MPVariableProto.objective_coefficient fields. If you'd rather have a dedicated linear array here, talk to or-core-team@
Protobuf type operations_research.MPQuadraticObjective
Definition at line 18 of file MPQuadraticObjective.java.
boolean com.google.ortools.linearsolver.MPQuadraticObjective.equals | ( | final java.lang.Object | obj | ) |
Definition at line 244 of file MPQuadraticObjective.java.
double com.google.ortools.linearsolver.MPQuadraticObjective.getCoefficient | ( | int | index | ) |
Must be finite.
repeated double coefficient = 3;
index | The index of the element to return. |
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 178 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.getCoefficientCount | ( | ) |
Must be finite.
repeated double coefficient = 3;
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 166 of file MPQuadraticObjective.java.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPQuadraticObjective.getCoefficientList | ( | ) |
Must be finite.
repeated double coefficient = 3;
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 155 of file MPQuadraticObjective.java.
|
static |
Definition at line 1017 of file MPQuadraticObjective.java.
com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstanceForType | ( | ) |
Definition at line 1053 of file MPQuadraticObjective.java.
|
static |
Definition at line 41 of file MPQuadraticObjective.java.
com.google.protobuf.Parser< MPQuadraticObjective > com.google.ortools.linearsolver.MPQuadraticObjective.getParserForType | ( | ) |
Definition at line 1048 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.getQvar1Index | ( | int | index | ) |
Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * qvar2_index[i] * coefficient[i]. `qvar1_index` and `qvar2_index` are variable indices w.r.t the "variable" field in MPModelProto. `qvar1_index`, `qvar2_index` and `coefficients` must have the same size. If the same unordered pair (qvar1_index, qvar2_index) appears several times, the sum of all of the associated coefficients will be applied.
repeated int32 qvar1_index = 1;
index | The index of the element to return. |
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 108 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.getQvar1IndexCount | ( | ) |
Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * qvar2_index[i] * coefficient[i]. `qvar1_index` and `qvar2_index` are variable indices w.r.t the "variable" field in MPModelProto. `qvar1_index`, `qvar2_index` and `coefficients` must have the same size. If the same unordered pair (qvar1_index, qvar2_index) appears several times, the sum of all of the associated coefficients will be applied.
repeated int32 qvar1_index = 1;
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 90 of file MPQuadraticObjective.java.
java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPQuadraticObjective.getQvar1IndexList | ( | ) |
Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * qvar2_index[i] * coefficient[i]. `qvar1_index` and `qvar2_index` are variable indices w.r.t the "variable" field in MPModelProto. `qvar1_index`, `qvar2_index` and `coefficients` must have the same size. If the same unordered pair (qvar1_index, qvar2_index) appears several times, the sum of all of the associated coefficients will be applied.
repeated int32 qvar1_index = 1;
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 73 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.getQvar2Index | ( | int | index | ) |
repeated int32 qvar2_index = 2;
index | The index of the element to return. |
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 137 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.getQvar2IndexCount | ( | ) |
repeated int32 qvar2_index = 2;
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 129 of file MPQuadraticObjective.java.
java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPQuadraticObjective.getQvar2IndexList | ( | ) |
repeated int32 qvar2_index = 2;
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 122 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.getSerializedSize | ( | ) |
Definition at line 209 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.hashCode | ( | ) |
Definition at line 264 of file MPQuadraticObjective.java.
|
protected |
Definition at line 47 of file MPQuadraticObjective.java.
final boolean com.google.ortools.linearsolver.MPQuadraticObjective.isInitialized | ( | ) |
Definition at line 184 of file MPQuadraticObjective.java.
|
static |
Definition at line 361 of file MPQuadraticObjective.java.
|
static |
Definition at line 364 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.newBuilderForType | ( | ) |
Definition at line 360 of file MPQuadraticObjective.java.
|
protected |
Definition at line 374 of file MPQuadraticObjective.java.
|
protected |
Definition at line 35 of file MPQuadraticObjective.java.
|
static |
Definition at line 332 of file MPQuadraticObjective.java.
|
static |
Definition at line 338 of file MPQuadraticObjective.java.
|
static |
Definition at line 309 of file MPQuadraticObjective.java.
|
static |
Definition at line 313 of file MPQuadraticObjective.java.
|
static |
Definition at line 298 of file MPQuadraticObjective.java.
|
static |
Definition at line 303 of file MPQuadraticObjective.java.
|
static |
Definition at line 345 of file MPQuadraticObjective.java.
|
static |
Definition at line 351 of file MPQuadraticObjective.java.
|
static |
Definition at line 319 of file MPQuadraticObjective.java.
|
static |
Definition at line 324 of file MPQuadraticObjective.java.
|
static |
Definition at line 287 of file MPQuadraticObjective.java.
|
static |
Definition at line 292 of file MPQuadraticObjective.java.
|
static |
Definition at line 1043 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.toBuilder | ( | ) |
Definition at line 368 of file MPQuadraticObjective.java.
void com.google.ortools.linearsolver.MPQuadraticObjective.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 194 of file MPQuadraticObjective.java.
|
static |
Definition at line 141 of file MPQuadraticObjective.java.
|
static |
Definition at line 1022 of file MPQuadraticObjective.java.
|
static |
Definition at line 53 of file MPQuadraticObjective.java.
|
static |
Definition at line 112 of file MPQuadraticObjective.java.