![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Next id: 18.
Protobuf type operations_research.MPModelRequest
Definition at line 16 of file MPModelRequest.java.
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) |
boolean com.google.ortools.linearsolver.MPModelRequest.equals | ( | final java.lang.Object | obj | ) |
Definition at line 815 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 40 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 528 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 647 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 423 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 676 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 688 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 434 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 727 of file MPModelRequest.java.
int com.google.ortools.linearsolver.MPModelRequest.getSerializedSize | ( | ) |
Definition at line 773 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 582 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 619 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 495 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 451 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 513 of file MPModelRequest.java.
int com.google.ortools.linearsolver.MPModelRequest.hashCode | ( | ) |
Definition at line 869 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 639 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 411 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 663 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 709 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 557 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 475 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 444 of file MPModelRequest.java.
|
protected |
Definition at line 46 of file MPModelRequest.java.
final boolean com.google.ortools.linearsolver.MPModelRequest.isInitialized | ( | ) |
Definition at line 733 of file MPModelRequest.java.
|
static |
Definition at line 989 of file MPModelRequest.java.
|
static |
Definition at line 992 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.newBuilderForType | ( | ) |
Definition at line 988 of file MPModelRequest.java.
|
protected |
Definition at line 1002 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 937 of file MPModelRequest.java.
|
static |
Definition at line 941 of file MPModelRequest.java.
|
static |
Definition at line 926 of file MPModelRequest.java.
|
static |
Definition at line 931 of file MPModelRequest.java.
|
static |
Definition at line 973 of file MPModelRequest.java.
|
static |
Definition at line 979 of file MPModelRequest.java.
|
static |
Definition at line 947 of file MPModelRequest.java.
|
static |
Definition at line 952 of file MPModelRequest.java.
|
static |
Definition at line 915 of file MPModelRequest.java.
|
static |
Definition at line 920 of file MPModelRequest.java.
|
static |
Definition at line 2129 of file MPModelRequest.java.
Builder com.google.ortools.linearsolver.MPModelRequest.toBuilder | ( | ) |
Definition at line 996 of file MPModelRequest.java.
void com.google.ortools.linearsolver.MPModelRequest.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 743 of file MPModelRequest.java.
|
static |
Definition at line 499 of file MPModelRequest.java.
|
static |
Definition at line 632 of file MPModelRequest.java.
|
static |
Definition at line 651 of file MPModelRequest.java.
|
static |
Definition at line 400 of file MPModelRequest.java.
|
static |
Definition at line 692 of file MPModelRequest.java.
|
static |
Definition at line 532 of file MPModelRequest.java.
|
static |
Definition at line 456 of file MPModelRequest.java.
|
static |
Definition at line 438 of file MPModelRequest.java.