Google OR-Tools v9.9
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 |
static final com.google.protobuf.Parser< MPModelRequest > | PARSER |
Protected Member Functions | |
java.lang.Object | newInstance (UnusedPrivateParameter unused) |
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessageV3.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 802 of file MPModelRequest.java.
|
static |
Definition at line 2136 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.getDefaultInstanceForType | ( | ) |
Definition at line 2172 of file MPModelRequest.java.
|
static |
Definition at line 36 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 515 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 634 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 410 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 663 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 675 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 421 of file MPModelRequest.java.
com.google.protobuf.Parser< MPModelRequest > com.google.ortools.linearsolver.MPModelRequest.getParserForType | ( | ) |
Definition at line 2167 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 714 of file MPModelRequest.java.
int com.google.ortools.linearsolver.MPModelRequest.getSerializedSize | ( | ) |
Definition at line 760 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 569 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 606 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 482 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 438 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 500 of file MPModelRequest.java.
int com.google.ortools.linearsolver.MPModelRequest.hashCode | ( | ) |
Definition at line 856 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 626 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 398 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 650 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 696 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 544 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 462 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 431 of file MPModelRequest.java.
|
protected |
Definition at line 42 of file MPModelRequest.java.
final boolean com.google.ortools.linearsolver.MPModelRequest.isInitialized | ( | ) |
Definition at line 720 of file MPModelRequest.java.
|
static |
Definition at line 976 of file MPModelRequest.java.
|
static |
Definition at line 979 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.newBuilderForType | ( | ) |
Definition at line 975 of file MPModelRequest.java.
|
protected |
Definition at line 989 of file MPModelRequest.java.
|
protected |
Definition at line 30 of file MPModelRequest.java.
|
static |
Definition at line 947 of file MPModelRequest.java.
|
static |
Definition at line 953 of file MPModelRequest.java.
|
static |
Definition at line 924 of file MPModelRequest.java.
|
static |
Definition at line 928 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 960 of file MPModelRequest.java.
|
static |
Definition at line 966 of file MPModelRequest.java.
|
static |
Definition at line 934 of file MPModelRequest.java.
|
static |
Definition at line 939 of file MPModelRequest.java.
|
static |
Definition at line 902 of file MPModelRequest.java.
|
static |
Definition at line 907 of file MPModelRequest.java.
|
static |
Definition at line 2162 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.toBuilder | ( | ) |
Definition at line 983 of file MPModelRequest.java.
void com.google.ortools.linearsolver.MPModelRequest.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 730 of file MPModelRequest.java.
|
static |
Definition at line 486 of file MPModelRequest.java.
|
static |
Definition at line 619 of file MPModelRequest.java.
|
static |
Definition at line 638 of file MPModelRequest.java.
|
static |
Definition at line 387 of file MPModelRequest.java.
|
static |
Definition at line 2141 of file MPModelRequest.java.
|
static |
Definition at line 679 of file MPModelRequest.java.
|
static |
Definition at line 519 of file MPModelRequest.java.
|
static |
Definition at line 443 of file MPModelRequest.java.
|
static |
Definition at line 425 of file MPModelRequest.java.