Enum MPModelRequest.SolverType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<MPModelRequest.SolverType>
,java.lang.constant.Constable
- Enclosing class:
MPModelRequest
public static enum MPModelRequest.SolverType
extends Enum<MPModelRequest.SolverType>
implements com.google.protobuf.ProtocolMessageEnum
The solver type, which will select a specific implementation, and will also impact the interpretation of the model (i.e. are we solving the problem as a mixed integer program or are we relaxing it as a continuous linear program?). This must remain consistent with MPSolver::OptimizationProblemType.Protobuf enum
operations_research.MPModelRequest.SolverType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBOP_INTEGER_PROGRAMMING = 12;
CBC_MIXED_INTEGER_PROGRAMMING = 5;
CLP_LINEAR_PROGRAMMING = 0;
Commercial, needs a valid license.Commercial, needs a valid license.Recommended default for LP models.GLPK_LINEAR_PROGRAMMING = 1;
GLPK_MIXED_INTEGER_PROGRAMMING = 4;
Commercial, needs a valid license.Commercial, needs a valid license.HIGHS_LINEAR_PROGRAMMING = 15;
HIGHS_MIXED_INTEGER_PROGRAMMING = 16;
KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;
In-house linear programming solver based on the primal-dual hybrid gradient method.WARNING: This solver will currently interpret all variables as integer, so any solution you get will be valid, but the optimal might be far away for the real one (when you authorise non-integer value for continuous variables).Recommended default for MIP models.Commercial, needs a valid license.Commercial, needs a valid license. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
BOP_INTEGER_PROGRAMMING = 12;
static final int
CBC_MIXED_INTEGER_PROGRAMMING = 5;
static final int
CLP_LINEAR_PROGRAMMING = 0;
static final int
Commercial, needs a valid license.static final int
Commercial, needs a valid license.static final int
Recommended default for LP models.static final int
GLPK_LINEAR_PROGRAMMING = 1;
static final int
GLPK_MIXED_INTEGER_PROGRAMMING = 4;
static final int
Commercial, needs a valid license.static final int
Commercial, needs a valid license.static final int
HIGHS_LINEAR_PROGRAMMING = 15;
static final int
HIGHS_MIXED_INTEGER_PROGRAMMING = 16;
static final int
KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;
static final int
In-house linear programming solver based on the primal-dual hybrid gradient method.static final int
WARNING: This solver will currently interpret all variables as integer, so any solution you get will be valid, but the optimal might be far away for the real one (when you authorise non-integer value for continuous variables).static final int
Recommended default for MIP models.static final int
Commercial, needs a valid license.static final int
Commercial, needs a valid license. -
Method Summary
Modifier and TypeMethodDescriptionstatic MPModelRequest.SolverType
forNumber
(int value) static com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap
<MPModelRequest.SolverType> static MPModelRequest.SolverType
valueOf
(int value) Deprecated.static MPModelRequest.SolverType
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static MPModelRequest.SolverType
Returns the enum constant of this type with the specified name.static MPModelRequest.SolverType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CLP_LINEAR_PROGRAMMING
CLP_LINEAR_PROGRAMMING = 0;
-
GLOP_LINEAR_PROGRAMMING
Recommended default for LP models.
GLOP_LINEAR_PROGRAMMING = 2;
-
GLPK_LINEAR_PROGRAMMING
GLPK_LINEAR_PROGRAMMING = 1;
-
GUROBI_LINEAR_PROGRAMMING
Commercial, needs a valid license.
GUROBI_LINEAR_PROGRAMMING = 6;
-
XPRESS_LINEAR_PROGRAMMING
Commercial, needs a valid license. NOLINT
XPRESS_LINEAR_PROGRAMMING = 101;
-
CPLEX_LINEAR_PROGRAMMING
Commercial, needs a valid license. NOLINT
CPLEX_LINEAR_PROGRAMMING = 10;
-
HIGHS_LINEAR_PROGRAMMING
HIGHS_LINEAR_PROGRAMMING = 15;
-
SCIP_MIXED_INTEGER_PROGRAMMING
Recommended default for MIP models.
SCIP_MIXED_INTEGER_PROGRAMMING = 3;
-
GLPK_MIXED_INTEGER_PROGRAMMING
GLPK_MIXED_INTEGER_PROGRAMMING = 4;
-
CBC_MIXED_INTEGER_PROGRAMMING
CBC_MIXED_INTEGER_PROGRAMMING = 5;
-
GUROBI_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license.
GUROBI_MIXED_INTEGER_PROGRAMMING = 7;
-
XPRESS_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license. NOLINT
XPRESS_MIXED_INTEGER_PROGRAMMING = 102;
-
CPLEX_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license. NOLINT
CPLEX_MIXED_INTEGER_PROGRAMMING = 11;
-
HIGHS_MIXED_INTEGER_PROGRAMMING
HIGHS_MIXED_INTEGER_PROGRAMMING = 16;
-
BOP_INTEGER_PROGRAMMING
BOP_INTEGER_PROGRAMMING = 12;
-
SAT_INTEGER_PROGRAMMING
WARNING: This solver will currently interpret all variables as integer, so any solution you get will be valid, but the optimal might be far away for the real one (when you authorise non-integer value for continuous variables).
SAT_INTEGER_PROGRAMMING = 14;
-
PDLP_LINEAR_PROGRAMMING
In-house linear programming solver based on the primal-dual hybrid gradient method. Sometimes faster than Glop for medium-size problems and scales to much larger problems than Glop.
PDLP_LINEAR_PROGRAMMING = 8;
-
KNAPSACK_MIXED_INTEGER_PROGRAMMING
KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;
-
-
Field Details
-
CLP_LINEAR_PROGRAMMING_VALUE
public static final int CLP_LINEAR_PROGRAMMING_VALUECLP_LINEAR_PROGRAMMING = 0;
- See Also:
-
GLOP_LINEAR_PROGRAMMING_VALUE
public static final int GLOP_LINEAR_PROGRAMMING_VALUERecommended default for LP models.
GLOP_LINEAR_PROGRAMMING = 2;
- See Also:
-
GLPK_LINEAR_PROGRAMMING_VALUE
public static final int GLPK_LINEAR_PROGRAMMING_VALUEGLPK_LINEAR_PROGRAMMING = 1;
- See Also:
-
GUROBI_LINEAR_PROGRAMMING_VALUE
public static final int GUROBI_LINEAR_PROGRAMMING_VALUECommercial, needs a valid license.
GUROBI_LINEAR_PROGRAMMING = 6;
- See Also:
-
XPRESS_LINEAR_PROGRAMMING_VALUE
public static final int XPRESS_LINEAR_PROGRAMMING_VALUECommercial, needs a valid license. NOLINT
XPRESS_LINEAR_PROGRAMMING = 101;
- See Also:
-
CPLEX_LINEAR_PROGRAMMING_VALUE
public static final int CPLEX_LINEAR_PROGRAMMING_VALUECommercial, needs a valid license. NOLINT
CPLEX_LINEAR_PROGRAMMING = 10;
- See Also:
-
HIGHS_LINEAR_PROGRAMMING_VALUE
public static final int HIGHS_LINEAR_PROGRAMMING_VALUEHIGHS_LINEAR_PROGRAMMING = 15;
- See Also:
-
SCIP_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int SCIP_MIXED_INTEGER_PROGRAMMING_VALUERecommended default for MIP models.
SCIP_MIXED_INTEGER_PROGRAMMING = 3;
- See Also:
-
GLPK_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int GLPK_MIXED_INTEGER_PROGRAMMING_VALUEGLPK_MIXED_INTEGER_PROGRAMMING = 4;
- See Also:
-
CBC_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int CBC_MIXED_INTEGER_PROGRAMMING_VALUECBC_MIXED_INTEGER_PROGRAMMING = 5;
- See Also:
-
GUROBI_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int GUROBI_MIXED_INTEGER_PROGRAMMING_VALUECommercial, needs a valid license.
GUROBI_MIXED_INTEGER_PROGRAMMING = 7;
- See Also:
-
XPRESS_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int XPRESS_MIXED_INTEGER_PROGRAMMING_VALUECommercial, needs a valid license. NOLINT
XPRESS_MIXED_INTEGER_PROGRAMMING = 102;
- See Also:
-
CPLEX_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int CPLEX_MIXED_INTEGER_PROGRAMMING_VALUECommercial, needs a valid license. NOLINT
CPLEX_MIXED_INTEGER_PROGRAMMING = 11;
- See Also:
-
HIGHS_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int HIGHS_MIXED_INTEGER_PROGRAMMING_VALUEHIGHS_MIXED_INTEGER_PROGRAMMING = 16;
- See Also:
-
BOP_INTEGER_PROGRAMMING_VALUE
public static final int BOP_INTEGER_PROGRAMMING_VALUEBOP_INTEGER_PROGRAMMING = 12;
- See Also:
-
SAT_INTEGER_PROGRAMMING_VALUE
public static final int SAT_INTEGER_PROGRAMMING_VALUEWARNING: This solver will currently interpret all variables as integer, so any solution you get will be valid, but the optimal might be far away for the real one (when you authorise non-integer value for continuous variables).
SAT_INTEGER_PROGRAMMING = 14;
- See Also:
-
PDLP_LINEAR_PROGRAMMING_VALUE
public static final int PDLP_LINEAR_PROGRAMMING_VALUEIn-house linear programming solver based on the primal-dual hybrid gradient method. Sometimes faster than Glop for medium-size problems and scales to much larger problems than Glop.
PDLP_LINEAR_PROGRAMMING = 8;
- See Also:
-
KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUEKNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<MPModelRequest.SolverType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static MPModelRequest.SolverType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-