Google OR-Tools v9.11
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 () |
Public Member Functions inherited from com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder |
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 392 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 942 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 734 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 828 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 925 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 711 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 815 of file MPQuadraticObjective.java.
com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPQuadraticObjective.Builder.build | ( | ) |
Definition at line 441 of file MPQuadraticObjective.java.
com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPQuadraticObjective.Builder.buildPartial | ( | ) |
Definition at line 450 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.clear | ( | ) |
Definition at line 420 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.clearCoefficient | ( | ) |
Must be finite.
repeated double coefficient = 3;
Definition at line 959 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 757 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.clearQvar2Index | ( | ) |
repeated int32 qvar2_index = 2;
Definition at line 841 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 894 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 882 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 870 of file MPQuadraticObjective.java.
com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPQuadraticObjective.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 436 of file MPQuadraticObjective.java.
|
static |
Definition at line 397 of file MPQuadraticObjective.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPQuadraticObjective.Builder.getDescriptorForType | ( | ) |
Definition at line 431 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 668 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 650 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 632 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 792 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 784 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 776 of file MPQuadraticObjective.java.
|
protected |
Definition at line 403 of file MPQuadraticObjective.java.
final boolean com.google.ortools.linearsolver.MPQuadraticObjective.Builder.isInitialized | ( | ) |
Definition at line 524 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPQuadraticObjective | other | ) |
Definition at line 483 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 529 of file MPQuadraticObjective.java.
Builder com.google.ortools.linearsolver.MPQuadraticObjective.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 474 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 907 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 687 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 801 of file MPQuadraticObjective.java.