public static final class MPModelRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<MPModelRequest.Builder> implements MPModelRequestOrBuilder
Next id: 18.Protobuf type
operations_research.MPModelRequest| Modifier and Type | Method and Description |
|---|---|
MPModelRequest |
build() |
MPModelRequest |
buildPartial() |
MPModelRequest.Builder |
clear() |
MPModelRequest.Builder |
clearEnableInternalSolverOutput()
If this is set, then EnableOutput() will be set on the internal MPSolver
that solves the model.
|
MPModelRequest.Builder |
clearIgnoreSolverSpecificParametersFailure()
optional bool ignore_solver_specific_parameters_failure = 9 [default = false]; |
MPModelRequest.Builder |
clearModel()
The model to be optimized by the server.
|
MPModelRequest.Builder |
clearModelDelta()
Advanced usage: model "delta".
|
MPModelRequest.Builder |
clearPopulateAdditionalSolutionsUpTo()
Controls the recovery of additional solutions, if any, saved by the
underlying solver back in the MPSolutionResponse.additional_solutions.
|
MPModelRequest.Builder |
clearSolverSpecificParameters()
Advanced usage.
|
MPModelRequest.Builder |
clearSolverTimeLimitSeconds()
Maximum time to be spent by the solver to solve 'model'.
|
MPModelRequest.Builder |
clearSolverType()
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING]; |
MPModelRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEnableInternalSolverOutput()
If this is set, then EnableOutput() will be set on the internal MPSolver
that solves the model.
|
boolean |
getIgnoreSolverSpecificParametersFailure()
optional bool ignore_solver_specific_parameters_failure = 9 [default = false]; |
MPModelProto |
getModel()
The model to be optimized by the server.
|
MPModelProto.Builder |
getModelBuilder()
The model to be optimized by the server.
|
MPModelDeltaProto |
getModelDelta()
Advanced usage: model "delta".
|
MPModelDeltaProto.Builder |
getModelDeltaBuilder()
Advanced usage: model "delta".
|
MPModelDeltaProtoOrBuilder |
getModelDeltaOrBuilder()
Advanced usage: model "delta".
|
MPModelProtoOrBuilder |
getModelOrBuilder()
The model to be optimized by the server.
|
int |
getPopulateAdditionalSolutionsUpTo()
Controls the recovery of additional solutions, if any, saved by the
underlying solver back in the MPSolutionResponse.additional_solutions.
|
java.lang.String |
getSolverSpecificParameters()
Advanced usage.
|
com.google.protobuf.ByteString |
getSolverSpecificParametersBytes()
Advanced usage.
|
double |
getSolverTimeLimitSeconds()
Maximum time to be spent by the solver to solve 'model'.
|
MPModelRequest.SolverType |
getSolverType()
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING]; |
boolean |
hasEnableInternalSolverOutput()
If this is set, then EnableOutput() will be set on the internal MPSolver
that solves the model.
|
boolean |
hasIgnoreSolverSpecificParametersFailure()
optional bool ignore_solver_specific_parameters_failure = 9 [default = false]; |
boolean |
hasModel()
The model to be optimized by the server.
|
boolean |
hasModelDelta()
Advanced usage: model "delta".
|
boolean |
hasPopulateAdditionalSolutionsUpTo()
Controls the recovery of additional solutions, if any, saved by the
underlying solver back in the MPSolutionResponse.additional_solutions.
|
boolean |
hasSolverSpecificParameters()
Advanced usage.
|
boolean |
hasSolverTimeLimitSeconds()
Maximum time to be spent by the solver to solve 'model'.
|
boolean |
hasSolverType()
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING]; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MPModelRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MPModelRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
MPModelRequest.Builder |
mergeFrom(MPModelRequest other) |
MPModelRequest.Builder |
mergeModel(MPModelProto value)
The model to be optimized by the server.
|
MPModelRequest.Builder |
mergeModelDelta(MPModelDeltaProto value)
Advanced usage: model "delta".
|
MPModelRequest.Builder |
setEnableInternalSolverOutput(boolean value)
If this is set, then EnableOutput() will be set on the internal MPSolver
that solves the model.
|
MPModelRequest.Builder |
setIgnoreSolverSpecificParametersFailure(boolean value)
optional bool ignore_solver_specific_parameters_failure = 9 [default = false]; |
MPModelRequest.Builder |
setModel(MPModelProto.Builder builderForValue)
The model to be optimized by the server.
|
MPModelRequest.Builder |
setModel(MPModelProto value)
The model to be optimized by the server.
|
MPModelRequest.Builder |
setModelDelta(MPModelDeltaProto.Builder builderForValue)
Advanced usage: model "delta".
|
MPModelRequest.Builder |
setModelDelta(MPModelDeltaProto value)
Advanced usage: model "delta".
|
MPModelRequest.Builder |
setPopulateAdditionalSolutionsUpTo(int value)
Controls the recovery of additional solutions, if any, saved by the
underlying solver back in the MPSolutionResponse.additional_solutions.
|
MPModelRequest.Builder |
setSolverSpecificParameters(java.lang.String value)
Advanced usage.
|
MPModelRequest.Builder |
setSolverSpecificParametersBytes(com.google.protobuf.ByteString value)
Advanced usage.
|
MPModelRequest.Builder |
setSolverTimeLimitSeconds(double value)
Maximum time to be spent by the solver to solve 'model'.
|
MPModelRequest.Builder |
setSolverType(MPModelRequest.SolverType value)
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING]; |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MPModelRequest.Builder>public MPModelRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<MPModelRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MPModelRequest.Builder>public MPModelRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MPModelRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MPModelRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MPModelRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPModelRequest.Builder>public MPModelRequest.Builder mergeFrom(MPModelRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<MPModelRequest.Builder>public MPModelRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPModelRequest.Builder>java.io.IOExceptionpublic boolean hasModel()
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;hasModel in interface MPModelRequestOrBuilderpublic MPModelProto getModel()
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;getModel in interface MPModelRequestOrBuilderpublic MPModelRequest.Builder setModel(MPModelProto value)
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;public MPModelRequest.Builder setModel(MPModelProto.Builder builderForValue)
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;public MPModelRequest.Builder mergeModel(MPModelProto value)
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;public MPModelRequest.Builder clearModel()
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;public MPModelProto.Builder getModelBuilder()
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;public MPModelProtoOrBuilder getModelOrBuilder()
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;getModelOrBuilder in interface MPModelRequestOrBuilderpublic boolean hasSolverType()
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];hasSolverType in interface MPModelRequestOrBuilderpublic MPModelRequest.SolverType getSolverType()
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];getSolverType in interface MPModelRequestOrBuilderpublic MPModelRequest.Builder setSolverType(MPModelRequest.SolverType value)
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];value - The solverType to set.public MPModelRequest.Builder clearSolverType()
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];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;hasSolverTimeLimitSeconds in interface MPModelRequestOrBuilderpublic 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;getSolverTimeLimitSeconds in interface MPModelRequestOrBuilderpublic MPModelRequest.Builder setSolverTimeLimitSeconds(double value)
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;value - The solverTimeLimitSeconds to set.public MPModelRequest.Builder 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;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];hasEnableInternalSolverOutput in interface MPModelRequestOrBuilderpublic 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];getEnableInternalSolverOutput in interface MPModelRequestOrBuilderpublic MPModelRequest.Builder setEnableInternalSolverOutput(boolean value)
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];value - The enableInternalSolverOutput to set.public MPModelRequest.Builder 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];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;hasSolverSpecificParameters in interface MPModelRequestOrBuilderpublic java.lang.String 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;getSolverSpecificParameters in interface MPModelRequestOrBuilderpublic 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;getSolverSpecificParametersBytes in interface MPModelRequestOrBuilderpublic MPModelRequest.Builder setSolverSpecificParameters(java.lang.String 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;value - The solverSpecificParameters to set.public MPModelRequest.Builder 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;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;value - The bytes for solverSpecificParameters to set.public boolean hasIgnoreSolverSpecificParametersFailure()
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];hasIgnoreSolverSpecificParametersFailure in interface MPModelRequestOrBuilderpublic boolean getIgnoreSolverSpecificParametersFailure()
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];getIgnoreSolverSpecificParametersFailure in interface MPModelRequestOrBuilderpublic MPModelRequest.Builder setIgnoreSolverSpecificParametersFailure(boolean value)
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];value - The ignoreSolverSpecificParametersFailure to set.public MPModelRequest.Builder clearIgnoreSolverSpecificParametersFailure()
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];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;hasModelDelta in interface MPModelRequestOrBuilderpublic MPModelDeltaProto getModelDelta()
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;getModelDelta in interface MPModelRequestOrBuilderpublic MPModelRequest.Builder setModelDelta(MPModelDeltaProto value)
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;public MPModelRequest.Builder setModelDelta(MPModelDeltaProto.Builder builderForValue)
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;public MPModelRequest.Builder mergeModelDelta(MPModelDeltaProto value)
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;public MPModelRequest.Builder clearModelDelta()
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;public MPModelDeltaProto.Builder getModelDeltaBuilder()
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;public MPModelDeltaProtoOrBuilder getModelDeltaOrBuilder()
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto.
optional .operations_research.MPModelDeltaProto model_delta = 8;getModelDeltaOrBuilder in interface MPModelRequestOrBuilderpublic 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];hasPopulateAdditionalSolutionsUpTo in interface MPModelRequestOrBuilderpublic 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];getPopulateAdditionalSolutionsUpTo in interface MPModelRequestOrBuilderpublic MPModelRequest.Builder setPopulateAdditionalSolutionsUpTo(int value)
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];value - The populateAdditionalSolutionsUpTo to set.public MPModelRequest.Builder 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];Copyright © 2024. All rights reserved.