public interface MPSolutionResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
MPSolution |
getAdditionalSolutions(int index)
[Advanced usage.]
|
int |
getAdditionalSolutionsCount()
[Advanced usage.]
|
java.util.List<MPSolution> |
getAdditionalSolutionsList()
[Advanced usage.]
|
MPSolutionOrBuilder |
getAdditionalSolutionsOrBuilder(int index)
[Advanced usage.]
|
java.util.List<? extends MPSolutionOrBuilder> |
getAdditionalSolutionsOrBuilderList()
[Advanced usage.]
|
double |
getBestObjectiveBound()
This field is only filled for MIP problems.
|
double |
getDualValue(int index)
[Advanced usage.]
|
int |
getDualValueCount()
[Advanced usage.]
|
java.util.List<java.lang.Double> |
getDualValueList()
[Advanced usage.]
|
double |
getObjectiveValue()
Objective value corresponding to the "variable_value" below, taking into
account the source "objective_offset" and "objective_coefficient".
|
double |
getReducedCost(int index)
[Advanced usage.]
|
int |
getReducedCostCount()
[Advanced usage.]
|
java.util.List<java.lang.Double> |
getReducedCostList()
[Advanced usage.]
|
MPSolveInfo |
getSolveInfo()
Contains extra information about the solve, populated if the underlying
solver (and its interface) supports it.
|
MPSolveInfoOrBuilder |
getSolveInfoOrBuilder()
Contains extra information about the solve, populated if the underlying
solver (and its interface) supports it.
|
com.google.protobuf.ByteString |
getSolverSpecificInfo()
Opaque solver-specific information.
|
MPSolverResponseStatus |
getStatus()
Result of the optimization.
|
java.lang.String |
getStatusStr()
Human-readable string giving more details about the status.
|
com.google.protobuf.ByteString |
getStatusStrBytes()
Human-readable string giving more details about the status.
|
double |
getVariableValue(int index)
Variable values in the same order as the MPModelProto::variable field.
|
int |
getVariableValueCount()
Variable values in the same order as the MPModelProto::variable field.
|
java.util.List<java.lang.Double> |
getVariableValueList()
Variable values in the same order as the MPModelProto::variable field.
|
boolean |
hasBestObjectiveBound()
This field is only filled for MIP problems.
|
boolean |
hasObjectiveValue()
Objective value corresponding to the "variable_value" below, taking into
account the source "objective_offset" and "objective_coefficient".
|
boolean |
hasSolveInfo()
Contains extra information about the solve, populated if the underlying
solver (and its interface) supports it.
|
boolean |
hasSolverSpecificInfo()
Opaque solver-specific information.
|
boolean |
hasStatus()
Result of the optimization.
|
boolean |
hasStatusStr()
Human-readable string giving more details about the status.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
boolean hasStatus()
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
MPSolverResponseStatus getStatus()
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
boolean 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;
java.lang.String 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;
com.google.protobuf.ByteString 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;
boolean 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;
double 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;
boolean 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;
double 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;
java.util.List<java.lang.Double> 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];
int 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];
double 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.boolean 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;
MPSolveInfo 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;
MPSolveInfoOrBuilder 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;
boolean hasSolverSpecificInfo()
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp::SolveLog proto.
optional bytes solver_specific_info = 11;
com.google.protobuf.ByteString getSolverSpecificInfo()
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp::SolveLog proto.
optional bytes solver_specific_info = 11;
java.util.List<java.lang.Double> 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];
int 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];
double 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.java.util.List<java.lang.Double> 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];
int 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];
double 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.java.util.List<MPSolution> 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;
MPSolution 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;
int 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;
java.util.List<? extends MPSolutionOrBuilder> 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;
MPSolutionOrBuilder 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;
Copyright © 2025. All rights reserved.