Class MPModelRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MPModelRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<MPModelRequest.Builder>
com.google.ortools.linearsolver.MPModelRequest.Builder
- All Implemented Interfaces:
MPModelRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
MPModelRequest
public static final class MPModelRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MPModelRequest.Builder>
implements MPModelRequestOrBuilder
Next id: 18.Protobuf type
operations_research.MPModelRequest
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
If this is set, then EnableOutput() will be set on the internal MPSolver that solves the model.optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
The model to be optimized by the server.Advanced usage: model "delta".Controls the recovery of additional solutions, if any, saved by the underlying solver back in the MPSolutionResponse.additional_solutions.Advanced usage.Maximum time to be spent by the solver to solve 'model'.optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
If this is set, then EnableOutput() will be set on the internal MPSolver that solves the model.boolean
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
getModel()
The model to be optimized by the server.The model to be optimized by the server.Advanced usage: model "delta".Advanced usage: model "delta".Advanced usage: model "delta".The model to be optimized by the server.int
Controls the recovery of additional solutions, if any, saved by the underlying solver back in the MPSolutionResponse.additional_solutions.Advanced usage.com.google.protobuf.ByteString
Advanced usage.double
Maximum time to be spent by the solver to solve 'model'.optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
boolean
If this is set, then EnableOutput() will be set on the internal MPSolver that solves the model.boolean
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
boolean
hasModel()
The model to be optimized by the server.boolean
Advanced usage: model "delta".boolean
Controls the recovery of additional solutions, if any, saved by the underlying solver back in the MPSolutionResponse.additional_solutions.boolean
Advanced usage.boolean
Maximum time to be spent by the solver to solve 'model'.boolean
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(MPModelRequest other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeModel
(MPModelProto value) The model to be optimized by the server.mergeModelDelta
(MPModelDeltaProto value) Advanced usage: model "delta".setEnableInternalSolverOutput
(boolean value) If this is set, then EnableOutput() will be set on the internal MPSolver that solves the model.setIgnoreSolverSpecificParametersFailure
(boolean value) optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
setModel
(MPModelProto value) The model to be optimized by the server.setModel
(MPModelProto.Builder builderForValue) The model to be optimized by the server.setModelDelta
(MPModelDeltaProto value) Advanced usage: model "delta".setModelDelta
(MPModelDeltaProto.Builder builderForValue) Advanced usage: model "delta".setPopulateAdditionalSolutionsUpTo
(int value) Controls the recovery of additional solutions, if any, saved by the underlying solver back in the MPSolutionResponse.additional_solutions.Advanced usage.setSolverSpecificParametersBytes
(com.google.protobuf.ByteString value) Advanced usage.setSolverTimeLimitSeconds
(double value) Maximum time to be spent by the solver to solve 'model'.optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
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<MPModelRequest.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<MPModelRequest.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<MPModelRequest.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<MPModelRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<MPModelRequest.Builder>
-
mergeFrom
public MPModelRequest.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<MPModelRequest.Builder>
- Throws:
IOException
-
hasModel
public boolean hasModel()The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
- Specified by:
hasModel
in interfaceMPModelRequestOrBuilder
- Returns:
- Whether the model field is set.
-
getModel
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
- Specified by:
getModel
in interfaceMPModelRequestOrBuilder
- Returns:
- The model.
-
setModel
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
-
setModel
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
-
mergeModel
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
-
clearModel
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
-
getModelBuilder
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
-
getModelOrBuilder
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
- Specified by:
getModelOrBuilder
in interfaceMPModelRequestOrBuilder
-
hasSolverType
public boolean hasSolverType()optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
- Specified by:
hasSolverType
in interfaceMPModelRequestOrBuilder
- Returns:
- Whether the solverType field is set.
-
getSolverType
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
- Specified by:
getSolverType
in interfaceMPModelRequestOrBuilder
- Returns:
- The solverType.
-
setSolverType
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
- Parameters:
value
- The solverType to set.- Returns:
- This builder for chaining.
-
clearSolverType
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
- Returns:
- This builder for chaining.
-
hasSolverTimeLimitSeconds
public boolean hasSolverTimeLimitSeconds()Maximum time to be spent by the solver to solve 'model'. If the server is busy and the RPC's deadline_left is less than this, it will immediately give up and return an error, without even trying to solve. The client can use this to have a guarantee on how much time the solver will spend on the problem (unless it finds and proves an optimal solution more quickly). If not specified, the time limit on the solver is the RPC's deadline_left.
optional double solver_time_limit_seconds = 3;
- Specified by:
hasSolverTimeLimitSeconds
in interfaceMPModelRequestOrBuilder
- Returns:
- Whether the solverTimeLimitSeconds field is set.
-
getSolverTimeLimitSeconds
public double getSolverTimeLimitSeconds()Maximum time to be spent by the solver to solve 'model'. If the server is busy and the RPC's deadline_left is less than this, it will immediately give up and return an error, without even trying to solve. The client can use this to have a guarantee on how much time the solver will spend on the problem (unless it finds and proves an optimal solution more quickly). If not specified, the time limit on the solver is the RPC's deadline_left.
optional double solver_time_limit_seconds = 3;
- Specified by:
getSolverTimeLimitSeconds
in interfaceMPModelRequestOrBuilder
- Returns:
- The solverTimeLimitSeconds.
-
setSolverTimeLimitSeconds
Maximum time to be spent by the solver to solve 'model'. If the server is busy and the RPC's deadline_left is less than this, it will immediately give up and return an error, without even trying to solve. The client can use this to have a guarantee on how much time the solver will spend on the problem (unless it finds and proves an optimal solution more quickly). If not specified, the time limit on the solver is the RPC's deadline_left.
optional double solver_time_limit_seconds = 3;
- Parameters:
value
- The solverTimeLimitSeconds to set.- Returns:
- This builder for chaining.
-
clearSolverTimeLimitSeconds
Maximum time to be spent by the solver to solve 'model'. If the server is busy and the RPC's deadline_left is less than this, it will immediately give up and return an error, without even trying to solve. The client can use this to have a guarantee on how much time the solver will spend on the problem (unless it finds and proves an optimal solution more quickly). If not specified, the time limit on the solver is the RPC's deadline_left.
optional double solver_time_limit_seconds = 3;
- Returns:
- This builder for chaining.
-
hasEnableInternalSolverOutput
public boolean hasEnableInternalSolverOutput()If this is set, then EnableOutput() will be set on the internal MPSolver that solves the model. WARNING: if you set this on a request to prod servers, it will be rejected and yield the RPC Application Error code MPSOLVER_SOLVER_TYPE_UNAVAILABLE.
optional bool enable_internal_solver_output = 4 [default = false];
- Specified by:
hasEnableInternalSolverOutput
in interfaceMPModelRequestOrBuilder
- Returns:
- Whether the enableInternalSolverOutput field is set.
-
getEnableInternalSolverOutput
public boolean getEnableInternalSolverOutput()If this is set, then EnableOutput() will be set on the internal MPSolver that solves the model. WARNING: if you set this on a request to prod servers, it will be rejected and yield the RPC Application Error code MPSOLVER_SOLVER_TYPE_UNAVAILABLE.
optional bool enable_internal_solver_output = 4 [default = false];
- Specified by:
getEnableInternalSolverOutput
in interfaceMPModelRequestOrBuilder
- Returns:
- The enableInternalSolverOutput.
-
setEnableInternalSolverOutput
If this is set, then EnableOutput() will be set on the internal MPSolver that solves the model. WARNING: if you set this on a request to prod servers, it will be rejected and yield the RPC Application Error code MPSOLVER_SOLVER_TYPE_UNAVAILABLE.
optional bool enable_internal_solver_output = 4 [default = false];
- Parameters:
value
- The enableInternalSolverOutput to set.- Returns:
- This builder for chaining.
-
clearEnableInternalSolverOutput
If this is set, then EnableOutput() will be set on the internal MPSolver that solves the model. WARNING: if you set this on a request to prod servers, it will be rejected and yield the RPC Application Error code MPSOLVER_SOLVER_TYPE_UNAVAILABLE.
optional bool enable_internal_solver_output = 4 [default = false];
- Returns:
- This builder for chaining.
-
hasSolverSpecificParameters
public boolean hasSolverSpecificParameters()Advanced usage. Solver-specific parameters in the solver's own format, different for each solver. For example, if you use SCIP and you want to stop the solve earlier than the time limit if it reached a solution that is at most 1% away from the optimal, you can set this to "limits/gap=0.01". Note however that there is no "security" mechanism in place so it is up to the client to make sure that the given options don't make the solve non thread safe or use up too much memory for instance. If the option format is not understood by the solver, the request will be rejected and yield an RPC Application error with code MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS, unless you have set ignore_solver_specific_parameters_failure=true (in which case they are simply ignored).
optional string solver_specific_parameters = 5;
- Specified by:
hasSolverSpecificParameters
in interfaceMPModelRequestOrBuilder
- Returns:
- Whether the solverSpecificParameters field is set.
-
getSolverSpecificParameters
Advanced usage. Solver-specific parameters in the solver's own format, different for each solver. For example, if you use SCIP and you want to stop the solve earlier than the time limit if it reached a solution that is at most 1% away from the optimal, you can set this to "limits/gap=0.01". Note however that there is no "security" mechanism in place so it is up to the client to make sure that the given options don't make the solve non thread safe or use up too much memory for instance. If the option format is not understood by the solver, the request will be rejected and yield an RPC Application error with code MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS, unless you have set ignore_solver_specific_parameters_failure=true (in which case they are simply ignored).
optional string solver_specific_parameters = 5;
- Specified by:
getSolverSpecificParameters
in interfaceMPModelRequestOrBuilder
- Returns:
- The solverSpecificParameters.
-
getSolverSpecificParametersBytes
public com.google.protobuf.ByteString getSolverSpecificParametersBytes()Advanced usage. Solver-specific parameters in the solver's own format, different for each solver. For example, if you use SCIP and you want to stop the solve earlier than the time limit if it reached a solution that is at most 1% away from the optimal, you can set this to "limits/gap=0.01". Note however that there is no "security" mechanism in place so it is up to the client to make sure that the given options don't make the solve non thread safe or use up too much memory for instance. If the option format is not understood by the solver, the request will be rejected and yield an RPC Application error with code MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS, unless you have set ignore_solver_specific_parameters_failure=true (in which case they are simply ignored).
optional string solver_specific_parameters = 5;
- Specified by:
getSolverSpecificParametersBytes
in interfaceMPModelRequestOrBuilder
- Returns:
- The bytes for solverSpecificParameters.
-
setSolverSpecificParameters
Advanced usage. Solver-specific parameters in the solver's own format, different for each solver. For example, if you use SCIP and you want to stop the solve earlier than the time limit if it reached a solution that is at most 1% away from the optimal, you can set this to "limits/gap=0.01". Note however that there is no "security" mechanism in place so it is up to the client to make sure that the given options don't make the solve non thread safe or use up too much memory for instance. If the option format is not understood by the solver, the request will be rejected and yield an RPC Application error with code MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS, unless you have set ignore_solver_specific_parameters_failure=true (in which case they are simply ignored).
optional string solver_specific_parameters = 5;
- Parameters:
value
- The solverSpecificParameters to set.- Returns:
- This builder for chaining.
-
clearSolverSpecificParameters
Advanced usage. Solver-specific parameters in the solver's own format, different for each solver. For example, if you use SCIP and you want to stop the solve earlier than the time limit if it reached a solution that is at most 1% away from the optimal, you can set this to "limits/gap=0.01". Note however that there is no "security" mechanism in place so it is up to the client to make sure that the given options don't make the solve non thread safe or use up too much memory for instance. If the option format is not understood by the solver, the request will be rejected and yield an RPC Application error with code MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS, unless you have set ignore_solver_specific_parameters_failure=true (in which case they are simply ignored).
optional string solver_specific_parameters = 5;
- Returns:
- This builder for chaining.
-
setSolverSpecificParametersBytes
public MPModelRequest.Builder setSolverSpecificParametersBytes(com.google.protobuf.ByteString value) Advanced usage. Solver-specific parameters in the solver's own format, different for each solver. For example, if you use SCIP and you want to stop the solve earlier than the time limit if it reached a solution that is at most 1% away from the optimal, you can set this to "limits/gap=0.01". Note however that there is no "security" mechanism in place so it is up to the client to make sure that the given options don't make the solve non thread safe or use up too much memory for instance. If the option format is not understood by the solver, the request will be rejected and yield an RPC Application error with code MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS, unless you have set ignore_solver_specific_parameters_failure=true (in which case they are simply ignored).
optional string solver_specific_parameters = 5;
- Parameters:
value
- The bytes for solverSpecificParameters to set.- Returns:
- This builder for chaining.
-
hasIgnoreSolverSpecificParametersFailure
public boolean hasIgnoreSolverSpecificParametersFailure()optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
- Specified by:
hasIgnoreSolverSpecificParametersFailure
in interfaceMPModelRequestOrBuilder
- Returns:
- Whether the ignoreSolverSpecificParametersFailure field is set.
-
getIgnoreSolverSpecificParametersFailure
public boolean getIgnoreSolverSpecificParametersFailure()optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
- Specified by:
getIgnoreSolverSpecificParametersFailure
in interfaceMPModelRequestOrBuilder
- Returns:
- The ignoreSolverSpecificParametersFailure.
-
setIgnoreSolverSpecificParametersFailure
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
- Parameters:
value
- The ignoreSolverSpecificParametersFailure to set.- Returns:
- This builder for chaining.
-
clearIgnoreSolverSpecificParametersFailure
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
- Returns:
- This builder for chaining.
-
hasModelDelta
public boolean hasModelDelta()Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;
- Specified by:
hasModelDelta
in interfaceMPModelRequestOrBuilder
- Returns:
- Whether the modelDelta field is set.
-
getModelDelta
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;
- Specified by:
getModelDelta
in interfaceMPModelRequestOrBuilder
- Returns:
- The modelDelta.
-
setModelDelta
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;
-
setModelDelta
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;
-
mergeModelDelta
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;
-
clearModelDelta
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;
-
getModelDeltaBuilder
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;
-
getModelDeltaOrBuilder
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;
- Specified by:
getModelDeltaOrBuilder
in interfaceMPModelRequestOrBuilder
-
hasPopulateAdditionalSolutionsUpTo
public boolean hasPopulateAdditionalSolutionsUpTo()Controls the recovery of additional solutions, if any, saved by the underlying solver back in the MPSolutionResponse.additional_solutions. The repeated field will be length min(populate_addition_solutions_up_to, #additional_solutions_available_in_underlying_solver) These additional solutions may have a worse objective than the main solution returned in the response.
optional int32 populate_additional_solutions_up_to = 11 [default = 0];
- Specified by:
hasPopulateAdditionalSolutionsUpTo
in interfaceMPModelRequestOrBuilder
- Returns:
- Whether the populateAdditionalSolutionsUpTo field is set.
-
getPopulateAdditionalSolutionsUpTo
public int getPopulateAdditionalSolutionsUpTo()Controls the recovery of additional solutions, if any, saved by the underlying solver back in the MPSolutionResponse.additional_solutions. The repeated field will be length min(populate_addition_solutions_up_to, #additional_solutions_available_in_underlying_solver) These additional solutions may have a worse objective than the main solution returned in the response.
optional int32 populate_additional_solutions_up_to = 11 [default = 0];
- Specified by:
getPopulateAdditionalSolutionsUpTo
in interfaceMPModelRequestOrBuilder
- Returns:
- The populateAdditionalSolutionsUpTo.
-
setPopulateAdditionalSolutionsUpTo
Controls the recovery of additional solutions, if any, saved by the underlying solver back in the MPSolutionResponse.additional_solutions. The repeated field will be length min(populate_addition_solutions_up_to, #additional_solutions_available_in_underlying_solver) These additional solutions may have a worse objective than the main solution returned in the response.
optional int32 populate_additional_solutions_up_to = 11 [default = 0];
- Parameters:
value
- The populateAdditionalSolutionsUpTo to set.- Returns:
- This builder for chaining.
-
clearPopulateAdditionalSolutionsUpTo
Controls the recovery of additional solutions, if any, saved by the underlying solver back in the MPSolutionResponse.additional_solutions. The repeated field will be length min(populate_addition_solutions_up_to, #additional_solutions_available_in_underlying_solver) These additional solutions may have a worse objective than the main solution returned in the response.
optional int32 populate_additional_solutions_up_to = 11 [default = 0];
- Returns:
- This builder for chaining.
-