Google OR-Tools v9.9
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.GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable () |
Next id: 12.
Protobuf type operations_research.MPSolutionResponse
Definition at line 869 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 2397 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 2446 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 2421 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 2468 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 2607 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 2622 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 2490 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 2091 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 2244 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 1706 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 2069 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 2222 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addRepeatedField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
java.lang.Object | value ) |
Definition at line 1042 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 1687 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolutionResponse com.google.ortools.linearsolver.MPSolutionResponse.Builder.build | ( | ) |
Definition at line 942 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolutionResponse com.google.ortools.linearsolver.MPSolutionResponse.Builder.buildPartial | ( | ) |
Definition at line 951 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clear | ( | ) |
Definition at line 904 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 2513 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 1593 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 2113 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field | ) |
Definition at line 1026 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 1521 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearOneof | ( | com.google.protobuf.Descriptors.OneofDescriptor | oneof | ) |
Definition at line 1031 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 2266 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 1843 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 1960 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 1335 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 1437 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 1725 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clone | ( | ) |
Definition at line 1016 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 2332 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 2555 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 2639 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 2314 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 2296 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 2570 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 2589 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 1558 of file MPSolutionResponse.java.
com.google.ortools.linearsolver.MPSolutionResponse com.google.ortools.linearsolver.MPSolutionResponse.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 937 of file MPSolutionResponse.java.
|
static |
Definition at line 874 of file MPSolutionResponse.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPSolutionResponse.Builder.getDescriptorForType | ( | ) |
Definition at line 932 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 2028 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 2011 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 1994 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 1490 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 2181 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 2164 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 2147 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 1758 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 1862 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 1876 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 1931 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 1305 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 1368 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 1394 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 1652 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 1638 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 1624 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 1542 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 1476 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 1745 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 1918 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 1293 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 1354 of file MPSolutionResponse.java.
|
protected |
Definition at line 880 of file MPSolutionResponse.java.
final boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.isInitialized | ( | ) |
Definition at line 1144 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPSolutionResponse | other | ) |
Definition at line 1057 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 1149 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 1048 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 1816 of file MPSolutionResponse.java.
final Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeUnknownFields | ( | final com.google.protobuf.UnknownFieldSet | unknownFields | ) |
Definition at line 2663 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 2534 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 2350 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 2375 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 1574 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 2046 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
java.lang.Object | value ) |
Definition at line 1020 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 1504 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 2199 of file MPSolutionResponse.java.
Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setRepeatedField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
int | index, | ||
java.lang.Object | value ) |
Definition at line 1036 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 1774 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 1796 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 1944 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 1318 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 1418 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 1455 of file MPSolutionResponse.java.
final Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setUnknownFields | ( | final com.google.protobuf.UnknownFieldSet | unknownFields | ) |
Definition at line 2657 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 1667 of file MPSolutionResponse.java.