![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
Builder | clear () |
com.google.protobuf.Descriptors.Descriptor | getDescriptorForType () |
com.google.ortools.linearsolver.MPQuadraticObjective | getDefaultInstanceForType () |
com.google.ortools.linearsolver.MPQuadraticObjective | build () |
com.google.ortools.linearsolver.MPQuadraticObjective | buildPartial () |
Builder | mergeFrom (com.google.protobuf.Message other) |
Builder | mergeFrom (com.google.ortools.linearsolver.MPQuadraticObjective other) |
final boolean | isInitialized () |
Builder | mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
java.util.List< java.lang.Integer > | getQvar1IndexList () |
int | getQvar1IndexCount () |
int | getQvar1Index (int index) |
Builder | setQvar1Index (int index, int value) |
Builder | addQvar1Index (int value) |
Builder | addAllQvar1Index (java.lang.Iterable<? extends java.lang.Integer > values) |
Builder | clearQvar1Index () |
java.util.List< java.lang.Integer > | getQvar2IndexList () |
int | getQvar2IndexCount () |
int | getQvar2Index (int index) |
Builder | setQvar2Index (int index, int value) |
Builder | addQvar2Index (int value) |
Builder | addAllQvar2Index (java.lang.Iterable<? extends java.lang.Integer > values) |
Builder | clearQvar2Index () |
java.util.List< java.lang.Double > | getCoefficientList () |
int | getCoefficientCount () |
double | getCoefficient (int index) |
Builder | setCoefficient (int index, double value) |
Builder | addCoefficient (double value) |
Builder | addAllCoefficient (java.lang.Iterable<? extends java.lang.Double > values) |
Builder | clearCoefficient () |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
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 393 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.addAllCoefficient | ( | java.lang.Iterable<? extends java.lang.Double > | values | ) |
Must be finite.
repeated double coefficient = 3;
values | The coefficient to add. |
Definition at line 943 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.addAllQvar1Index | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
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;
values | The qvar1Index to add. |
Definition at line 735 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.addAllQvar2Index | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
repeated int32 qvar2_index = 2;
values | The qvar2Index to add. |
Definition at line 829 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.addCoefficient | ( | double | value | ) |
Must be finite.
repeated double coefficient = 3;
value | The coefficient to add. |
Definition at line 926 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.addQvar1Index | ( | int | value | ) |
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;
value | The qvar1Index to add. |
Definition at line 712 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.addQvar2Index | ( | int | value | ) |
repeated int32 qvar2_index = 2;
value | The qvar2Index to add. |
Definition at line 816 of file MPQuadraticObjective.java.
com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPQuadraticObjective.Builder.build | ( | ) |
Definition at line 442 of file MPQuadraticObjective.java.
com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPQuadraticObjective.Builder.buildPartial | ( | ) |
Definition at line 451 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.clear | ( | ) |
Definition at line 421 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.clearCoefficient | ( | ) |
Must be finite.
repeated double coefficient = 3;
Definition at line 960 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.clearQvar1Index | ( | ) |
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;
Definition at line 758 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.clearQvar2Index | ( | ) |
repeated int32 qvar2_index = 2;
Definition at line 842 of file MPQuadraticObjective.java.
double com.google.ortools.linearsolver.MPQuadraticObjective.Builder.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 895 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.Builder.getCoefficientCount | ( | ) |
Must be finite.
repeated double coefficient = 3;
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 883 of file MPQuadraticObjective.java.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPQuadraticObjective.Builder.getCoefficientList | ( | ) |
Must be finite.
repeated double coefficient = 3;
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 871 of file MPQuadraticObjective.java.
com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPQuadraticObjective.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 437 of file MPQuadraticObjective.java.
|
static |
Definition at line 398 of file MPQuadraticObjective.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPQuadraticObjective.Builder.getDescriptorForType | ( | ) |
Definition at line 432 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.Builder.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 669 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.Builder.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 651 of file MPQuadraticObjective.java.
java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPQuadraticObjective.Builder.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 633 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.Builder.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 793 of file MPQuadraticObjective.java.
int com.google.ortools.linearsolver.MPQuadraticObjective.Builder.getQvar2IndexCount | ( | ) |
repeated int32 qvar2_index = 2;
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 785 of file MPQuadraticObjective.java.
java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPQuadraticObjective.Builder.getQvar2IndexList | ( | ) |
repeated int32 qvar2_index = 2;
Implements com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.
Definition at line 777 of file MPQuadraticObjective.java.
|
protected |
Definition at line 404 of file MPQuadraticObjective.java.
final boolean com.google.ortools.linearsolver.MPQuadraticObjective.Builder.isInitialized | ( | ) |
Definition at line 525 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPQuadraticObjective | other | ) |
Definition at line 484 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 530 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 475 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.setCoefficient | ( | int | index, |
double | value ) |
Must be finite.
repeated double coefficient = 3;
index | The index to set the value at. |
value | The coefficient to set. |
Definition at line 908 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.setQvar1Index | ( | int | index, |
int | value ) |
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 to set the value at. |
value | The qvar1Index to set. |
Definition at line 688 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.setQvar2Index | ( | int | index, |
int | value ) |
repeated int32 qvar2_index = 2;
index | The index to set the value at. |
value | The qvar2Index to set. |
Definition at line 802 of file MPQuadraticObjective.java.