public final class MPSolverCommonParameters extends com.google.protobuf.GeneratedMessage implements MPSolverCommonParametersOrBuilder
MPSolverCommonParameters holds advanced usage parameters that apply to any of the solvers we support. All of the fields in this proto can have a value of unspecified. In this case each inner solver will use their own safe defaults. Some values won't be supported by some solvers. The behavior in that case is not defined yet.Protobuf type
operations_research.MPSolverCommonParameters| Modifier and Type | Class and Description |
|---|---|
static class |
MPSolverCommonParameters.Builder
MPSolverCommonParameters holds advanced usage parameters that apply to any of
the solvers we support.
|
static class |
MPSolverCommonParameters.LPAlgorithmValues
Protobuf enum
operations_research.MPSolverCommonParameters.LPAlgorithmValues |
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DUAL_TOLERANCE_FIELD_NUMBER |
static int |
LP_ALGORITHM_FIELD_NUMBER |
static int |
PRESOLVE_FIELD_NUMBER |
static int |
PRIMAL_TOLERANCE_FIELD_NUMBER |
static int |
RELATIVE_MIP_GAP_FIELD_NUMBER |
static int |
SCALING_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static MPSolverCommonParameters |
getDefaultInstance() |
MPSolverCommonParameters |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
OptionalDouble |
getDualTolerance()
Tolerance for dual feasibility.
|
OptionalDoubleOrBuilder |
getDualToleranceOrBuilder()
Tolerance for dual feasibility.
|
MPSolverCommonParameters.LPAlgorithmValues |
getLpAlgorithm()
Algorithm to solve linear programs.
|
com.google.protobuf.Parser<MPSolverCommonParameters> |
getParserForType() |
OptionalBoolean |
getPresolve()
Gurobi and SCIP enable presolve by default.
|
OptionalDouble |
getPrimalTolerance()
Tolerance for primal feasibility of basic solutions: this is the maximum
allowed error in constraint satisfiability.
|
OptionalDoubleOrBuilder |
getPrimalToleranceOrBuilder()
Tolerance for primal feasibility of basic solutions: this is the maximum
allowed error in constraint satisfiability.
|
OptionalDouble |
getRelativeMipGap()
The solver stops if the relative MIP gap reaches this value or below.
|
OptionalDoubleOrBuilder |
getRelativeMipGapOrBuilder()
The solver stops if the relative MIP gap reaches this value or below.
|
OptionalBoolean |
getScaling()
Enable automatic scaling of matrix coefficients and objective.
|
int |
getSerializedSize() |
boolean |
hasDualTolerance()
Tolerance for dual feasibility.
|
int |
hashCode() |
boolean |
hasLpAlgorithm()
Algorithm to solve linear programs.
|
boolean |
hasPresolve()
Gurobi and SCIP enable presolve by default.
|
boolean |
hasPrimalTolerance()
Tolerance for primal feasibility of basic solutions: this is the maximum
allowed error in constraint satisfiability.
|
boolean |
hasRelativeMipGap()
The solver stops if the relative MIP gap reaches this value or below.
|
boolean |
hasScaling()
Enable automatic scaling of matrix coefficients and objective.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MPSolverCommonParameters.Builder |
newBuilder() |
static MPSolverCommonParameters.Builder |
newBuilder(MPSolverCommonParameters prototype) |
MPSolverCommonParameters.Builder |
newBuilderForType() |
protected MPSolverCommonParameters.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static MPSolverCommonParameters |
parseDelimitedFrom(java.io.InputStream input) |
static MPSolverCommonParameters |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPSolverCommonParameters |
parseFrom(byte[] data) |
static MPSolverCommonParameters |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPSolverCommonParameters |
parseFrom(java.nio.ByteBuffer data) |
static MPSolverCommonParameters |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPSolverCommonParameters |
parseFrom(com.google.protobuf.ByteString data) |
static MPSolverCommonParameters |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPSolverCommonParameters |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MPSolverCommonParameters |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPSolverCommonParameters |
parseFrom(java.io.InputStream input) |
static MPSolverCommonParameters |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MPSolverCommonParameters> |
parser() |
MPSolverCommonParameters.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int RELATIVE_MIP_GAP_FIELD_NUMBER
public static final int PRIMAL_TOLERANCE_FIELD_NUMBER
public static final int DUAL_TOLERANCE_FIELD_NUMBER
public static final int LP_ALGORITHM_FIELD_NUMBER
public static final int PRESOLVE_FIELD_NUMBER
public static final int SCALING_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic boolean hasRelativeMipGap()
The solver stops if the relative MIP gap reaches this value or below. The relative MIP gap is an upper bound of the relative distance to the optimum, and it is defined as: abs(best_bound - incumbent) / abs(incumbent) [Gurobi] abs(best_bound - incumbent) / min(abs(best_bound), abs(incumbent)) [SCIP] where "incumbent" is the objective value of the best solution found so far (i.e., lowest when minimizing, highest when maximizing), and "best_bound" is the tightest bound of the objective determined so far (i.e., highest when minimizing, and lowest when maximizing). The MIP Gap is sensitive to objective offset. If the denominator is 0 the MIP Gap is INFINITY for SCIP and Gurobi. Of note, "incumbent" and "best bound" are called "primal bound" and "dual bound" in SCIP, respectively. Ask or-core-team@ for other solvers.
optional .operations_research.OptionalDouble relative_mip_gap = 1;hasRelativeMipGap in interface MPSolverCommonParametersOrBuilderpublic OptionalDouble getRelativeMipGap()
The solver stops if the relative MIP gap reaches this value or below. The relative MIP gap is an upper bound of the relative distance to the optimum, and it is defined as: abs(best_bound - incumbent) / abs(incumbent) [Gurobi] abs(best_bound - incumbent) / min(abs(best_bound), abs(incumbent)) [SCIP] where "incumbent" is the objective value of the best solution found so far (i.e., lowest when minimizing, highest when maximizing), and "best_bound" is the tightest bound of the objective determined so far (i.e., highest when minimizing, and lowest when maximizing). The MIP Gap is sensitive to objective offset. If the denominator is 0 the MIP Gap is INFINITY for SCIP and Gurobi. Of note, "incumbent" and "best bound" are called "primal bound" and "dual bound" in SCIP, respectively. Ask or-core-team@ for other solvers.
optional .operations_research.OptionalDouble relative_mip_gap = 1;getRelativeMipGap in interface MPSolverCommonParametersOrBuilderpublic OptionalDoubleOrBuilder getRelativeMipGapOrBuilder()
The solver stops if the relative MIP gap reaches this value or below. The relative MIP gap is an upper bound of the relative distance to the optimum, and it is defined as: abs(best_bound - incumbent) / abs(incumbent) [Gurobi] abs(best_bound - incumbent) / min(abs(best_bound), abs(incumbent)) [SCIP] where "incumbent" is the objective value of the best solution found so far (i.e., lowest when minimizing, highest when maximizing), and "best_bound" is the tightest bound of the objective determined so far (i.e., highest when minimizing, and lowest when maximizing). The MIP Gap is sensitive to objective offset. If the denominator is 0 the MIP Gap is INFINITY for SCIP and Gurobi. Of note, "incumbent" and "best bound" are called "primal bound" and "dual bound" in SCIP, respectively. Ask or-core-team@ for other solvers.
optional .operations_research.OptionalDouble relative_mip_gap = 1;getRelativeMipGapOrBuilder in interface MPSolverCommonParametersOrBuilderpublic boolean hasPrimalTolerance()
Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability. For SCIP this includes integrality constraints. For Gurobi it does not, you need to set the custom parameter IntFeasTol.
optional .operations_research.OptionalDouble primal_tolerance = 2;hasPrimalTolerance in interface MPSolverCommonParametersOrBuilderpublic OptionalDouble getPrimalTolerance()
Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability. For SCIP this includes integrality constraints. For Gurobi it does not, you need to set the custom parameter IntFeasTol.
optional .operations_research.OptionalDouble primal_tolerance = 2;getPrimalTolerance in interface MPSolverCommonParametersOrBuilderpublic OptionalDoubleOrBuilder getPrimalToleranceOrBuilder()
Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability. For SCIP this includes integrality constraints. For Gurobi it does not, you need to set the custom parameter IntFeasTol.
optional .operations_research.OptionalDouble primal_tolerance = 2;getPrimalToleranceOrBuilder in interface MPSolverCommonParametersOrBuilderpublic boolean hasDualTolerance()
Tolerance for dual feasibility. For SCIP and Gurobi this is the feasibility tolerance for reduced costs in LP solution: reduced costs must all be smaller than this value in the improving direction in order for a model to be declared optimal. Not supported for other solvers.
optional .operations_research.OptionalDouble dual_tolerance = 3;hasDualTolerance in interface MPSolverCommonParametersOrBuilderpublic OptionalDouble getDualTolerance()
Tolerance for dual feasibility. For SCIP and Gurobi this is the feasibility tolerance for reduced costs in LP solution: reduced costs must all be smaller than this value in the improving direction in order for a model to be declared optimal. Not supported for other solvers.
optional .operations_research.OptionalDouble dual_tolerance = 3;getDualTolerance in interface MPSolverCommonParametersOrBuilderpublic OptionalDoubleOrBuilder getDualToleranceOrBuilder()
Tolerance for dual feasibility. For SCIP and Gurobi this is the feasibility tolerance for reduced costs in LP solution: reduced costs must all be smaller than this value in the improving direction in order for a model to be declared optimal. Not supported for other solvers.
optional .operations_research.OptionalDouble dual_tolerance = 3;getDualToleranceOrBuilder in interface MPSolverCommonParametersOrBuilderpublic boolean hasLpAlgorithm()
Algorithm to solve linear programs. Ask or-core-team@ if you want to know what this does exactly.
optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = LP_ALGO_UNSPECIFIED];hasLpAlgorithm in interface MPSolverCommonParametersOrBuilderpublic MPSolverCommonParameters.LPAlgorithmValues getLpAlgorithm()
Algorithm to solve linear programs. Ask or-core-team@ if you want to know what this does exactly.
optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = LP_ALGO_UNSPECIFIED];getLpAlgorithm in interface MPSolverCommonParametersOrBuilderpublic boolean hasPresolve()
Gurobi and SCIP enable presolve by default. Ask or-core-team@ for other solvers.
optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];hasPresolve in interface MPSolverCommonParametersOrBuilderpublic OptionalBoolean getPresolve()
Gurobi and SCIP enable presolve by default. Ask or-core-team@ for other solvers.
optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];getPresolve in interface MPSolverCommonParametersOrBuilderpublic boolean hasScaling()
Enable automatic scaling of matrix coefficients and objective. Available for Gurobi and GLOP. Ask or-core-team@ if you want more details.
optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];hasScaling in interface MPSolverCommonParametersOrBuilderpublic OptionalBoolean getScaling()
Enable automatic scaling of matrix coefficients and objective. Available for Gurobi and GLOP. Ask or-core-team@ if you want more details.
optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];getScaling in interface MPSolverCommonParametersOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MPSolverCommonParameters parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolverCommonParameters parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolverCommonParameters parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolverCommonParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolverCommonParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolverCommonParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolverCommonParameters parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPSolverCommonParameters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MPSolverCommonParameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPSolverCommonParameters parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MPSolverCommonParameters parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPSolverCommonParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic MPSolverCommonParameters.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MPSolverCommonParameters.Builder newBuilder()
public static MPSolverCommonParameters.Builder newBuilder(MPSolverCommonParameters prototype)
public MPSolverCommonParameters.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MPSolverCommonParameters.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static MPSolverCommonParameters getDefaultInstance()
public static com.google.protobuf.Parser<MPSolverCommonParameters> parser()
public com.google.protobuf.Parser<MPSolverCommonParameters> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic MPSolverCommonParameters getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024. All rights reserved.