Google OR-Tools v9.11
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 1012 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.Builder.build | ( | ) |
Definition at line 1081 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.Builder.buildPartial | ( | ) |
Definition at line 1090 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.Builder.clear | ( | ) |
Definition at line 1047 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 1619 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 1841 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 1370 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 1953 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 2087 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 1771 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 1551 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 1463 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 1076 of file MPModelRequest.java.
|
static |
Definition at line 1017 of file MPModelRequest.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPModelRequest.Builder.getDescriptorForType | ( | ) |
Definition at line 1071 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 1586 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 1822 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 1293 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 1387 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 1872 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 1971 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 1984 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 1399 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 2048 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 1672 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 1708 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 1508 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 1441 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 1571 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 1814 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 1282 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 1860 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 2030 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 1648 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 1488 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 1433 of file MPModelRequest.java.
|
protected |
Definition at line 1023 of file MPModelRequest.java.
final boolean com.google.ortools.linearsolver.MPModelRequest.Builder.isInitialized | ( | ) |
Definition at line 1183 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPModelRequest | other | ) |
Definition at line 1149 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 1188 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 1140 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 1345 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 1927 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 1601 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 1830 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 1307 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 1327 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 1887 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 1908 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 2066 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 1742 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 1799 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 1528 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 1450 of file MPModelRequest.java.