Package com.google.ortools.linearsolver
Class MPSolverCommonParameters.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
- com.google.ortools.linearsolver.MPSolverCommonParameters.Builder
-
- All Implemented Interfaces:
MPSolverCommonParametersOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- MPSolverCommonParameters
public static final class MPSolverCommonParameters.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder> 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 typeoperations_research.MPSolverCommonParameters
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MPSolverCommonParameters.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)MPSolverCommonParametersbuild()MPSolverCommonParametersbuildPartial()MPSolverCommonParameters.Builderclear()MPSolverCommonParameters.BuilderclearDualTolerance()Tolerance for dual feasibility.MPSolverCommonParameters.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MPSolverCommonParameters.BuilderclearLpAlgorithm()Algorithm to solve linear programs.MPSolverCommonParameters.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MPSolverCommonParameters.BuilderclearPresolve()Gurobi and SCIP enable presolve by default.MPSolverCommonParameters.BuilderclearPrimalTolerance()Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability.MPSolverCommonParameters.BuilderclearRelativeMipGap()The solver stops if the relative MIP gap reaches this value or below.MPSolverCommonParameters.BuilderclearScaling()Enable automatic scaling of matrix coefficients and objective.MPSolverCommonParameters.Builderclone()MPSolverCommonParametersgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()OptionalDoublegetDualTolerance()Tolerance for dual feasibility.OptionalDouble.BuildergetDualToleranceBuilder()Tolerance for dual feasibility.OptionalDoubleOrBuildergetDualToleranceOrBuilder()Tolerance for dual feasibility.MPSolverCommonParameters.LPAlgorithmValuesgetLpAlgorithm()Algorithm to solve linear programs.OptionalBooleangetPresolve()Gurobi and SCIP enable presolve by default.OptionalDoublegetPrimalTolerance()Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability.OptionalDouble.BuildergetPrimalToleranceBuilder()Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability.OptionalDoubleOrBuildergetPrimalToleranceOrBuilder()Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability.OptionalDoublegetRelativeMipGap()The solver stops if the relative MIP gap reaches this value or below.OptionalDouble.BuildergetRelativeMipGapBuilder()The solver stops if the relative MIP gap reaches this value or below.OptionalDoubleOrBuildergetRelativeMipGapOrBuilder()The solver stops if the relative MIP gap reaches this value or below.OptionalBooleangetScaling()Enable automatic scaling of matrix coefficients and objective.booleanhasDualTolerance()Tolerance for dual feasibility.booleanhasLpAlgorithm()Algorithm to solve linear programs.booleanhasPresolve()Gurobi and SCIP enable presolve by default.booleanhasPrimalTolerance()Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability.booleanhasRelativeMipGap()The solver stops if the relative MIP gap reaches this value or below.booleanhasScaling()Enable automatic scaling of matrix coefficients and objective.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MPSolverCommonParameters.BuildermergeDualTolerance(OptionalDouble value)Tolerance for dual feasibility.MPSolverCommonParameters.BuildermergeFrom(MPSolverCommonParameters other)MPSolverCommonParameters.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MPSolverCommonParameters.BuildermergeFrom(com.google.protobuf.Message other)MPSolverCommonParameters.BuildermergePrimalTolerance(OptionalDouble value)Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability.MPSolverCommonParameters.BuildermergeRelativeMipGap(OptionalDouble value)The solver stops if the relative MIP gap reaches this value or below.MPSolverCommonParameters.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MPSolverCommonParameters.BuildersetDualTolerance(OptionalDouble value)Tolerance for dual feasibility.MPSolverCommonParameters.BuildersetDualTolerance(OptionalDouble.Builder builderForValue)Tolerance for dual feasibility.MPSolverCommonParameters.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)MPSolverCommonParameters.BuildersetLpAlgorithm(MPSolverCommonParameters.LPAlgorithmValues value)Algorithm to solve linear programs.MPSolverCommonParameters.BuildersetPresolve(OptionalBoolean value)Gurobi and SCIP enable presolve by default.MPSolverCommonParameters.BuildersetPrimalTolerance(OptionalDouble value)Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability.MPSolverCommonParameters.BuildersetPrimalTolerance(OptionalDouble.Builder builderForValue)Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability.MPSolverCommonParameters.BuildersetRelativeMipGap(OptionalDouble value)The solver stops if the relative MIP gap reaches this value or below.MPSolverCommonParameters.BuildersetRelativeMipGap(OptionalDouble.Builder builderForValue)The solver stops if the relative MIP gap reaches this value or below.MPSolverCommonParameters.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)MPSolverCommonParameters.BuildersetScaling(OptionalBoolean value)Enable automatic scaling of matrix coefficients and objective.MPSolverCommonParameters.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
clear
public MPSolverCommonParameters.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
getDefaultInstanceForType
public MPSolverCommonParameters getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MPSolverCommonParameters build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MPSolverCommonParameters buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MPSolverCommonParameters.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
setField
public MPSolverCommonParameters.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
clearField
public MPSolverCommonParameters.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
clearOneof
public MPSolverCommonParameters.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
setRepeatedField
public MPSolverCommonParameters.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
addRepeatedField
public MPSolverCommonParameters.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
mergeFrom
public MPSolverCommonParameters.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MPSolverCommonParameters.Builder>
-
mergeFrom
public MPSolverCommonParameters.Builder mergeFrom(MPSolverCommonParameters other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
mergeFrom
public MPSolverCommonParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MPSolverCommonParameters.Builder>- Throws:
java.io.IOException
-
hasRelativeMipGap
public 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;- Specified by:
hasRelativeMipGapin interfaceMPSolverCommonParametersOrBuilder- Returns:
- Whether the relativeMipGap field is set.
-
getRelativeMipGap
public 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;- Specified by:
getRelativeMipGapin interfaceMPSolverCommonParametersOrBuilder- Returns:
- The relativeMipGap.
-
setRelativeMipGap
public MPSolverCommonParameters.Builder setRelativeMipGap(OptionalDouble value)
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;
-
setRelativeMipGap
public MPSolverCommonParameters.Builder setRelativeMipGap(OptionalDouble.Builder builderForValue)
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;
-
mergeRelativeMipGap
public MPSolverCommonParameters.Builder mergeRelativeMipGap(OptionalDouble value)
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;
-
clearRelativeMipGap
public MPSolverCommonParameters.Builder clearRelativeMipGap()
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;
-
getRelativeMipGapBuilder
public OptionalDouble.Builder getRelativeMipGapBuilder()
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
public 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;- Specified by:
getRelativeMipGapOrBuilderin interfaceMPSolverCommonParametersOrBuilder
-
hasPrimalTolerance
public 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;- Specified by:
hasPrimalTolerancein interfaceMPSolverCommonParametersOrBuilder- Returns:
- Whether the primalTolerance field is set.
-
getPrimalTolerance
public 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;- Specified by:
getPrimalTolerancein interfaceMPSolverCommonParametersOrBuilder- Returns:
- The primalTolerance.
-
setPrimalTolerance
public MPSolverCommonParameters.Builder setPrimalTolerance(OptionalDouble value)
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;
-
setPrimalTolerance
public MPSolverCommonParameters.Builder setPrimalTolerance(OptionalDouble.Builder builderForValue)
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;
-
mergePrimalTolerance
public MPSolverCommonParameters.Builder mergePrimalTolerance(OptionalDouble value)
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;
-
clearPrimalTolerance
public MPSolverCommonParameters.Builder clearPrimalTolerance()
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;
-
getPrimalToleranceBuilder
public OptionalDouble.Builder getPrimalToleranceBuilder()
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
public 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;- Specified by:
getPrimalToleranceOrBuilderin interfaceMPSolverCommonParametersOrBuilder
-
hasDualTolerance
public 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;- Specified by:
hasDualTolerancein interfaceMPSolverCommonParametersOrBuilder- Returns:
- Whether the dualTolerance field is set.
-
getDualTolerance
public 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;- Specified by:
getDualTolerancein interfaceMPSolverCommonParametersOrBuilder- Returns:
- The dualTolerance.
-
setDualTolerance
public MPSolverCommonParameters.Builder setDualTolerance(OptionalDouble value)
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;
-
setDualTolerance
public MPSolverCommonParameters.Builder setDualTolerance(OptionalDouble.Builder builderForValue)
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;
-
mergeDualTolerance
public MPSolverCommonParameters.Builder mergeDualTolerance(OptionalDouble value)
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;
-
clearDualTolerance
public MPSolverCommonParameters.Builder clearDualTolerance()
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;
-
getDualToleranceBuilder
public OptionalDouble.Builder getDualToleranceBuilder()
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
public 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;- Specified by:
getDualToleranceOrBuilderin interfaceMPSolverCommonParametersOrBuilder
-
hasLpAlgorithm
public 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];- Specified by:
hasLpAlgorithmin interfaceMPSolverCommonParametersOrBuilder- Returns:
- Whether the lpAlgorithm field is set.
-
getLpAlgorithm
public 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];- Specified by:
getLpAlgorithmin interfaceMPSolverCommonParametersOrBuilder- Returns:
- The lpAlgorithm.
-
setLpAlgorithm
public MPSolverCommonParameters.Builder setLpAlgorithm(MPSolverCommonParameters.LPAlgorithmValues value)
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];- Parameters:
value- The lpAlgorithm to set.- Returns:
- This builder for chaining.
-
clearLpAlgorithm
public MPSolverCommonParameters.Builder clearLpAlgorithm()
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];- Returns:
- This builder for chaining.
-
hasPresolve
public 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];- Specified by:
hasPresolvein interfaceMPSolverCommonParametersOrBuilder- Returns:
- Whether the presolve field is set.
-
getPresolve
public 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];- Specified by:
getPresolvein interfaceMPSolverCommonParametersOrBuilder- Returns:
- The presolve.
-
setPresolve
public MPSolverCommonParameters.Builder setPresolve(OptionalBoolean value)
Gurobi and SCIP enable presolve by default. Ask or-core-team@ for other solvers.
optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];- Parameters:
value- The presolve to set.- Returns:
- This builder for chaining.
-
clearPresolve
public MPSolverCommonParameters.Builder clearPresolve()
Gurobi and SCIP enable presolve by default. Ask or-core-team@ for other solvers.
optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];- Returns:
- This builder for chaining.
-
hasScaling
public 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];- Specified by:
hasScalingin interfaceMPSolverCommonParametersOrBuilder- Returns:
- Whether the scaling field is set.
-
getScaling
public 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];- Specified by:
getScalingin interfaceMPSolverCommonParametersOrBuilder- Returns:
- The scaling.
-
setScaling
public MPSolverCommonParameters.Builder setScaling(OptionalBoolean value)
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];- Parameters:
value- The scaling to set.- Returns:
- This builder for chaining.
-
clearScaling
public MPSolverCommonParameters.Builder clearScaling()
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];- Returns:
- This builder for chaining.
-
setUnknownFields
public final MPSolverCommonParameters.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
mergeUnknownFields
public final MPSolverCommonParameters.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MPSolverCommonParameters.Builder>
-
-