public static enum MPModelRequest.SolverType extends java.lang.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
Enum Constant and Description |
---|
BOP_INTEGER_PROGRAMMING
BOP_INTEGER_PROGRAMMING = 12; |
CBC_MIXED_INTEGER_PROGRAMMING
CBC_MIXED_INTEGER_PROGRAMMING = 5; |
CLP_LINEAR_PROGRAMMING
CLP_LINEAR_PROGRAMMING = 0; |
CPLEX_LINEAR_PROGRAMMING
Commercial, needs a valid license.
|
CPLEX_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license.
|
GLOP_LINEAR_PROGRAMMING
Recommended default for LP models.
|
GLPK_LINEAR_PROGRAMMING
GLPK_LINEAR_PROGRAMMING = 1; |
GLPK_MIXED_INTEGER_PROGRAMMING
GLPK_MIXED_INTEGER_PROGRAMMING = 4; |
GUROBI_LINEAR_PROGRAMMING
Commercial, needs a valid license.
|
GUROBI_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license.
|
HIGHS_LINEAR_PROGRAMMING
HIGHS_LINEAR_PROGRAMMING = 15; |
HIGHS_MIXED_INTEGER_PROGRAMMING
HIGHS_MIXED_INTEGER_PROGRAMMING = 16; |
KNAPSACK_MIXED_INTEGER_PROGRAMMING
KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13; |
PDLP_LINEAR_PROGRAMMING
In-house linear programming solver based on the primal-dual hybrid
gradient method.
|
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).
|
SCIP_MIXED_INTEGER_PROGRAMMING
Recommended default for MIP models.
|
XPRESS_LINEAR_PROGRAMMING
Commercial, needs a valid license.
|
XPRESS_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license.
|
Modifier and Type | Field and Description |
---|---|
static int |
BOP_INTEGER_PROGRAMMING_VALUE
BOP_INTEGER_PROGRAMMING = 12; |
static int |
CBC_MIXED_INTEGER_PROGRAMMING_VALUE
CBC_MIXED_INTEGER_PROGRAMMING = 5; |
static int |
CLP_LINEAR_PROGRAMMING_VALUE
CLP_LINEAR_PROGRAMMING = 0; |
static int |
CPLEX_LINEAR_PROGRAMMING_VALUE
Commercial, needs a valid license.
|
static int |
CPLEX_MIXED_INTEGER_PROGRAMMING_VALUE
Commercial, needs a valid license.
|
static int |
GLOP_LINEAR_PROGRAMMING_VALUE
Recommended default for LP models.
|
static int |
GLPK_LINEAR_PROGRAMMING_VALUE
GLPK_LINEAR_PROGRAMMING = 1; |
static int |
GLPK_MIXED_INTEGER_PROGRAMMING_VALUE
GLPK_MIXED_INTEGER_PROGRAMMING = 4; |
static int |
GUROBI_LINEAR_PROGRAMMING_VALUE
Commercial, needs a valid license.
|
static int |
GUROBI_MIXED_INTEGER_PROGRAMMING_VALUE
Commercial, needs a valid license.
|
static int |
HIGHS_LINEAR_PROGRAMMING_VALUE
HIGHS_LINEAR_PROGRAMMING = 15; |
static int |
HIGHS_MIXED_INTEGER_PROGRAMMING_VALUE
HIGHS_MIXED_INTEGER_PROGRAMMING = 16; |
static int |
KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE
KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13; |
static int |
PDLP_LINEAR_PROGRAMMING_VALUE
In-house linear programming solver based on the primal-dual hybrid
gradient method.
|
static int |
SAT_INTEGER_PROGRAMMING_VALUE
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 int |
SCIP_MIXED_INTEGER_PROGRAMMING_VALUE
Recommended default for MIP models.
|
static int |
XPRESS_LINEAR_PROGRAMMING_VALUE
Commercial, needs a valid license.
|
static int |
XPRESS_MIXED_INTEGER_PROGRAMMING_VALUE
Commercial, needs a valid license.
|
Modifier and Type | Method and Description |
---|---|
static MPModelRequest.SolverType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<MPModelRequest.SolverType> |
internalGetValueMap() |
static MPModelRequest.SolverType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MPModelRequest.SolverType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MPModelRequest.SolverType |
valueOf(java.lang.String name)
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.
|
public static final MPModelRequest.SolverType CLP_LINEAR_PROGRAMMING
CLP_LINEAR_PROGRAMMING = 0;
public static final MPModelRequest.SolverType GLOP_LINEAR_PROGRAMMING
Recommended default for LP models.
GLOP_LINEAR_PROGRAMMING = 2;
public static final MPModelRequest.SolverType GLPK_LINEAR_PROGRAMMING
GLPK_LINEAR_PROGRAMMING = 1;
public static final MPModelRequest.SolverType GUROBI_LINEAR_PROGRAMMING
Commercial, needs a valid license.
GUROBI_LINEAR_PROGRAMMING = 6;
public static final MPModelRequest.SolverType XPRESS_LINEAR_PROGRAMMING
Commercial, needs a valid license. NOLINT
XPRESS_LINEAR_PROGRAMMING = 101;
public static final MPModelRequest.SolverType CPLEX_LINEAR_PROGRAMMING
Commercial, needs a valid license. NOLINT
CPLEX_LINEAR_PROGRAMMING = 10;
public static final MPModelRequest.SolverType HIGHS_LINEAR_PROGRAMMING
HIGHS_LINEAR_PROGRAMMING = 15;
public static final MPModelRequest.SolverType SCIP_MIXED_INTEGER_PROGRAMMING
Recommended default for MIP models.
SCIP_MIXED_INTEGER_PROGRAMMING = 3;
public static final MPModelRequest.SolverType GLPK_MIXED_INTEGER_PROGRAMMING
GLPK_MIXED_INTEGER_PROGRAMMING = 4;
public static final MPModelRequest.SolverType CBC_MIXED_INTEGER_PROGRAMMING
CBC_MIXED_INTEGER_PROGRAMMING = 5;
public static final MPModelRequest.SolverType GUROBI_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license.
GUROBI_MIXED_INTEGER_PROGRAMMING = 7;
public static final MPModelRequest.SolverType XPRESS_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license. NOLINT
XPRESS_MIXED_INTEGER_PROGRAMMING = 102;
public static final MPModelRequest.SolverType CPLEX_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license. NOLINT
CPLEX_MIXED_INTEGER_PROGRAMMING = 11;
public static final MPModelRequest.SolverType HIGHS_MIXED_INTEGER_PROGRAMMING
HIGHS_MIXED_INTEGER_PROGRAMMING = 16;
public static final MPModelRequest.SolverType BOP_INTEGER_PROGRAMMING
BOP_INTEGER_PROGRAMMING = 12;
public static final MPModelRequest.SolverType 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;
public static final MPModelRequest.SolverType 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;
public static final MPModelRequest.SolverType KNAPSACK_MIXED_INTEGER_PROGRAMMING
KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;
public static final int CLP_LINEAR_PROGRAMMING_VALUE
CLP_LINEAR_PROGRAMMING = 0;
public static final int GLOP_LINEAR_PROGRAMMING_VALUE
Recommended default for LP models.
GLOP_LINEAR_PROGRAMMING = 2;
public static final int GLPK_LINEAR_PROGRAMMING_VALUE
GLPK_LINEAR_PROGRAMMING = 1;
public static final int GUROBI_LINEAR_PROGRAMMING_VALUE
Commercial, needs a valid license.
GUROBI_LINEAR_PROGRAMMING = 6;
public static final int XPRESS_LINEAR_PROGRAMMING_VALUE
Commercial, needs a valid license. NOLINT
XPRESS_LINEAR_PROGRAMMING = 101;
public static final int CPLEX_LINEAR_PROGRAMMING_VALUE
Commercial, needs a valid license. NOLINT
CPLEX_LINEAR_PROGRAMMING = 10;
public static final int HIGHS_LINEAR_PROGRAMMING_VALUE
HIGHS_LINEAR_PROGRAMMING = 15;
public static final int SCIP_MIXED_INTEGER_PROGRAMMING_VALUE
Recommended default for MIP models.
SCIP_MIXED_INTEGER_PROGRAMMING = 3;
public static final int GLPK_MIXED_INTEGER_PROGRAMMING_VALUE
GLPK_MIXED_INTEGER_PROGRAMMING = 4;
public static final int CBC_MIXED_INTEGER_PROGRAMMING_VALUE
CBC_MIXED_INTEGER_PROGRAMMING = 5;
public static final int GUROBI_MIXED_INTEGER_PROGRAMMING_VALUE
Commercial, needs a valid license.
GUROBI_MIXED_INTEGER_PROGRAMMING = 7;
public static final int XPRESS_MIXED_INTEGER_PROGRAMMING_VALUE
Commercial, needs a valid license. NOLINT
XPRESS_MIXED_INTEGER_PROGRAMMING = 102;
public static final int CPLEX_MIXED_INTEGER_PROGRAMMING_VALUE
Commercial, needs a valid license. NOLINT
CPLEX_MIXED_INTEGER_PROGRAMMING = 11;
public static final int HIGHS_MIXED_INTEGER_PROGRAMMING_VALUE
HIGHS_MIXED_INTEGER_PROGRAMMING = 16;
public static final int BOP_INTEGER_PROGRAMMING_VALUE
BOP_INTEGER_PROGRAMMING = 12;
public static final int SAT_INTEGER_PROGRAMMING_VALUE
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;
public static final int PDLP_LINEAR_PROGRAMMING_VALUE
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;
public static final int KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE
KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;
public static MPModelRequest.SolverType[] values()
for (MPModelRequest.SolverType c : MPModelRequest.SolverType.values()) System.out.println(c);
public static MPModelRequest.SolverType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static MPModelRequest.SolverType valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static MPModelRequest.SolverType forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<MPModelRequest.SolverType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static MPModelRequest.SolverType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025. All rights reserved.