Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPModelRequest.Builder Class Reference
Inheritance diagram for com.google.ortools.linearsolver.MPModelRequest.Builder:
com.google.ortools.linearsolver.MPModelRequestOrBuilder

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.linearsolver.MPModelRequest getDefaultInstanceForType ()
 
com.google.ortools.linearsolver.MPModelRequest build ()
 
com.google.ortools.linearsolver.MPModelRequest buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.linearsolver.MPModelRequest other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
boolean hasModel ()
 
com.google.ortools.linearsolver.MPModelProto getModel ()
 
Builder setModel (com.google.ortools.linearsolver.MPModelProto value)
 
Builder setModel (com.google.ortools.linearsolver.MPModelProto.Builder builderForValue)
 
Builder mergeModel (com.google.ortools.linearsolver.MPModelProto value)
 
Builder clearModel ()
 
com.google.ortools.linearsolver.MPModelProto.Builder getModelBuilder ()
 
com.google.ortools.linearsolver.MPModelProtoOrBuilder getModelOrBuilder ()
 
boolean hasSolverType ()
 
com.google.ortools.linearsolver.MPModelRequest.SolverType getSolverType ()
 
Builder setSolverType (com.google.ortools.linearsolver.MPModelRequest.SolverType value)
 
Builder clearSolverType ()
 
boolean hasSolverTimeLimitSeconds ()
 
double getSolverTimeLimitSeconds ()
 
Builder setSolverTimeLimitSeconds (double value)
 
Builder clearSolverTimeLimitSeconds ()
 
boolean hasEnableInternalSolverOutput ()
 
boolean getEnableInternalSolverOutput ()
 
Builder setEnableInternalSolverOutput (boolean value)
 
Builder clearEnableInternalSolverOutput ()
 
boolean hasSolverSpecificParameters ()
 
java.lang.String getSolverSpecificParameters ()
 
com.google.protobuf.ByteString getSolverSpecificParametersBytes ()
 
Builder setSolverSpecificParameters (java.lang.String value)
 
Builder clearSolverSpecificParameters ()
 
Builder setSolverSpecificParametersBytes (com.google.protobuf.ByteString value)
 
boolean hasIgnoreSolverSpecificParametersFailure ()
 
boolean getIgnoreSolverSpecificParametersFailure ()
 
Builder setIgnoreSolverSpecificParametersFailure (boolean value)
 
Builder clearIgnoreSolverSpecificParametersFailure ()
 
boolean hasModelDelta ()
 
com.google.ortools.linearsolver.MPModelDeltaProto getModelDelta ()
 
Builder setModelDelta (com.google.ortools.linearsolver.MPModelDeltaProto value)
 
Builder setModelDelta (com.google.ortools.linearsolver.MPModelDeltaProto.Builder builderForValue)
 
Builder mergeModelDelta (com.google.ortools.linearsolver.MPModelDeltaProto value)
 
Builder clearModelDelta ()
 
com.google.ortools.linearsolver.MPModelDeltaProto.Builder getModelDeltaBuilder ()
 
com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder getModelDeltaOrBuilder ()
 
boolean hasPopulateAdditionalSolutionsUpTo ()
 
int getPopulateAdditionalSolutionsUpTo ()
 
Builder setPopulateAdditionalSolutionsUpTo (int value)
 
Builder clearPopulateAdditionalSolutionsUpTo ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPModelRequestOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 

Detailed Description

Next id: 18.

Protobuf type operations_research.MPModelRequest

Definition at line 1012 of file MPModelRequest.java.

Member Function Documentation

◆ build()

com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.Builder.build ( )

Definition at line 1081 of file MPModelRequest.java.

◆ buildPartial()

com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.Builder.buildPartial ( )

Definition at line 1090 of file MPModelRequest.java.

◆ clear()

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.clear ( )

Definition at line 1047 of file MPModelRequest.java.

◆ clearEnableInternalSolverOutput()

Builder com.google.ortools.linearsolver.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];

Returns
This builder for chaining.

Definition at line 1619 of file MPModelRequest.java.

◆ clearIgnoreSolverSpecificParametersFailure()

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.clearIgnoreSolverSpecificParametersFailure ( )

optional bool ignore_solver_specific_parameters_failure = 9 [default = false];

Returns
This builder for chaining.

Definition at line 1841 of file MPModelRequest.java.

◆ clearModel()

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.clearModel ( )
The model to be optimized by the server.

optional .operations_research.MPModelProto model = 1;

Definition at line 1370 of file MPModelRequest.java.

◆ clearModelDelta()

Builder com.google.ortools.linearsolver.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;

Definition at line 1953 of file MPModelRequest.java.

◆ clearPopulateAdditionalSolutionsUpTo()

Builder com.google.ortools.linearsolver.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];

Returns
This builder for chaining.

Definition at line 2087 of file MPModelRequest.java.

◆ clearSolverSpecificParameters()

Builder com.google.ortools.linearsolver.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;

Returns
This builder for chaining.

Definition at line 1771 of file MPModelRequest.java.

◆ clearSolverTimeLimitSeconds()

Builder com.google.ortools.linearsolver.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;

Returns
This builder for chaining.

Definition at line 1551 of file MPModelRequest.java.

◆ clearSolverType()

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.clearSolverType ( )

optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];

Returns
This builder for chaining.

Definition at line 1463 of file MPModelRequest.java.

◆ getDefaultInstanceForType()

com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.Builder.getDefaultInstanceForType ( )

Definition at line 1076 of file MPModelRequest.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPModelRequest.Builder.getDescriptor ( )
static

Definition at line 1017 of file MPModelRequest.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPModelRequest.Builder.getDescriptorForType ( )

Definition at line 1071 of file MPModelRequest.java.

◆ getEnableInternalSolverOutput()

boolean com.google.ortools.linearsolver.MPModelRequest.Builder.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];

Returns
The enableInternalSolverOutput.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1586 of file MPModelRequest.java.

◆ getIgnoreSolverSpecificParametersFailure()

boolean com.google.ortools.linearsolver.MPModelRequest.Builder.getIgnoreSolverSpecificParametersFailure ( )

optional bool ignore_solver_specific_parameters_failure = 9 [default = false];

Returns
The ignoreSolverSpecificParametersFailure.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1822 of file MPModelRequest.java.

◆ getModel()

com.google.ortools.linearsolver.MPModelProto com.google.ortools.linearsolver.MPModelRequest.Builder.getModel ( )
The model to be optimized by the server.

optional .operations_research.MPModelProto model = 1;

Returns
The model.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1293 of file MPModelRequest.java.

◆ getModelBuilder()

com.google.ortools.linearsolver.MPModelProto.Builder com.google.ortools.linearsolver.MPModelRequest.Builder.getModelBuilder ( )
The model to be optimized by the server.

optional .operations_research.MPModelProto model = 1;

Definition at line 1387 of file MPModelRequest.java.

◆ getModelDelta()

com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelRequest.Builder.getModelDelta ( )
Advanced usage: model "delta". If used, "model" must be unset. See the
definition of MPModelDeltaProto.

optional .operations_research.MPModelDeltaProto model_delta = 8;

Returns
The modelDelta.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1872 of file MPModelRequest.java.

◆ getModelDeltaBuilder()

com.google.ortools.linearsolver.MPModelDeltaProto.Builder com.google.ortools.linearsolver.MPModelRequest.Builder.getModelDeltaBuilder ( )
Advanced usage: model "delta". If used, "model" must be unset. See the
definition of MPModelDeltaProto.

optional .operations_research.MPModelDeltaProto model_delta = 8;

Definition at line 1971 of file MPModelRequest.java.

◆ getModelDeltaOrBuilder()

com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder com.google.ortools.linearsolver.MPModelRequest.Builder.getModelDeltaOrBuilder ( )
Advanced usage: model "delta". If used, "model" must be unset. See the
definition of MPModelDeltaProto.

optional .operations_research.MPModelDeltaProto model_delta = 8;

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1984 of file MPModelRequest.java.

◆ getModelOrBuilder()

com.google.ortools.linearsolver.MPModelProtoOrBuilder com.google.ortools.linearsolver.MPModelRequest.Builder.getModelOrBuilder ( )
The model to be optimized by the server.

optional .operations_research.MPModelProto model = 1;

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1399 of file MPModelRequest.java.

◆ getPopulateAdditionalSolutionsUpTo()

int com.google.ortools.linearsolver.MPModelRequest.Builder.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];

Returns
The populateAdditionalSolutionsUpTo.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 2048 of file MPModelRequest.java.

◆ getSolverSpecificParameters()

java.lang.String com.google.ortools.linearsolver.MPModelRequest.Builder.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;

Returns
The solverSpecificParameters.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1672 of file MPModelRequest.java.

◆ getSolverSpecificParametersBytes()

com.google.protobuf.ByteString com.google.ortools.linearsolver.MPModelRequest.Builder.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;

Returns
The bytes for solverSpecificParameters.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1708 of file MPModelRequest.java.

◆ getSolverTimeLimitSeconds()

double com.google.ortools.linearsolver.MPModelRequest.Builder.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;

Returns
The solverTimeLimitSeconds.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1508 of file MPModelRequest.java.

◆ getSolverType()

com.google.ortools.linearsolver.MPModelRequest.SolverType com.google.ortools.linearsolver.MPModelRequest.Builder.getSolverType ( )

optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];

Returns
The solverType.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1441 of file MPModelRequest.java.

◆ hasEnableInternalSolverOutput()

boolean com.google.ortools.linearsolver.MPModelRequest.Builder.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];

Returns
Whether the enableInternalSolverOutput field is set.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1571 of file MPModelRequest.java.

◆ hasIgnoreSolverSpecificParametersFailure()

boolean com.google.ortools.linearsolver.MPModelRequest.Builder.hasIgnoreSolverSpecificParametersFailure ( )

optional bool ignore_solver_specific_parameters_failure = 9 [default = false];

Returns
Whether the ignoreSolverSpecificParametersFailure field is set.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1814 of file MPModelRequest.java.

◆ hasModel()

boolean com.google.ortools.linearsolver.MPModelRequest.Builder.hasModel ( )
The model to be optimized by the server.

optional .operations_research.MPModelProto model = 1;

Returns
Whether the model field is set.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1282 of file MPModelRequest.java.

◆ hasModelDelta()

boolean com.google.ortools.linearsolver.MPModelRequest.Builder.hasModelDelta ( )
Advanced usage: model "delta". If used, "model" must be unset. See the
definition of MPModelDeltaProto.

optional .operations_research.MPModelDeltaProto model_delta = 8;

Returns
Whether the modelDelta field is set.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1860 of file MPModelRequest.java.

◆ hasPopulateAdditionalSolutionsUpTo()

boolean com.google.ortools.linearsolver.MPModelRequest.Builder.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];

Returns
Whether the populateAdditionalSolutionsUpTo field is set.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 2030 of file MPModelRequest.java.

◆ hasSolverSpecificParameters()

boolean com.google.ortools.linearsolver.MPModelRequest.Builder.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;

Returns
Whether the solverSpecificParameters field is set.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1648 of file MPModelRequest.java.

◆ hasSolverTimeLimitSeconds()

boolean com.google.ortools.linearsolver.MPModelRequest.Builder.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;

Returns
Whether the solverTimeLimitSeconds field is set.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1488 of file MPModelRequest.java.

◆ hasSolverType()

boolean com.google.ortools.linearsolver.MPModelRequest.Builder.hasSolverType ( )

optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];

Returns
Whether the solverType field is set.

Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.

Definition at line 1433 of file MPModelRequest.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.linearsolver.MPModelRequest.Builder.internalGetFieldAccessorTable ( )
protected

Definition at line 1023 of file MPModelRequest.java.

◆ isInitialized()

final boolean com.google.ortools.linearsolver.MPModelRequest.Builder.isInitialized ( )

Definition at line 1183 of file MPModelRequest.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.mergeFrom ( com.google.ortools.linearsolver.MPModelRequest other)

Definition at line 1149 of file MPModelRequest.java.

◆ mergeFrom() [2/3]

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.mergeFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException

Definition at line 1188 of file MPModelRequest.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 1140 of file MPModelRequest.java.

◆ mergeModel()

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.mergeModel ( com.google.ortools.linearsolver.MPModelProto value)
The model to be optimized by the server.

optional .operations_research.MPModelProto model = 1;

Definition at line 1345 of file MPModelRequest.java.

◆ mergeModelDelta()

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.mergeModelDelta ( com.google.ortools.linearsolver.MPModelDeltaProto value)
Advanced usage: model "delta". If used, "model" must be unset. See the
definition of MPModelDeltaProto.

optional .operations_research.MPModelDeltaProto model_delta = 8;

Definition at line 1927 of file MPModelRequest.java.

◆ setEnableInternalSolverOutput()

Builder com.google.ortools.linearsolver.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];

Parameters
valueThe enableInternalSolverOutput to set.
Returns
This builder for chaining.

Definition at line 1601 of file MPModelRequest.java.

◆ setIgnoreSolverSpecificParametersFailure()

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.setIgnoreSolverSpecificParametersFailure ( boolean value)

optional bool ignore_solver_specific_parameters_failure = 9 [default = false];

Parameters
valueThe ignoreSolverSpecificParametersFailure to set.
Returns
This builder for chaining.

Definition at line 1830 of file MPModelRequest.java.

◆ setModel() [1/2]

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.setModel ( com.google.ortools.linearsolver.MPModelProto value)
The model to be optimized by the server.

optional .operations_research.MPModelProto model = 1;

Definition at line 1307 of file MPModelRequest.java.

◆ setModel() [2/2]

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.setModel ( com.google.ortools.linearsolver.MPModelProto.Builder builderForValue)
The model to be optimized by the server.

optional .operations_research.MPModelProto model = 1;

Definition at line 1327 of file MPModelRequest.java.

◆ setModelDelta() [1/2]

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.setModelDelta ( com.google.ortools.linearsolver.MPModelDeltaProto value)
Advanced usage: model "delta". If used, "model" must be unset. See the
definition of MPModelDeltaProto.

optional .operations_research.MPModelDeltaProto model_delta = 8;

Definition at line 1887 of file MPModelRequest.java.

◆ setModelDelta() [2/2]

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.setModelDelta ( com.google.ortools.linearsolver.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;

Definition at line 1908 of file MPModelRequest.java.

◆ setPopulateAdditionalSolutionsUpTo()

Builder com.google.ortools.linearsolver.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];

Parameters
valueThe populateAdditionalSolutionsUpTo to set.
Returns
This builder for chaining.

Definition at line 2066 of file MPModelRequest.java.

◆ setSolverSpecificParameters()

Builder com.google.ortools.linearsolver.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;

Parameters
valueThe solverSpecificParameters to set.
Returns
This builder for chaining.

Definition at line 1742 of file MPModelRequest.java.

◆ setSolverSpecificParametersBytes()

Builder com.google.ortools.linearsolver.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
valueThe bytes for solverSpecificParameters to set.
Returns
This builder for chaining.

Definition at line 1799 of file MPModelRequest.java.

◆ setSolverTimeLimitSeconds()

Builder com.google.ortools.linearsolver.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;

Parameters
valueThe solverTimeLimitSeconds to set.
Returns
This builder for chaining.

Definition at line 1528 of file MPModelRequest.java.

◆ setSolverType()

Builder com.google.ortools.linearsolver.MPModelRequest.Builder.setSolverType ( com.google.ortools.linearsolver.MPModelRequest.SolverType value)

optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];

Parameters
valueThe solverType to set.
Returns
This builder for chaining.

Definition at line 1450 of file MPModelRequest.java.


The documentation for this class was generated from the following file: