Package com.google.ortools.linearsolver
Enum MPModelRequest.SolverType
- java.lang.Object
-
- java.lang.Enum<MPModelRequest.SolverType>
-
- com.google.ortools.linearsolver.MPModelRequest.SolverType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<MPModelRequest.SolverType>
- Enclosing class:
- MPModelRequest
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 enumoperations_research.MPModelRequest.SolverType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOP_INTEGER_PROGRAMMINGBOP_INTEGER_PROGRAMMING = 12;CBC_MIXED_INTEGER_PROGRAMMINGCBC_MIXED_INTEGER_PROGRAMMING = 5;CLP_LINEAR_PROGRAMMINGCLP_LINEAR_PROGRAMMING = 0;CPLEX_LINEAR_PROGRAMMINGCommercial, needs a valid license.CPLEX_MIXED_INTEGER_PROGRAMMINGCommercial, needs a valid license.GLOP_LINEAR_PROGRAMMINGRecommended default for LP models.GLPK_LINEAR_PROGRAMMINGGLPK_LINEAR_PROGRAMMING = 1;GLPK_MIXED_INTEGER_PROGRAMMINGGLPK_MIXED_INTEGER_PROGRAMMING = 4;GUROBI_LINEAR_PROGRAMMINGCommercial, needs a valid license.GUROBI_MIXED_INTEGER_PROGRAMMINGCommercial, needs a valid license.HIGHS_LINEAR_PROGRAMMINGHIGHS_LINEAR_PROGRAMMING = 15;HIGHS_MIXED_INTEGER_PROGRAMMINGHIGHS_MIXED_INTEGER_PROGRAMMING = 16;KNAPSACK_MIXED_INTEGER_PROGRAMMINGKNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;PDLP_LINEAR_PROGRAMMINGIn-house linear programming solver based on the primal-dual hybrid gradient method.SAT_INTEGER_PROGRAMMINGWARNING: 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_PROGRAMMINGRecommended default for MIP models.XPRESS_LINEAR_PROGRAMMINGCommercial, needs a valid license.XPRESS_MIXED_INTEGER_PROGRAMMINGCommercial, needs a valid license.
-
Field Summary
Fields Modifier and Type Field Description static intBOP_INTEGER_PROGRAMMING_VALUEBOP_INTEGER_PROGRAMMING = 12;static intCBC_MIXED_INTEGER_PROGRAMMING_VALUECBC_MIXED_INTEGER_PROGRAMMING = 5;static intCLP_LINEAR_PROGRAMMING_VALUECLP_LINEAR_PROGRAMMING = 0;static intCPLEX_LINEAR_PROGRAMMING_VALUECommercial, needs a valid license.static intCPLEX_MIXED_INTEGER_PROGRAMMING_VALUECommercial, needs a valid license.static intGLOP_LINEAR_PROGRAMMING_VALUERecommended default for LP models.static intGLPK_LINEAR_PROGRAMMING_VALUEGLPK_LINEAR_PROGRAMMING = 1;static intGLPK_MIXED_INTEGER_PROGRAMMING_VALUEGLPK_MIXED_INTEGER_PROGRAMMING = 4;static intGUROBI_LINEAR_PROGRAMMING_VALUECommercial, needs a valid license.static intGUROBI_MIXED_INTEGER_PROGRAMMING_VALUECommercial, needs a valid license.static intHIGHS_LINEAR_PROGRAMMING_VALUEHIGHS_LINEAR_PROGRAMMING = 15;static intHIGHS_MIXED_INTEGER_PROGRAMMING_VALUEHIGHS_MIXED_INTEGER_PROGRAMMING = 16;static intKNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUEKNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;static intPDLP_LINEAR_PROGRAMMING_VALUEIn-house linear programming solver based on the primal-dual hybrid gradient method.static intSAT_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).static intSCIP_MIXED_INTEGER_PROGRAMMING_VALUERecommended default for MIP models.static intXPRESS_LINEAR_PROGRAMMING_VALUECommercial, needs a valid license.static intXPRESS_MIXED_INTEGER_PROGRAMMING_VALUECommercial, needs a valid license.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MPModelRequest.SolverTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<MPModelRequest.SolverType>internalGetValueMap()static MPModelRequest.SolverTypevalueOf(int value)Deprecated.static MPModelRequest.SolverTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static MPModelRequest.SolverTypevalueOf(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.
-
-
-
Enum Constant Detail
-
CLP_LINEAR_PROGRAMMING
public static final MPModelRequest.SolverType CLP_LINEAR_PROGRAMMING
CLP_LINEAR_PROGRAMMING = 0;
-
GLOP_LINEAR_PROGRAMMING
public static final MPModelRequest.SolverType GLOP_LINEAR_PROGRAMMING
Recommended default for LP models.
GLOP_LINEAR_PROGRAMMING = 2;
-
GLPK_LINEAR_PROGRAMMING
public static final MPModelRequest.SolverType GLPK_LINEAR_PROGRAMMING
GLPK_LINEAR_PROGRAMMING = 1;
-
GUROBI_LINEAR_PROGRAMMING
public static final MPModelRequest.SolverType GUROBI_LINEAR_PROGRAMMING
Commercial, needs a valid license.
GUROBI_LINEAR_PROGRAMMING = 6;
-
XPRESS_LINEAR_PROGRAMMING
public static final MPModelRequest.SolverType XPRESS_LINEAR_PROGRAMMING
Commercial, needs a valid license. NOLINT
XPRESS_LINEAR_PROGRAMMING = 101;
-
CPLEX_LINEAR_PROGRAMMING
public static final MPModelRequest.SolverType CPLEX_LINEAR_PROGRAMMING
Commercial, needs a valid license. NOLINT
CPLEX_LINEAR_PROGRAMMING = 10;
-
HIGHS_LINEAR_PROGRAMMING
public static final MPModelRequest.SolverType HIGHS_LINEAR_PROGRAMMING
HIGHS_LINEAR_PROGRAMMING = 15;
-
SCIP_MIXED_INTEGER_PROGRAMMING
public static final MPModelRequest.SolverType SCIP_MIXED_INTEGER_PROGRAMMING
Recommended default for MIP models.
SCIP_MIXED_INTEGER_PROGRAMMING = 3;
-
GLPK_MIXED_INTEGER_PROGRAMMING
public static final MPModelRequest.SolverType GLPK_MIXED_INTEGER_PROGRAMMING
GLPK_MIXED_INTEGER_PROGRAMMING = 4;
-
CBC_MIXED_INTEGER_PROGRAMMING
public static final MPModelRequest.SolverType CBC_MIXED_INTEGER_PROGRAMMING
CBC_MIXED_INTEGER_PROGRAMMING = 5;
-
GUROBI_MIXED_INTEGER_PROGRAMMING
public static final MPModelRequest.SolverType GUROBI_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license.
GUROBI_MIXED_INTEGER_PROGRAMMING = 7;
-
XPRESS_MIXED_INTEGER_PROGRAMMING
public static final MPModelRequest.SolverType XPRESS_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license. NOLINT
XPRESS_MIXED_INTEGER_PROGRAMMING = 102;
-
CPLEX_MIXED_INTEGER_PROGRAMMING
public static final MPModelRequest.SolverType CPLEX_MIXED_INTEGER_PROGRAMMING
Commercial, needs a valid license. NOLINT
CPLEX_MIXED_INTEGER_PROGRAMMING = 11;
-
HIGHS_MIXED_INTEGER_PROGRAMMING
public static final MPModelRequest.SolverType HIGHS_MIXED_INTEGER_PROGRAMMING
HIGHS_MIXED_INTEGER_PROGRAMMING = 16;
-
BOP_INTEGER_PROGRAMMING
public static final MPModelRequest.SolverType BOP_INTEGER_PROGRAMMING
BOP_INTEGER_PROGRAMMING = 12;
-
SAT_INTEGER_PROGRAMMING
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;
-
PDLP_LINEAR_PROGRAMMING
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;
-
KNAPSACK_MIXED_INTEGER_PROGRAMMING
public static final MPModelRequest.SolverType KNAPSACK_MIXED_INTEGER_PROGRAMMING
KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;
-
-
Field Detail
-
CLP_LINEAR_PROGRAMMING_VALUE
public static final int CLP_LINEAR_PROGRAMMING_VALUE
CLP_LINEAR_PROGRAMMING = 0;- See Also:
- Constant Field Values
-
GLOP_LINEAR_PROGRAMMING_VALUE
public static final int GLOP_LINEAR_PROGRAMMING_VALUE
Recommended default for LP models.
GLOP_LINEAR_PROGRAMMING = 2;- See Also:
- Constant Field Values
-
GLPK_LINEAR_PROGRAMMING_VALUE
public static final int GLPK_LINEAR_PROGRAMMING_VALUE
GLPK_LINEAR_PROGRAMMING = 1;- See Also:
- Constant Field Values
-
GUROBI_LINEAR_PROGRAMMING_VALUE
public static final int GUROBI_LINEAR_PROGRAMMING_VALUE
Commercial, needs a valid license.
GUROBI_LINEAR_PROGRAMMING = 6;- See Also:
- Constant Field Values
-
XPRESS_LINEAR_PROGRAMMING_VALUE
public static final int XPRESS_LINEAR_PROGRAMMING_VALUE
Commercial, needs a valid license. NOLINT
XPRESS_LINEAR_PROGRAMMING = 101;- See Also:
- Constant Field Values
-
CPLEX_LINEAR_PROGRAMMING_VALUE
public static final int CPLEX_LINEAR_PROGRAMMING_VALUE
Commercial, needs a valid license. NOLINT
CPLEX_LINEAR_PROGRAMMING = 10;- See Also:
- Constant Field Values
-
HIGHS_LINEAR_PROGRAMMING_VALUE
public static final int HIGHS_LINEAR_PROGRAMMING_VALUE
HIGHS_LINEAR_PROGRAMMING = 15;- See Also:
- Constant Field Values
-
SCIP_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int SCIP_MIXED_INTEGER_PROGRAMMING_VALUE
Recommended default for MIP models.
SCIP_MIXED_INTEGER_PROGRAMMING = 3;- See Also:
- Constant Field Values
-
GLPK_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int GLPK_MIXED_INTEGER_PROGRAMMING_VALUE
GLPK_MIXED_INTEGER_PROGRAMMING = 4;- See Also:
- Constant Field Values
-
CBC_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int CBC_MIXED_INTEGER_PROGRAMMING_VALUE
CBC_MIXED_INTEGER_PROGRAMMING = 5;- See Also:
- Constant Field Values
-
GUROBI_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int GUROBI_MIXED_INTEGER_PROGRAMMING_VALUE
Commercial, needs a valid license.
GUROBI_MIXED_INTEGER_PROGRAMMING = 7;- See Also:
- Constant Field Values
-
XPRESS_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int XPRESS_MIXED_INTEGER_PROGRAMMING_VALUE
Commercial, needs a valid license. NOLINT
XPRESS_MIXED_INTEGER_PROGRAMMING = 102;- See Also:
- Constant Field Values
-
CPLEX_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int CPLEX_MIXED_INTEGER_PROGRAMMING_VALUE
Commercial, needs a valid license. NOLINT
CPLEX_MIXED_INTEGER_PROGRAMMING = 11;- See Also:
- Constant Field Values
-
HIGHS_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int HIGHS_MIXED_INTEGER_PROGRAMMING_VALUE
HIGHS_MIXED_INTEGER_PROGRAMMING = 16;- See Also:
- Constant Field Values
-
BOP_INTEGER_PROGRAMMING_VALUE
public static final int BOP_INTEGER_PROGRAMMING_VALUE
BOP_INTEGER_PROGRAMMING = 12;- See Also:
- Constant Field Values
-
SAT_INTEGER_PROGRAMMING_VALUE
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;- See Also:
- Constant Field Values
-
PDLP_LINEAR_PROGRAMMING_VALUE
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;- See Also:
- Constant Field Values
-
KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE
KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static MPModelRequest.SolverType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MPModelRequest.SolverType c : MPModelRequest.SolverType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MPModelRequest.SolverType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static MPModelRequest.SolverType valueOf(int value)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static MPModelRequest.SolverType forNumber(int value)
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final 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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-