![]() |
Google OR-Tools v9.12
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.linearsolver.MPSolutionResponse | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPSolutionResponse | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPSolutionResponse | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPSolutionResponse | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPSolutionResponse | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPSolutionResponse | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPSolutionResponse | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPSolutionResponse | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.linearsolver.MPSolutionResponse | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPSolutionResponse | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.linearsolver.MPSolutionResponse | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPSolutionResponse | 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.MPSolutionResponse prototype) |
static com.google.ortools.linearsolver.MPSolutionResponse | getDefaultInstance () |
static com.google.protobuf.Parser< MPSolutionResponse > | parser () |
Static Public Attributes | |
static final int | STATUS_FIELD_NUMBER = 1 |
static final int | STATUS_STR_FIELD_NUMBER = 7 |
static final int | OBJECTIVE_VALUE_FIELD_NUMBER = 2 |
static final int | BEST_OBJECTIVE_BOUND_FIELD_NUMBER = 5 |
static final int | VARIABLE_VALUE_FIELD_NUMBER = 3 |
static final int | SOLVE_INFO_FIELD_NUMBER = 10 |
static final int | SOLVER_SPECIFIC_INFO_FIELD_NUMBER = 11 |
static final int | DUAL_VALUE_FIELD_NUMBER = 4 |
static final int | REDUCED_COST_FIELD_NUMBER = 6 |
static final int | ADDITIONAL_SOLUTIONS_FIELD_NUMBER = 8 |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
Next id: 12.
Protobuf type operations_research.MPSolutionResponse
Definition at line 15 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.equals | ( | final java.lang.Object | obj | ) |
Definition at line 667 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolutionResponse.getAdditionalSolutions | ( | int | index | ) |
[Advanced usage.] If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that number of additional solutions may be populated here, if available. These additional solutions are different than the main solution described by the above fields `objective_value` and `variable_value`.
repeated .operations_research.MPSolution additional_solutions = 8;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 515 of file MPSolutionResponse.java.
int com.google.ortools.linearsolver.MPSolutionResponse.getAdditionalSolutionsCount | ( | ) |
[Advanced usage.] If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that number of additional solutions may be populated here, if available. These additional solutions are different than the main solution described by the above fields `objective_value` and `variable_value`.
repeated .operations_research.MPSolution additional_solutions = 8;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 500 of file MPSolutionResponse.java.
java.util.List< com.google.ortools.linearsolver.MPSolution > com.google.ortools.linearsolver.MPSolutionResponse.getAdditionalSolutionsList | ( | ) |
[Advanced usage.] If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that number of additional solutions may be populated here, if available. These additional solutions are different than the main solution described by the above fields `objective_value` and `variable_value`.
repeated .operations_research.MPSolution additional_solutions = 8;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 469 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolutionOrBuilder com.google.ortools.linearsolver.MPSolutionResponse.getAdditionalSolutionsOrBuilder | ( | int | index | ) |
[Advanced usage.] If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that number of additional solutions may be populated here, if available. These additional solutions are different than the main solution described by the above fields `objective_value` and `variable_value`.
repeated .operations_research.MPSolution additional_solutions = 8;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 530 of file MPSolutionResponse.java.
java.util.List<? extends com.google.ortools.linearsolver.MPSolutionOrBuilder > com.google.ortools.linearsolver.MPSolutionResponse.getAdditionalSolutionsOrBuilderList | ( | ) |
[Advanced usage.] If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that number of additional solutions may be populated here, if available. These additional solutions are different than the main solution described by the above fields `objective_value` and `variable_value`.
repeated .operations_research.MPSolution additional_solutions = 8;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 485 of file MPSolutionResponse.java.
double com.google.ortools.linearsolver.MPSolutionResponse.getBestObjectiveBound | ( | ) |
This field is only filled for MIP problems. For a minimization problem, this is a lower bound on the optimal objective value. For a maximization problem, it is an upper bound. It is only filled if the status is OPTIMAL or FEASIBLE. In the former case, best_objective_bound should be equal to objective_value (modulo numerical errors).
optional double best_objective_bound = 5;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 215 of file MPSolutionResponse.java.
|
static |
Definition at line 2637 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolutionResponse com.google.ortools.linearsolver.MPSolutionResponse.getDefaultInstanceForType | ( | ) |
Definition at line 2673 of file MPSolutionResponse.java.
|
static |
Definition at line 44 of file MPSolutionResponse.java.
double com.google.ortools.linearsolver.MPSolutionResponse.getDualValue | ( | int | index | ) |
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto::constraint field. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
index | The index of the element to return. |
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 392 of file MPSolutionResponse.java.
int com.google.ortools.linearsolver.MPSolutionResponse.getDualValueCount | ( | ) |
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto::constraint field. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 375 of file MPSolutionResponse.java.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponse.getDualValueList | ( | ) |
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto::constraint field. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 359 of file MPSolutionResponse.java.
double com.google.ortools.linearsolver.MPSolutionResponse.getObjectiveValue | ( | ) |
Objective value corresponding to the "variable_value" below, taking into account the source "objective_offset" and "objective_coefficient". This is set iff 'status' is OPTIMAL or FEASIBLE.
optional double objective_value = 2;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 180 of file MPSolutionResponse.java.
com.google.protobuf.Parser< MPSolutionResponse > com.google.ortools.linearsolver.MPSolutionResponse.getParserForType | ( | ) |
Definition at line 2668 of file MPSolutionResponse.java.
double com.google.ortools.linearsolver.MPSolutionResponse.getReducedCost | ( | int | index | ) |
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto::variable. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
index | The index of the element to return. |
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 449 of file MPSolutionResponse.java.
int com.google.ortools.linearsolver.MPSolutionResponse.getReducedCostCount | ( | ) |
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto::variable. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 432 of file MPSolutionResponse.java.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponse.getReducedCostList | ( | ) |
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto::variable. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 416 of file MPSolutionResponse.java.
int com.google.ortools.linearsolver.MPSolutionResponse.getSerializedSize | ( | ) |
Definition at line 596 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolveInfo com.google.ortools.linearsolver.MPSolutionResponse.getSolveInfo | ( | ) |
Contains extra information about the solve, populated if the underlying solver (and its interface) supports it. As of 2021/07/19 this is supported by SCIP and Gurobi proto solves.
optional .operations_research.MPSolveInfo solve_info = 10;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 294 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolveInfoOrBuilder com.google.ortools.linearsolver.MPSolutionResponse.getSolveInfoOrBuilder | ( | ) |
Contains extra information about the solve, populated if the underlying solver (and its interface) supports it. As of 2021/07/19 this is supported by SCIP and Gurobi proto solves.
optional .operations_research.MPSolveInfo solve_info = 10;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 307 of file MPSolutionResponse.java.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPSolutionResponse.getSolverSpecificInfo | ( | ) |
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp.SolveLog proto.
optional bytes solver_specific_info = 11;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 336 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolverResponseStatus com.google.ortools.linearsolver.MPSolutionResponse.getStatus | ( | ) |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 78 of file MPSolutionResponse.java.
java.lang.String com.google.ortools.linearsolver.MPSolutionResponse.getStatusStr | ( | ) |
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_INVALID_MODE, this can hold a description of why the model is invalid. This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 113 of file MPSolutionResponse.java.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPSolutionResponse.getStatusStrBytes | ( | ) |
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_INVALID_MODE, this can hold a description of why the model is invalid. This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 140 of file MPSolutionResponse.java.
double com.google.ortools.linearsolver.MPSolutionResponse.getVariableValue | ( | int | index | ) |
Variable values in the same order as the MPModelProto::variable field. This is a dense representation. These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double variable_value = 3 [packed = true];
index | The index of the element to return. |
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 262 of file MPSolutionResponse.java.
int com.google.ortools.linearsolver.MPSolutionResponse.getVariableValueCount | ( | ) |
Variable values in the same order as the MPModelProto::variable field. This is a dense representation. These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double variable_value = 3 [packed = true];
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 248 of file MPSolutionResponse.java.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponse.getVariableValueList | ( | ) |
Variable values in the same order as the MPModelProto::variable field. This is a dense representation. These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double variable_value = 3 [packed = true];
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 235 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.hasBestObjectiveBound | ( | ) |
This field is only filled for MIP problems. For a minimization problem, this is a lower bound on the optimal objective value. For a maximization problem, it is an upper bound. It is only filled if the status is OPTIMAL or FEASIBLE. In the former case, best_objective_bound should be equal to objective_value (modulo numerical errors).
optional double best_objective_bound = 5;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 199 of file MPSolutionResponse.java.
int com.google.ortools.linearsolver.MPSolutionResponse.hashCode | ( | ) |
Definition at line 720 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.hasObjectiveValue | ( | ) |
Objective value corresponding to the "variable_value" below, taking into account the source "objective_offset" and "objective_coefficient". This is set iff 'status' is OPTIMAL or FEASIBLE.
optional double objective_value = 2;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 166 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.hasSolveInfo | ( | ) |
Contains extra information about the solve, populated if the underlying solver (and its interface) supports it. As of 2021/07/19 this is supported by SCIP and Gurobi proto solves.
optional .operations_research.MPSolveInfo solve_info = 10;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 280 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.hasSolverSpecificInfo | ( | ) |
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp.SolveLog proto.
optional bytes solver_specific_info = 11;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 323 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.hasStatus | ( | ) |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 67 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.hasStatusStr | ( | ) |
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_INVALID_MODE, this can hold a description of why the model is invalid. This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 98 of file MPSolutionResponse.java.
|
protected |
Definition at line 50 of file MPSolutionResponse.java.
final boolean com.google.ortools.linearsolver.MPSolutionResponse.isInitialized | ( | ) |
Definition at line 537 of file MPSolutionResponse.java.
|
static |
Definition at line 847 of file MPSolutionResponse.java.
|
static |
Definition at line 850 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.newBuilderForType | ( | ) |
Definition at line 846 of file MPSolutionResponse.java.
|
protected |
Definition at line 860 of file MPSolutionResponse.java.
|
static |
Definition at line 818 of file MPSolutionResponse.java.
|
static |
Definition at line 824 of file MPSolutionResponse.java.
|
static |
Definition at line 795 of file MPSolutionResponse.java.
|
static |
Definition at line 799 of file MPSolutionResponse.java.
|
static |
Definition at line 784 of file MPSolutionResponse.java.
|
static |
Definition at line 789 of file MPSolutionResponse.java.
|
static |
Definition at line 831 of file MPSolutionResponse.java.
|
static |
Definition at line 837 of file MPSolutionResponse.java.
|
static |
Definition at line 805 of file MPSolutionResponse.java.
|
static |
Definition at line 810 of file MPSolutionResponse.java.
|
static |
Definition at line 773 of file MPSolutionResponse.java.
|
static |
Definition at line 778 of file MPSolutionResponse.java.
|
static |
Definition at line 2663 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.toBuilder | ( | ) |
Definition at line 854 of file MPSolutionResponse.java.
void com.google.ortools.linearsolver.MPSolutionResponse.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 547 of file MPSolutionResponse.java.
|
static |
Definition at line 454 of file MPSolutionResponse.java.
|
static |
Definition at line 184 of file MPSolutionResponse.java.
|
static |
Definition at line 340 of file MPSolutionResponse.java.
|
static |
Definition at line 153 of file MPSolutionResponse.java.
|
static |
Definition at line 397 of file MPSolutionResponse.java.
|
static |
Definition at line 267 of file MPSolutionResponse.java.
|
static |
Definition at line 311 of file MPSolutionResponse.java.
|
static |
Definition at line 57 of file MPSolutionResponse.java.
|
static |
Definition at line 83 of file MPSolutionResponse.java.
|
static |
Definition at line 219 of file MPSolutionResponse.java.