Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | Builder |
enum | SolverType |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.linearsolver.MPModelRequest | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelRequest | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelRequest | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelRequest | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelRequest | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelRequest | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPModelRequest | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPModelRequest | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.linearsolver.MPModelRequest | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPModelRequest | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.linearsolver.MPModelRequest | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPModelRequest | parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static Builder | newBuilder () |
static Builder | newBuilder (com.google.ortools.linearsolver.MPModelRequest prototype) |
static com.google.ortools.linearsolver.MPModelRequest | getDefaultInstance () |
static com.google.protobuf.Parser< MPModelRequest > | parser () |
Static Public Attributes | |
static final int | MODEL_FIELD_NUMBER = 1 |
static final int | SOLVER_TYPE_FIELD_NUMBER = 2 |
static final int | SOLVER_TIME_LIMIT_SECONDS_FIELD_NUMBER = 3 |
static final int | ENABLE_INTERNAL_SOLVER_OUTPUT_FIELD_NUMBER = 4 |
static final int | SOLVER_SPECIFIC_PARAMETERS_FIELD_NUMBER = 5 |
static final int | IGNORE_SOLVER_SPECIFIC_PARAMETERS_FAILURE_FIELD_NUMBER = 9 |
static final int | MODEL_DELTA_FIELD_NUMBER = 8 |
static final int | POPULATE_ADDITIONAL_SOLUTIONS_UP_TO_FIELD_NUMBER = 11 |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
Next id: 18.
Protobuf type operations_research.MPModelRequest
Definition at line 14 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.equals | ( | final java.lang.Object | obj | ) |
Definition at line 813 of file MPModelRequest.java.
|
static |
Definition at line 2103 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.getDefaultInstanceForType | ( | ) |
Definition at line 2139 of file MPModelRequest.java.
|
static |
Definition at line 38 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.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 526 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.getIgnoreSolverSpecificParametersFailure | ( | ) |
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 645 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelProto com.google.ortools.linearsolver.MPModelRequest.getModel | ( | ) |
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 421 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelDeltaProto com.google.ortools.linearsolver.MPModelRequest.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 674 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelDeltaProtoOrBuilder com.google.ortools.linearsolver.MPModelRequest.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 686 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelProtoOrBuilder com.google.ortools.linearsolver.MPModelRequest.getModelOrBuilder | ( | ) |
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 432 of file MPModelRequest.java.
com.google.protobuf.Parser< MPModelRequest > com.google.ortools.linearsolver.MPModelRequest.getParserForType | ( | ) |
Definition at line 2134 of file MPModelRequest.java.
int com.google.ortools.linearsolver.MPModelRequest.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 725 of file MPModelRequest.java.
int com.google.ortools.linearsolver.MPModelRequest.getSerializedSize | ( | ) |
Definition at line 771 of file MPModelRequest.java.
java.lang.String com.google.ortools.linearsolver.MPModelRequest.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 580 of file MPModelRequest.java.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPModelRequest.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 617 of file MPModelRequest.java.
double com.google.ortools.linearsolver.MPModelRequest.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 493 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelRequest.SolverType com.google.ortools.linearsolver.MPModelRequest.getSolverType | ( | ) |
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 449 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.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 511 of file MPModelRequest.java.
int com.google.ortools.linearsolver.MPModelRequest.hashCode | ( | ) |
Definition at line 867 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.hasIgnoreSolverSpecificParametersFailure | ( | ) |
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 637 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.hasModel | ( | ) |
The model to be optimized by the server.
optional .operations_research.MPModelProto model = 1;
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 409 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.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 661 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.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 707 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.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 555 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.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 473 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.hasSolverType | ( | ) |
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
Implements com.google.ortools.linearsolver.MPModelRequestOrBuilder.
Definition at line 442 of file MPModelRequest.java.
|
protected |
Definition at line 44 of file MPModelRequest.java.
final boolean com.google.ortools.linearsolver.MPModelRequest.isInitialized | ( | ) |
Definition at line 731 of file MPModelRequest.java.
|
static |
Definition at line 987 of file MPModelRequest.java.
|
static |
Definition at line 990 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.newBuilderForType | ( | ) |
Definition at line 986 of file MPModelRequest.java.
|
protected |
Definition at line 1000 of file MPModelRequest.java.
|
static |
Definition at line 958 of file MPModelRequest.java.
|
static |
Definition at line 964 of file MPModelRequest.java.
|
static |
Definition at line 935 of file MPModelRequest.java.
|
static |
Definition at line 939 of file MPModelRequest.java.
|
static |
Definition at line 924 of file MPModelRequest.java.
|
static |
Definition at line 929 of file MPModelRequest.java.
|
static |
Definition at line 971 of file MPModelRequest.java.
|
static |
Definition at line 977 of file MPModelRequest.java.
|
static |
Definition at line 945 of file MPModelRequest.java.
|
static |
Definition at line 950 of file MPModelRequest.java.
|
static |
Definition at line 913 of file MPModelRequest.java.
|
static |
Definition at line 918 of file MPModelRequest.java.
|
static |
Definition at line 2129 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.toBuilder | ( | ) |
Definition at line 994 of file MPModelRequest.java.
void com.google.ortools.linearsolver.MPModelRequest.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 741 of file MPModelRequest.java.
|
static |
Definition at line 497 of file MPModelRequest.java.
|
static |
Definition at line 630 of file MPModelRequest.java.
|
static |
Definition at line 649 of file MPModelRequest.java.
|
static |
Definition at line 398 of file MPModelRequest.java.
|
static |
Definition at line 690 of file MPModelRequest.java.
|
static |
Definition at line 530 of file MPModelRequest.java.
|
static |
Definition at line 454 of file MPModelRequest.java.
|
static |
Definition at line 436 of file MPModelRequest.java.