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.]
|
MPSolutionResponse.Builder |
addAdditionalSolutions(int index,
MPSolution value)
[Advanced usage.]
|
MPSolutionResponse.Builder |
addAdditionalSolutions(MPSolution.Builder builderForValue)
[Advanced usage.]
|
MPSolutionResponse.Builder |
addAdditionalSolutions(MPSolution value)
[Advanced usage.]
|
MPSolution.Builder |
addAdditionalSolutionsBuilder()
[Advanced usage.]
|
MPSolution.Builder |
addAdditionalSolutionsBuilder(int index)
[Advanced usage.]
|
MPSolutionResponse.Builder |
addAllAdditionalSolutions(java.lang.Iterable<? extends MPSolution> values)
[Advanced usage.]
|
MPSolutionResponse.Builder |
addAllDualValue(java.lang.Iterable<? extends java.lang.Double> values)
[Advanced usage.]
|
MPSolutionResponse.Builder |
addAllReducedCost(java.lang.Iterable<? extends java.lang.Double> values)
[Advanced usage.]
|
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.]
|
MPSolutionResponse.Builder |
addReducedCost(double value)
[Advanced usage.]
|
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.]
|
MPSolutionResponse.Builder |
clearBestObjectiveBound()
This field is only filled for MIP problems.
|
MPSolutionResponse.Builder |
clearDualValue()
[Advanced usage.]
|
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.]
|
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.]
|
MPSolution.Builder |
getAdditionalSolutionsBuilder(int index)
[Advanced usage.]
|
java.util.List<MPSolution.Builder> |
getAdditionalSolutionsBuilderList()
[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.
|
MPSolutionResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
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.]
|
MPSolutionResponse.Builder |
setAdditionalSolutions(int index,
MPSolution.Builder builderForValue)
[Advanced usage.]
|
MPSolutionResponse.Builder |
setAdditionalSolutions(int index,
MPSolution value)
[Advanced usage.]
|
MPSolutionResponse.Builder |
setBestObjectiveBound(double value)
This field is only filled for MIP problems.
|
MPSolutionResponse.Builder |
setDualValue(int index,
double value)
[Advanced usage.]
|
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.]
|
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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>
public MPSolutionResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public MPSolutionResponse build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public MPSolutionResponse buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public MPSolutionResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MPSolutionResponse.Builder>
java.io.IOException
public boolean hasStatus()
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
hasStatus
in interface MPSolutionResponseOrBuilder
public MPSolverResponseStatus getStatus()
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
getStatus
in interface MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
index
- 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
index
- 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
index
- 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 © 2025. All rights reserved.