Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Next id: 12.
Protobuf type operations_research.MPSolutionResponse
Definition at line 871 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAdditionalSolutions | ( | com.google.ortools.linearsolver.MPSolution | value | ) |
[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;
Definition at line 2367 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAdditionalSolutions | ( | com.google.ortools.linearsolver.MPSolution.Builder | builderForValue | ) |
[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;
Definition at line 2416 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAdditionalSolutions | ( | int | index, |
com.google.ortools.linearsolver.MPSolution | value ) |
[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;
Definition at line 2391 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAdditionalSolutions | ( | int | index, |
com.google.ortools.linearsolver.MPSolution.Builder | builderForValue ) |
[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;
Definition at line 2438 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolution.Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAdditionalSolutionsBuilder | ( | ) |
[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;
Definition at line 2577 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolution.Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAdditionalSolutionsBuilder | ( | 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;
Definition at line 2592 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAllAdditionalSolutions | ( | java.lang.Iterable<? extends com.google.ortools.linearsolver.MPSolution > | values | ) |
[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;
Definition at line 2460 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAllDualValue | ( | java.lang.Iterable<? extends java.lang.Double > | values | ) |
[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];
values | The dualValue to add. |
Definition at line 2061 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAllReducedCost | ( | java.lang.Iterable<? extends java.lang.Double > | values | ) |
[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];
values | The reducedCost to add. |
Definition at line 2214 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAllVariableValue | ( | java.lang.Iterable<? extends java.lang.Double > | values | ) |
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];
values | The variableValue to add. |
Definition at line 1676 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addDualValue | ( | double | value | ) |
[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];
value | The dualValue to add. |
Definition at line 2039 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addReducedCost | ( | double | value | ) |
[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];
value | The reducedCost to add. |
Definition at line 2192 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addVariableValue | ( | double | value | ) |
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];
value | The variableValue to add. |
Definition at line 1657 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolutionResponse com.google.ortools.linearsolver.MPSolutionResponse.Builder.build | ( | ) |
Definition at line 944 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolutionResponse com.google.ortools.linearsolver.MPSolutionResponse.Builder.buildPartial | ( | ) |
Definition at line 953 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clear | ( | ) |
Definition at line 906 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearAdditionalSolutions | ( | ) |
[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;
Definition at line 2483 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearBestObjectiveBound | ( | ) |
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;
Definition at line 1563 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearDualValue | ( | ) |
[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];
Definition at line 2083 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearObjectiveValue | ( | ) |
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;
Definition at line 1491 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearReducedCost | ( | ) |
[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];
Definition at line 2236 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearSolveInfo | ( | ) |
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;
Definition at line 1813 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearSolverSpecificInfo | ( | ) |
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp.SolveLog proto.
optional bytes solver_specific_info = 11;
Definition at line 1930 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearStatus | ( | ) |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
Definition at line 1305 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearStatusStr | ( | ) |
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;
Definition at line 1407 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearVariableValue | ( | ) |
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];
Definition at line 1695 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 2302 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolution.Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.getAdditionalSolutionsBuilder | ( | 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;
Definition at line 2525 of file MPSolutionResponse.java.
java.util.List< com.google.ortools.linearsolver.MPSolution.Builder > com.google.ortools.linearsolver.MPSolutionResponse.Builder.getAdditionalSolutionsBuilderList | ( | ) |
[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;
Definition at line 2609 of file MPSolutionResponse.java.
int com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 2284 of file MPSolutionResponse.java.
java.util.List< com.google.ortools.linearsolver.MPSolution > com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 2266 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolutionOrBuilder com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 2540 of file MPSolutionResponse.java.
java.util.List<? extends com.google.ortools.linearsolver.MPSolutionOrBuilder > com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 2559 of file MPSolutionResponse.java.
double com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1528 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolutionResponse com.google.ortools.linearsolver.MPSolutionResponse.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 939 of file MPSolutionResponse.java.
|
static |
Definition at line 876 of file MPSolutionResponse.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPSolutionResponse.Builder.getDescriptorForType | ( | ) |
Definition at line 934 of file MPSolutionResponse.java.
double com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1998 of file MPSolutionResponse.java.
int com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1981 of file MPSolutionResponse.java.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1964 of file MPSolutionResponse.java.
double com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1460 of file MPSolutionResponse.java.
double com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 2151 of file MPSolutionResponse.java.
int com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 2134 of file MPSolutionResponse.java.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 2117 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolveInfo com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1728 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolveInfo.Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.getSolveInfoBuilder | ( | ) |
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;
Definition at line 1832 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolveInfoOrBuilder com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1846 of file MPSolutionResponse.java.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1901 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolverResponseStatus com.google.ortools.linearsolver.MPSolutionResponse.Builder.getStatus | ( | ) |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 1275 of file MPSolutionResponse.java.
java.lang.String com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1338 of file MPSolutionResponse.java.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1364 of file MPSolutionResponse.java.
double com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1622 of file MPSolutionResponse.java.
int com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1608 of file MPSolutionResponse.java.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1594 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1512 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1446 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1715 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1888 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.hasStatus | ( | ) |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.
Definition at line 1263 of file MPSolutionResponse.java.
boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.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 1324 of file MPSolutionResponse.java.
|
protected |
Definition at line 882 of file MPSolutionResponse.java.
final boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.isInitialized | ( | ) |
Definition at line 1114 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPSolutionResponse | other | ) |
Definition at line 1027 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 1119 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 1018 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeSolveInfo | ( | com.google.ortools.linearsolver.MPSolveInfo | value | ) |
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;
Definition at line 1786 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.removeAdditionalSolutions | ( | 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;
Definition at line 2504 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setAdditionalSolutions | ( | int | index, |
com.google.ortools.linearsolver.MPSolution | value ) |
[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;
Definition at line 2320 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setAdditionalSolutions | ( | int | index, |
com.google.ortools.linearsolver.MPSolution.Builder | builderForValue ) |
[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;
Definition at line 2345 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setBestObjectiveBound | ( | double | value | ) |
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;
value | The bestObjectiveBound to set. |
Definition at line 1544 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setDualValue | ( | int | index, |
double | value ) |
[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 to set the value at. |
value | The dualValue to set. |
Definition at line 2016 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setObjectiveValue | ( | double | value | ) |
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;
value | The objectiveValue to set. |
Definition at line 1474 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setReducedCost | ( | int | index, |
double | value ) |
[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 to set the value at. |
value | The reducedCost to set. |
Definition at line 2169 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setSolveInfo | ( | com.google.ortools.linearsolver.MPSolveInfo | value | ) |
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;
Definition at line 1744 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setSolveInfo | ( | com.google.ortools.linearsolver.MPSolveInfo.Builder | builderForValue | ) |
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;
Definition at line 1766 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setSolverSpecificInfo | ( | com.google.protobuf.ByteString | value | ) |
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp.SolveLog proto.
optional bytes solver_specific_info = 11;
value | The solverSpecificInfo to set. |
Definition at line 1914 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setStatus | ( | com.google.ortools.linearsolver.MPSolverResponseStatus | value | ) |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
value | The status to set. |
Definition at line 1288 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setStatusStr | ( | java.lang.String | value | ) |
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;
value | The statusStr to set. |
Definition at line 1388 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setStatusStrBytes | ( | com.google.protobuf.ByteString | value | ) |
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;
value | The bytes for statusStr to set. |
Definition at line 1425 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setVariableValue | ( | int | index, |
double | value ) |
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 to set the value at. |
value | The variableValue to set. |
Definition at line 1637 of file MPSolutionResponse.java.