![]() |
Google OR-Tools v9.12
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 15 of file MPModelRequest.java.
boolean com.google.ortools.linearsolver.MPModelRequest.equals | ( | final java.lang.Object | obj | ) |
Definition at line 814 of file MPModelRequest.java.
|
static |
Definition at line 2104 of file MPModelRequest.java.
com.google.ortools.linearsolver.MPModelRequest com.google.ortools.linearsolver.MPModelRequest.getDefaultInstanceForType | ( | ) |
Definition at line 2140 of file MPModelRequest.java.
|
static |
Definition at line 39 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 527 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 646 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 422 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 675 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 687 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 433 of file MPModelRequest.java.
com.google.protobuf.Parser< MPModelRequest > com.google.ortools.linearsolver.MPModelRequest.getParserForType | ( | ) |
Definition at line 2135 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 726 of file MPModelRequest.java.
int com.google.ortools.linearsolver.MPModelRequest.getSerializedSize | ( | ) |
Definition at line 772 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 581 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 618 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 494 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 450 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 512 of file MPModelRequest.java.
int com.google.ortools.linearsolver.MPModelRequest.hashCode | ( | ) |
Definition at line 868 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 638 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 410 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 662 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 708 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 556 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 474 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 443 of file MPModelRequest.java.
|
protected |
Definition at line 45 of file MPModelRequest.java.
final boolean com.google.ortools.linearsolver.MPModelRequest.isInitialized | ( | ) |
Definition at line 732 of file MPModelRequest.java.
|
static |
Definition at line 988 of file MPModelRequest.java.
|
static |
Definition at line 991 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.newBuilderForType | ( | ) |
Definition at line 987 of file MPModelRequest.java.
|
protected |
Definition at line 1001 of file MPModelRequest.java.
|
static |
Definition at line 959 of file MPModelRequest.java.
|
static |
Definition at line 965 of file MPModelRequest.java.
|
static |
Definition at line 936 of file MPModelRequest.java.
|
static |
Definition at line 940 of file MPModelRequest.java.
|
static |
Definition at line 925 of file MPModelRequest.java.
|
static |
Definition at line 930 of file MPModelRequest.java.
|
static |
Definition at line 972 of file MPModelRequest.java.
|
static |
Definition at line 978 of file MPModelRequest.java.
|
static |
Definition at line 946 of file MPModelRequest.java.
|
static |
Definition at line 951 of file MPModelRequest.java.
|
static |
Definition at line 914 of file MPModelRequest.java.
|
static |
Definition at line 919 of file MPModelRequest.java.
|
static |
Definition at line 2130 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.toBuilder | ( | ) |
Definition at line 995 of file MPModelRequest.java.
void com.google.ortools.linearsolver.MPModelRequest.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 742 of file MPModelRequest.java.
|
static |
Definition at line 498 of file MPModelRequest.java.
|
static |
Definition at line 631 of file MPModelRequest.java.
|
static |
Definition at line 650 of file MPModelRequest.java.
|
static |
Definition at line 399 of file MPModelRequest.java.
|
static |
Definition at line 691 of file MPModelRequest.java.
|
static |
Definition at line 531 of file MPModelRequest.java.
|
static |
Definition at line 455 of file MPModelRequest.java.
|
static |
Definition at line 437 of file MPModelRequest.java.