Class MPModelRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ortools.linearsolver.MPModelRequest
- All Implemented Interfaces:
- MPModelRequestOrBuilder,- com.google.protobuf.Message,- com.google.protobuf.MessageLite,- com.google.protobuf.MessageLiteOrBuilder,- com.google.protobuf.MessageOrBuilder,- Serializable
@Generated
public final class MPModelRequest
extends com.google.protobuf.GeneratedMessage
implements MPModelRequestOrBuilder
Next id: 18.Protobuf type
operations_research.MPModelRequest- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classNext id: 18.static enumThe solver type, which will select a specific implementation, and will also impact the interpretation of the model (i.e. are we solving the problem as a mixed integer program or are we relaxing it as a continuous linear program?).Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessagecom.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessagecom.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLitecom.google.protobuf.AbstractMessageLite.InternalOneOfEnum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessagealwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessagememoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLitememoizedHashCode
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic MPModelRequeststatic final com.google.protobuf.Descriptors.DescriptorbooleanIf this is set, then EnableOutput() will be set on the internal MPSolver that solves the model.booleanoptional bool ignore_solver_specific_parameters_failure = 9 [default = false];getModel()The model to be optimized by the server.Advanced usage: model "delta".Advanced usage: model "delta".The model to be optimized by the server.com.google.protobuf.Parser<MPModelRequest> intControls the recovery of additional solutions, if any, saved by the underlying solver back in the MPSolutionResponse.additional_solutions.intAdvanced usage.com.google.protobuf.ByteStringAdvanced usage.doubleMaximum time to be spent by the solver to solve 'model'.optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];booleanIf this is set, then EnableOutput() will be set on the internal MPSolver that solves the model.inthashCode()booleanoptional bool ignore_solver_specific_parameters_failure = 9 [default = false];booleanhasModel()The model to be optimized by the server.booleanAdvanced usage: model "delta".booleanControls the recovery of additional solutions, if any, saved by the underlying solver back in the MPSolutionResponse.additional_solutions.booleanAdvanced usage.booleanMaximum time to be spent by the solver to solve 'model'.booleanoptional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic MPModelRequest.Builderstatic MPModelRequest.BuildernewBuilder(MPModelRequest prototype) protected MPModelRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static MPModelRequestparseDelimitedFrom(InputStream input) static MPModelRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPModelRequestparseFrom(byte[] data) static MPModelRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPModelRequestparseFrom(com.google.protobuf.ByteString data) static MPModelRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPModelRequestparseFrom(com.google.protobuf.CodedInputStream input) static MPModelRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPModelRequestparseFrom(InputStream input) static MPModelRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPModelRequestparseFrom(ByteBuffer data) static MPModelRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MPModelRequest> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessagecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessagefindInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLiteaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLitetoByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilderfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
- 
Field Details- 
MODEL_FIELD_NUMBERpublic static final int MODEL_FIELD_NUMBER- See Also:
 
- 
SOLVER_TYPE_FIELD_NUMBERpublic static final int SOLVER_TYPE_FIELD_NUMBER- See Also:
 
- 
SOLVER_TIME_LIMIT_SECONDS_FIELD_NUMBERpublic static final int SOLVER_TIME_LIMIT_SECONDS_FIELD_NUMBER- See Also:
 
- 
ENABLE_INTERNAL_SOLVER_OUTPUT_FIELD_NUMBERpublic static final int ENABLE_INTERNAL_SOLVER_OUTPUT_FIELD_NUMBER- See Also:
 
- 
SOLVER_SPECIFIC_PARAMETERS_FIELD_NUMBERpublic static final int SOLVER_SPECIFIC_PARAMETERS_FIELD_NUMBER- See Also:
 
- 
IGNORE_SOLVER_SPECIFIC_PARAMETERS_FAILURE_FIELD_NUMBERpublic static final int IGNORE_SOLVER_SPECIFIC_PARAMETERS_FAILURE_FIELD_NUMBER- See Also:
 
- 
MODEL_DELTA_FIELD_NUMBERpublic static final int MODEL_DELTA_FIELD_NUMBER- See Also:
 
- 
POPULATE_ADDITIONAL_SOLUTIONS_UP_TO_FIELD_NUMBERpublic static final int POPULATE_ADDITIONAL_SOLUTIONS_UP_TO_FIELD_NUMBER- See Also:
 
 
- 
- 
Method Details- 
getDescriptorpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
- 
internalGetFieldAccessorTableprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
- internalGetFieldAccessorTablein class- com.google.protobuf.GeneratedMessage
 
- 
hasModelpublic boolean hasModel()The model to be optimized by the server. optional .operations_research.MPModelProto model = 1;- Specified by:
- hasModelin interface- MPModelRequestOrBuilder
- Returns:
- Whether the model field is set.
 
- 
getModelThe model to be optimized by the server. optional .operations_research.MPModelProto model = 1;- Specified by:
- getModelin interface- MPModelRequestOrBuilder
- Returns:
- The model.
 
- 
getModelOrBuilderThe model to be optimized by the server. optional .operations_research.MPModelProto model = 1;- Specified by:
- getModelOrBuilderin interface- MPModelRequestOrBuilder
 
- 
hasSolverTypepublic boolean hasSolverType()optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];- Specified by:
- hasSolverTypein interface- MPModelRequestOrBuilder
- Returns:
- Whether the solverType field is set.
 
- 
getSolverTypeoptional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];- Specified by:
- getSolverTypein interface- MPModelRequestOrBuilder
- Returns:
- The solverType.
 
- 
hasSolverTimeLimitSecondspublic 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:
- hasSolverTimeLimitSecondsin interface- MPModelRequestOrBuilder
- Returns:
- Whether the solverTimeLimitSeconds field is set.
 
- 
getSolverTimeLimitSecondspublic 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:
- getSolverTimeLimitSecondsin interface- MPModelRequestOrBuilder
- Returns:
- The solverTimeLimitSeconds.
 
- 
hasEnableInternalSolverOutputpublic 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:
- hasEnableInternalSolverOutputin interface- MPModelRequestOrBuilder
- Returns:
- Whether the enableInternalSolverOutput field is set.
 
- 
getEnableInternalSolverOutputpublic 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:
- getEnableInternalSolverOutputin interface- MPModelRequestOrBuilder
- Returns:
- The enableInternalSolverOutput.
 
- 
hasSolverSpecificParameterspublic 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:
- hasSolverSpecificParametersin interface- MPModelRequestOrBuilder
- Returns:
- Whether the solverSpecificParameters field is set.
 
- 
getSolverSpecificParametersAdvanced 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:
- getSolverSpecificParametersin interface- MPModelRequestOrBuilder
- Returns:
- The solverSpecificParameters.
 
- 
getSolverSpecificParametersBytespublic 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:
- getSolverSpecificParametersBytesin interface- MPModelRequestOrBuilder
- Returns:
- The bytes for solverSpecificParameters.
 
- 
hasIgnoreSolverSpecificParametersFailurepublic boolean hasIgnoreSolverSpecificParametersFailure()optional bool ignore_solver_specific_parameters_failure = 9 [default = false];- Specified by:
- hasIgnoreSolverSpecificParametersFailurein interface- MPModelRequestOrBuilder
- Returns:
- Whether the ignoreSolverSpecificParametersFailure field is set.
 
- 
getIgnoreSolverSpecificParametersFailurepublic boolean getIgnoreSolverSpecificParametersFailure()optional bool ignore_solver_specific_parameters_failure = 9 [default = false];- Specified by:
- getIgnoreSolverSpecificParametersFailurein interface- MPModelRequestOrBuilder
- Returns:
- The ignoreSolverSpecificParametersFailure.
 
- 
hasModelDeltapublic 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:
- hasModelDeltain interface- MPModelRequestOrBuilder
- Returns:
- Whether the modelDelta field is set.
 
- 
getModelDeltaAdvanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto. optional .operations_research.MPModelDeltaProto model_delta = 8;- Specified by:
- getModelDeltain interface- MPModelRequestOrBuilder
- Returns:
- The modelDelta.
 
- 
getModelDeltaOrBuilderAdvanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProto. optional .operations_research.MPModelDeltaProto model_delta = 8;- Specified by:
- getModelDeltaOrBuilderin interface- MPModelRequestOrBuilder
 
- 
hasPopulateAdditionalSolutionsUpTopublic 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:
- hasPopulateAdditionalSolutionsUpToin interface- MPModelRequestOrBuilder
- Returns:
- Whether the populateAdditionalSolutionsUpTo field is set.
 
- 
getPopulateAdditionalSolutionsUpTopublic 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:
- getPopulateAdditionalSolutionsUpToin interface- MPModelRequestOrBuilder
- Returns:
- The populateAdditionalSolutionsUpTo.
 
- 
isInitializedpublic final boolean isInitialized()- Specified by:
- isInitializedin interface- com.google.protobuf.MessageLiteOrBuilder
- Overrides:
- isInitializedin class- com.google.protobuf.GeneratedMessage
 
- 
writeTo- Specified by:
- writeToin interface- com.google.protobuf.MessageLite
- Overrides:
- writeToin class- com.google.protobuf.GeneratedMessage
- Throws:
- IOException
 
- 
getSerializedSizepublic int getSerializedSize()- Specified by:
- getSerializedSizein interface- com.google.protobuf.MessageLite
- Overrides:
- getSerializedSizein class- com.google.protobuf.GeneratedMessage
 
- 
equals- Specified by:
- equalsin interface- com.google.protobuf.Message
- Overrides:
- equalsin class- com.google.protobuf.AbstractMessage
 
- 
hashCodepublic int hashCode()- Specified by:
- hashCodein interface- com.google.protobuf.Message
- Overrides:
- hashCodein class- com.google.protobuf.AbstractMessage
 
- 
parseFrompublic static MPModelRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrompublic static MPModelRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrompublic static MPModelRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrompublic static MPModelRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrompublic static MPModelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrompublic static MPModelRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrom- Throws:
- IOException
 
- 
parseFrompublic static MPModelRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
- IOException
 
- 
parseDelimitedFrom- Throws:
- IOException
 
- 
parseDelimitedFrompublic static MPModelRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
- IOException
 
- 
parseFrompublic static MPModelRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
- IOException
 
- 
parseFrompublic static MPModelRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
- IOException
 
- 
newBuilderForType- Specified by:
- newBuilderForTypein interface- com.google.protobuf.Message
- Specified by:
- newBuilderForTypein interface- com.google.protobuf.MessageLite
 
- 
newBuilder
- 
newBuilder
- 
toBuilder- Specified by:
- toBuilderin interface- com.google.protobuf.Message
- Specified by:
- toBuilderin interface- com.google.protobuf.MessageLite
 
- 
newBuilderForTypeprotected MPModelRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
- newBuilderForTypein class- com.google.protobuf.AbstractMessage
 
- 
getDefaultInstance
- 
parser
- 
getParserForType- Specified by:
- getParserForTypein interface- com.google.protobuf.Message
- Specified by:
- getParserForTypein interface- com.google.protobuf.MessageLite
- Overrides:
- getParserForTypein class- com.google.protobuf.GeneratedMessage
 
- 
getDefaultInstanceForType- Specified by:
- getDefaultInstanceForTypein interface- com.google.protobuf.MessageLiteOrBuilder
- Specified by:
- getDefaultInstanceForTypein interface- com.google.protobuf.MessageOrBuilder
 
 
-