Class MPSolutionResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MPSolutionResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>
com.google.ortools.linearsolver.MPSolutionResponse.Builder
- All Implemented Interfaces:
MPSolutionResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
MPSolutionResponse
public static final class MPSolutionResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>
implements MPSolutionResponseOrBuilder
Next id: 12.Protobuf type
operations_research.MPSolutionResponse
-
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalSolutions
(int index, MPSolution value) [Advanced usage.]addAdditionalSolutions
(int index, MPSolution.Builder builderForValue) [Advanced usage.]addAdditionalSolutions
(MPSolution value) [Advanced usage.]addAdditionalSolutions
(MPSolution.Builder builderForValue) [Advanced usage.][Advanced usage.]addAdditionalSolutionsBuilder
(int index) [Advanced usage.]addAllAdditionalSolutions
(Iterable<? extends MPSolution> values) [Advanced usage.]addAllDualValue
(Iterable<? extends Double> values) [Advanced usage.]addAllReducedCost
(Iterable<? extends Double> values) [Advanced usage.]addAllVariableValue
(Iterable<? extends Double> values) Variable values in the same order as the MPModelProto::variable field.addDualValue
(double value) [Advanced usage.]addReducedCost
(double value) [Advanced usage.]addVariableValue
(double value) Variable values in the same order as the MPModelProto::variable field.build()
clear()
[Advanced usage.]This field is only filled for MIP problems.[Advanced usage.]Objective value corresponding to the "variable_value" below, taking into account the source "objective_offset" and "objective_coefficient".[Advanced usage.]Contains extra information about the solve, populated if the underlying solver (and its interface) supports it.Opaque solver-specific information.Result of the optimization.Human-readable string giving more details about the status.Variable values in the same order as the MPModelProto::variable field.getAdditionalSolutions
(int index) [Advanced usage.]getAdditionalSolutionsBuilder
(int index) [Advanced usage.][Advanced usage.]int
[Advanced usage.][Advanced usage.]getAdditionalSolutionsOrBuilder
(int index) [Advanced usage.]List
<? extends MPSolutionOrBuilder> [Advanced usage.]double
This field is only filled for MIP problems.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
double
getDualValue
(int index) [Advanced usage.]int
[Advanced usage.][Advanced usage.]double
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
[Advanced usage.][Advanced usage.]Contains extra information about the solve, populated if the underlying solver (and its interface) supports it.Contains extra information about the solve, populated if the underlying solver (and its interface) supports it.Contains extra information about the solve, populated if the underlying solver (and its interface) supports it.com.google.protobuf.ByteString
Opaque solver-specific information.Result of the optimization.Human-readable string giving more details about the status.com.google.protobuf.ByteString
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
Variable values in the same order as the MPModelProto::variable field.Variable values in the same order as the MPModelProto::variable field.boolean
This field is only filled for MIP problems.boolean
Objective value corresponding to the "variable_value" below, taking into account the source "objective_offset" and "objective_coefficient".boolean
Contains extra information about the solve, populated if the underlying solver (and its interface) supports it.boolean
Opaque solver-specific information.boolean
Result of the optimization.boolean
Human-readable string giving more details about the status.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(MPSolutionResponse other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeSolveInfo
(MPSolveInfo value) Contains extra information about the solve, populated if the underlying solver (and its interface) supports it.removeAdditionalSolutions
(int index) [Advanced usage.]setAdditionalSolutions
(int index, MPSolution value) [Advanced usage.]setAdditionalSolutions
(int index, MPSolution.Builder builderForValue) [Advanced usage.]setBestObjectiveBound
(double value) This field is only filled for MIP problems.setDualValue
(int index, double value) [Advanced usage.]setObjectiveValue
(double value) Objective value corresponding to the "variable_value" below, taking into account the source "objective_offset" and "objective_coefficient".setReducedCost
(int index, double value) [Advanced usage.]setSolveInfo
(MPSolveInfo value) Contains extra information about the solve, populated if the underlying solver (and its interface) supports it.setSolveInfo
(MPSolveInfo.Builder builderForValue) Contains extra information about the solve, populated if the underlying solver (and its interface) supports it.setSolverSpecificInfo
(com.google.protobuf.ByteString value) Opaque solver-specific information.setStatus
(MPSolverResponseStatus value) Result of the optimization.setStatusStr
(String value) Human-readable string giving more details about the status.setStatusStrBytes
(com.google.protobuf.ByteString value) Human-readable string giving more details about the status.setVariableValue
(int index, double value) Variable values in the same order as the MPModelProto::variable field.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MPSolutionResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<MPSolutionResponse.Builder>
-
mergeFrom
public MPSolutionResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MPSolutionResponse.Builder>
- Throws:
IOException
-
hasStatus
public boolean hasStatus()Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
- Specified by:
hasStatus
in interfaceMPSolutionResponseOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
- Specified by:
getStatus
in interfaceMPSolutionResponseOrBuilder
- Returns:
- The status.
-
setStatus
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
- Returns:
- This builder for chaining.
-
hasStatusStr
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;
- Specified by:
hasStatusStr
in interfaceMPSolutionResponseOrBuilder
- Returns:
- Whether the statusStr field is set.
-
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;
- Specified by:
getStatusStr
in interfaceMPSolutionResponseOrBuilder
- Returns:
- The statusStr.
-
getStatusStrBytes
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;
- Specified by:
getStatusStrBytes
in interfaceMPSolutionResponseOrBuilder
- Returns:
- The bytes for statusStr.
-
setStatusStr
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;
- Parameters:
value
- The statusStr to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setStatusStrBytes
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;
- Parameters:
value
- The bytes for statusStr to set.- Returns:
- This builder for chaining.
-
hasObjectiveValue
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;
- Specified by:
hasObjectiveValue
in interfaceMPSolutionResponseOrBuilder
- Returns:
- Whether the objectiveValue field is set.
-
getObjectiveValue
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;
- Specified by:
getObjectiveValue
in interfaceMPSolutionResponseOrBuilder
- Returns:
- The objectiveValue.
-
setObjectiveValue
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;
- Parameters:
value
- The objectiveValue to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
hasBestObjectiveBound
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;
- Specified by:
hasBestObjectiveBound
in interfaceMPSolutionResponseOrBuilder
- Returns:
- Whether the bestObjectiveBound field is set.
-
getBestObjectiveBound
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;
- Specified by:
getBestObjectiveBound
in interfaceMPSolutionResponseOrBuilder
- Returns:
- The bestObjectiveBound.
-
setBestObjectiveBound
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;
- Parameters:
value
- The bestObjectiveBound to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
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];
- Specified by:
getVariableValueList
in interfaceMPSolutionResponseOrBuilder
- Returns:
- A list containing the variableValue.
-
getVariableValueCount
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];
- Specified by:
getVariableValueCount
in interfaceMPSolutionResponseOrBuilder
- Returns:
- The count of variableValue.
-
getVariableValue
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];
- Specified by:
getVariableValue
in interfaceMPSolutionResponseOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The variableValue at the given index.
-
setVariableValue
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];
- Parameters:
index
- The index to set the value at.value
- The variableValue to set.- Returns:
- This builder for chaining.
-
addVariableValue
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];
- Parameters:
value
- The variableValue to add.- Returns:
- This builder for chaining.
-
addAllVariableValue
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];
- Parameters:
values
- The variableValue to add.- Returns:
- This builder for chaining.
-
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];
- Returns:
- This builder for chaining.
-
hasSolveInfo
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;
- Specified by:
hasSolveInfo
in interfaceMPSolutionResponseOrBuilder
- Returns:
- Whether the solveInfo field is set.
-
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;
- Specified by:
getSolveInfo
in interfaceMPSolutionResponseOrBuilder
- Returns:
- The solveInfo.
-
setSolveInfo
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;
-
setSolveInfo
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;
-
mergeSolveInfo
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;
-
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;
-
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;
-
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;
- Specified by:
getSolveInfoOrBuilder
in interfaceMPSolutionResponseOrBuilder
-
hasSolverSpecificInfo
public boolean hasSolverSpecificInfo()Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp::SolveLog proto.
optional bytes solver_specific_info = 11;
- Specified by:
hasSolverSpecificInfo
in interfaceMPSolutionResponseOrBuilder
- Returns:
- Whether the solverSpecificInfo field is set.
-
getSolverSpecificInfo
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;
- Specified by:
getSolverSpecificInfo
in interfaceMPSolutionResponseOrBuilder
- Returns:
- The solverSpecificInfo.
-
setSolverSpecificInfo
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp::SolveLog proto.
optional bytes solver_specific_info = 11;
- Parameters:
value
- The solverSpecificInfo to set.- Returns:
- This builder for chaining.
-
clearSolverSpecificInfo
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp::SolveLog proto.
optional bytes solver_specific_info = 11;
- Returns:
- This builder for chaining.
-
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];
- Specified by:
getDualValueList
in interfaceMPSolutionResponseOrBuilder
- Returns:
- A list containing the dualValue.
-
getDualValueCount
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];
- Specified by:
getDualValueCount
in interfaceMPSolutionResponseOrBuilder
- Returns:
- The count of dualValue.
-
getDualValue
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];
- Specified by:
getDualValue
in interfaceMPSolutionResponseOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The dualValue at the given index.
-
setDualValue
[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];
- Parameters:
index
- The index to set the value at.value
- The dualValue to set.- Returns:
- This builder for chaining.
-
addDualValue
[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];
- Parameters:
value
- The dualValue to add.- Returns:
- This builder for chaining.
-
addAllDualValue
[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];
- Parameters:
values
- The dualValue to add.- Returns:
- This builder for chaining.
-
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];
- Returns:
- This builder for chaining.
-
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];
- Specified by:
getReducedCostList
in interfaceMPSolutionResponseOrBuilder
- Returns:
- A list containing the reducedCost.
-
getReducedCostCount
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];
- Specified by:
getReducedCostCount
in interfaceMPSolutionResponseOrBuilder
- Returns:
- The count of reducedCost.
-
getReducedCost
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];
- Specified by:
getReducedCost
in interfaceMPSolutionResponseOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The reducedCost at the given index.
-
setReducedCost
[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];
- Parameters:
index
- The index to set the value at.value
- The reducedCost to set.- Returns:
- This builder for chaining.
-
addReducedCost
[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];
- Parameters:
value
- The reducedCost to add.- Returns:
- This builder for chaining.
-
addAllReducedCost
[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];
- Parameters:
values
- The reducedCost to add.- Returns:
- This builder for chaining.
-
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];
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getAdditionalSolutionsList
in interfaceMPSolutionResponseOrBuilder
-
getAdditionalSolutionsCount
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;
- Specified by:
getAdditionalSolutionsCount
in interfaceMPSolutionResponseOrBuilder
-
getAdditionalSolutions
[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;
- Specified by:
getAdditionalSolutions
in interfaceMPSolutionResponseOrBuilder
-
setAdditionalSolutions
[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;
-
setAdditionalSolutions
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;
-
addAdditionalSolutions
[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;
-
addAdditionalSolutions
[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;
-
addAdditionalSolutions
[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;
-
addAdditionalSolutions
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;
-
addAllAdditionalSolutions
[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;
-
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;
-
removeAdditionalSolutions
[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;
-
getAdditionalSolutionsBuilder
[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
[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;
- Specified by:
getAdditionalSolutionsOrBuilder
in interfaceMPSolutionResponseOrBuilder
-
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;
- Specified by:
getAdditionalSolutionsOrBuilderList
in interfaceMPSolutionResponseOrBuilder
-
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;
-
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;
-
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;
-