![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Next id: 18.
Protobuf type operations_research.MPModelRequest
Definition at line 1013 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.Builder.build | ( | ) |
Definition at line 1082 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.Builder.buildPartial | ( | ) |
Definition at line 1091 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.Builder.clear | ( | ) |
Definition at line 1048 of file MPModelRequest.java.
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];
Definition at line 1620 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.Builder.clearIgnoreSolverSpecificParametersFailure | ( | ) |
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
Definition at line 1842 of file MPModelRequest.java.
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 1371 of file MPModelRequest.java.
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 1954 of file MPModelRequest.java.
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];
Definition at line 2088 of file MPModelRequest.java.
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;
Definition at line 1772 of file MPModelRequest.java.
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;
Definition at line 1552 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.Builder.clearSolverType | ( | ) |
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
Definition at line 1464 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 1077 of file MPModelRequest.java.
|
static |
Definition at line 1018 of file MPModelRequest.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPModelRequest.Builder.getDescriptorForType | ( | ) |
Definition at line 1072 of file MPModelRequest.java.
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];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1587 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.Builder.getIgnoreSolverSpecificParametersFailure | ( | ) |
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1823 of file MPModelRequest.java.
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;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1294 of file MPModelRequest.java.
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 1388 of file MPModelRequest.java.
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;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1873 of file MPModelRequest.java.
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 1972 of file MPModelRequest.java.
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 1985 of file MPModelRequest.java.
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 1400 of file MPModelRequest.java.
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];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 2049 of file MPModelRequest.java.
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;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1673 of file MPModelRequest.java.
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;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1709 of file MPModelRequest.java.
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;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1509 of file MPModelRequest.java.
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];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1442 of file MPModelRequest.java.
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];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1572 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.Builder.hasIgnoreSolverSpecificParametersFailure | ( | ) |
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1815 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.Builder.hasModel | ( | ) |
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1283 of file MPModelRequest.java.
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;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1861 of file MPModelRequest.java.
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];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 2031 of file MPModelRequest.java.
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;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1649 of file MPModelRequest.java.
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;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1489 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.Builder.hasSolverType | ( | ) |
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 1434 of file MPModelRequest.java.
|
protected |
Definition at line 1024 of file MPModelRequest.java.
final boolean com.google.ortools.linearsolver.MPModelRequest.Builder.isInitialized | ( | ) |
Definition at line 1184 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPModelRequest | other | ) |
Definition at line 1150 of file MPModelRequest.java.
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 1189 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 1141 of file MPModelRequest.java.
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 1346 of file MPModelRequest.java.
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 1928 of file MPModelRequest.java.
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];
value | The enableInternalSolverOutput to set. |
Definition at line 1602 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.Builder.setIgnoreSolverSpecificParametersFailure | ( | boolean | value | ) |
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
value | The ignoreSolverSpecificParametersFailure to set. |
Definition at line 1831 of file MPModelRequest.java.
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 1308 of file MPModelRequest.java.
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 1328 of file MPModelRequest.java.
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 1888 of file MPModelRequest.java.
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 1909 of file MPModelRequest.java.
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];
value | The populateAdditionalSolutionsUpTo to set. |
Definition at line 2067 of file MPModelRequest.java.
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;
value | The solverSpecificParameters to set. |
Definition at line 1743 of file MPModelRequest.java.
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;
value | The bytes for solverSpecificParameters to set. |
Definition at line 1800 of file MPModelRequest.java.
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;
value | The solverTimeLimitSeconds to set. |
Definition at line 1529 of file MPModelRequest.java.
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];
value | The solverType to set. |
Definition at line 1451 of file MPModelRequest.java.