Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Definition at line 7 of file MPSolutionResponseOrBuilder.java.
com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
int com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
java.util.List< com.google.ortools.linearsolver.MPSolution > com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
com.google.ortools.linearsolver.MPSolutionOrBuilder com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
java.util.List<? extends com.google.ortools.linearsolver.MPSolutionOrBuilder > com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
double com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
double com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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. |
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
int com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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];
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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];
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
double com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
double com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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. |
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
int com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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];
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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];
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
com.google.ortools.linearsolver.MPSolveInfo com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
com.google.ortools.linearsolver.MPSolveInfoOrBuilder com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.getSolverSpecificInfo | ( | ) |
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp.SolveLog proto.
optional bytes solver_specific_info = 11;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
com.google.ortools.linearsolver.MPSolverResponseStatus com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.getStatus | ( | ) |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
java.lang.String com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
double com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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. |
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
int com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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];
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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];
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
boolean com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
boolean com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
boolean com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
boolean com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.hasSolverSpecificInfo | ( | ) |
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp.SolveLog proto.
optional bytes solver_specific_info = 11;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
boolean com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.hasStatus | ( | ) |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.
boolean com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.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;
Implemented in com.google.ortools.linearsolver.MPSolutionResponse.Builder, and com.google.ortools.linearsolver.MPSolutionResponse.