public static final class MPSolutionResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder> implements MPSolutionResponseOrBuilder
Next id: 12.Protobuf type
operations_research.MPSolutionResponse| Modifier and Type | Method and Description |
|---|---|
MPSolutionResponse.Builder |
addAdditionalSolutions(int index,
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.
|
MPSolutionResponse.Builder |
addAdditionalSolutions(int index,
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.
|
MPSolutionResponse.Builder |
addAdditionalSolutions(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.
|
MPSolutionResponse.Builder |
addAdditionalSolutions(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.
|
MPSolution.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.
|
MPSolution.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.
|
MPSolutionResponse.Builder |
addAllAdditionalSolutions(java.lang.Iterable<? extends 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.
|
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.
|
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.
|
MPSolutionResponse.Builder |
addAllVariableValue(java.lang.Iterable<? extends java.lang.Double> values)
Variable values in the same order as the MPModelProto::variable field.
|
MPSolutionResponse.Builder |
addDualValue(double value)
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field.
|
MPSolutionResponse.Builder |
addReducedCost(double value)
[Advanced usage.]
Values of the reduced cost of the variables in the same order as the
MPModelProto::variable.
|
MPSolutionResponse.Builder |
addVariableValue(double value)
Variable values in the same order as the MPModelProto::variable field.
|
MPSolutionResponse |
build() |
MPSolutionResponse |
buildPartial() |
MPSolutionResponse.Builder |
clear() |
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.
|
MPSolutionResponse.Builder |
clearBestObjectiveBound()
This field is only filled for MIP problems.
|
MPSolutionResponse.Builder |
clearDualValue()
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field.
|
MPSolutionResponse.Builder |
clearObjectiveValue()
Objective value corresponding to the "variable_value" below, taking into
account the source "objective_offset" and "objective_coefficient".
|
MPSolutionResponse.Builder |
clearReducedCost()
[Advanced usage.]
Values of the reduced cost of the variables in the same order as the
MPModelProto::variable.
|
MPSolutionResponse.Builder |
clearSolveInfo()
Contains extra information about the solve, populated if the underlying
solver (and its interface) supports it.
|
MPSolutionResponse.Builder |
clearSolverSpecificInfo()
Opaque solver-specific information.
|
MPSolutionResponse.Builder |
clearStatus()
Result of the optimization.
|
MPSolutionResponse.Builder |
clearStatusStr()
Human-readable string giving more details about the status.
|
MPSolutionResponse.Builder |
clearVariableValue()
Variable values in the same order as the MPModelProto::variable field.
|
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.
|
MPSolution.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.
|
java.util.List<MPSolution.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.
|
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.
|
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.
|
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.
|
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.
|
double |
getBestObjectiveBound()
This field is only filled for MIP problems.
|
MPSolutionResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getDualValue(int index)
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field.
|
int |
getDualValueCount()
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field.
|
java.util.List<java.lang.Double> |
getDualValueList()
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field.
|
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.]
Values of the reduced cost of the variables in the same order as the
MPModelProto::variable.
|
int |
getReducedCostCount()
[Advanced usage.]
Values of the reduced cost of the variables in the same order as the
MPModelProto::variable.
|
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.
|
MPSolveInfo |
getSolveInfo()
Contains extra information about the solve, populated if the underlying
solver (and its interface) supports it.
|
MPSolveInfo.Builder |
getSolveInfoBuilder()
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.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MPSolutionResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MPSolutionResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
MPSolutionResponse.Builder |
mergeFrom(MPSolutionResponse other) |
MPSolutionResponse.Builder |
mergeSolveInfo(MPSolveInfo value)
Contains extra information about the solve, populated if the underlying
solver (and its interface) supports it.
|
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.
|
MPSolutionResponse.Builder |
setAdditionalSolutions(int index,
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.
|
MPSolutionResponse.Builder |
setAdditionalSolutions(int index,
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.
|
MPSolutionResponse.Builder |
setBestObjectiveBound(double value)
This field is only filled for MIP problems.
|
MPSolutionResponse.Builder |
setDualValue(int index,
double value)
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field.
|
MPSolutionResponse.Builder |
setObjectiveValue(double value)
Objective value corresponding to the "variable_value" below, taking into
account the source "objective_offset" and "objective_coefficient".
|
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.
|
MPSolutionResponse.Builder |
setSolveInfo(MPSolveInfo.Builder builderForValue)
Contains extra information about the solve, populated if the underlying
solver (and its interface) supports it.
|
MPSolutionResponse.Builder |
setSolveInfo(MPSolveInfo value)
Contains extra information about the solve, populated if the underlying
solver (and its interface) supports it.
|
MPSolutionResponse.Builder |
setSolverSpecificInfo(com.google.protobuf.ByteString value)
Opaque solver-specific information.
|
MPSolutionResponse.Builder |
setStatus(MPSolverResponseStatus value)
Result of the optimization.
|
MPSolutionResponse.Builder |
setStatusStr(java.lang.String value)
Human-readable string giving more details about the status.
|
MPSolutionResponse.Builder |
setStatusStrBytes(com.google.protobuf.ByteString value)
Human-readable string giving more details about the status.
|
MPSolutionResponse.Builder |
setVariableValue(int index,
double value)
Variable values in the same order as the MPModelProto::variable field.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>public MPSolutionResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>public MPSolutionResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MPSolutionResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MPSolutionResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MPSolutionResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPSolutionResponse.Builder>public MPSolutionResponse.Builder mergeFrom(MPSolutionResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>public MPSolutionResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPSolutionResponse.Builder>java.io.IOExceptionpublic boolean hasStatus()
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];hasStatus in interface MPSolutionResponseOrBuilderpublic MPSolverResponseStatus getStatus()
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];getStatus in interface MPSolutionResponseOrBuilderpublic MPSolutionResponse.Builder setStatus(MPSolverResponseStatus value)
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];value - The status to set.public MPSolutionResponse.Builder clearStatus()
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];public 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;hasStatusStr in interface MPSolutionResponseOrBuilderpublic 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;getStatusStr in interface MPSolutionResponseOrBuilderpublic 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;getStatusStrBytes in interface MPSolutionResponseOrBuilderpublic 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.public 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;public 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.public 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;hasObjectiveValue in interface MPSolutionResponseOrBuilderpublic 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;getObjectiveValue in interface MPSolutionResponseOrBuilderpublic 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.public 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;public 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;hasBestObjectiveBound in interface MPSolutionResponseOrBuilderpublic 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;getBestObjectiveBound in interface MPSolutionResponseOrBuilderpublic 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.public 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;public 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];getVariableValueList in interface MPSolutionResponseOrBuilderpublic 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];getVariableValueCount in interface MPSolutionResponseOrBuilderpublic 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];getVariableValue in interface MPSolutionResponseOrBuilderindex - The index of the element to return.public 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.public 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.public 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.public 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];public 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;hasSolveInfo in interface MPSolutionResponseOrBuilderpublic 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;getSolveInfo in interface MPSolutionResponseOrBuilderpublic MPSolutionResponse.Builder setSolveInfo(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;public MPSolutionResponse.Builder setSolveInfo(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;public MPSolutionResponse.Builder mergeSolveInfo(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;public 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;public MPSolveInfo.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;public 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;getSolveInfoOrBuilder in interface MPSolutionResponseOrBuilderpublic boolean hasSolverSpecificInfo()
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp::SolveLog proto.
optional bytes solver_specific_info = 11;hasSolverSpecificInfo in interface MPSolutionResponseOrBuilderpublic 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;getSolverSpecificInfo in interface MPSolutionResponseOrBuilderpublic 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.public MPSolutionResponse.Builder clearSolverSpecificInfo()
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp::SolveLog proto.
optional bytes solver_specific_info = 11;public 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];getDualValueList in interface MPSolutionResponseOrBuilderpublic 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];getDualValueCount in interface MPSolutionResponseOrBuilderpublic 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];getDualValue in interface MPSolutionResponseOrBuilderindex - The index of the element to return.public 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.public 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.public 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.public 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];public 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];getReducedCostList in interface MPSolutionResponseOrBuilderpublic 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];getReducedCostCount in interface MPSolutionResponseOrBuilderpublic 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];getReducedCost in interface MPSolutionResponseOrBuilderindex - The index of the element to return.public 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.public 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.public 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.public 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];public 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;getAdditionalSolutionsList in interface MPSolutionResponseOrBuilderpublic 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;getAdditionalSolutionsCount in interface MPSolutionResponseOrBuilderpublic 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;getAdditionalSolutions in interface MPSolutionResponseOrBuilderpublic MPSolutionResponse.Builder setAdditionalSolutions(int index, 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;public MPSolutionResponse.Builder setAdditionalSolutions(int index, 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;public MPSolutionResponse.Builder addAdditionalSolutions(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;public MPSolutionResponse.Builder addAdditionalSolutions(int index, 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;public MPSolutionResponse.Builder addAdditionalSolutions(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;public MPSolutionResponse.Builder addAdditionalSolutions(int index, 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;public MPSolutionResponse.Builder addAllAdditionalSolutions(java.lang.Iterable<? extends 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;public 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;public 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;public MPSolution.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;public 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;getAdditionalSolutionsOrBuilder in interface MPSolutionResponseOrBuilderpublic 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;getAdditionalSolutionsOrBuilderList in interface MPSolutionResponseOrBuilderpublic MPSolution.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;public MPSolution.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;public java.util.List<MPSolution.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;Copyright © 2024. All rights reserved.