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>,java.lang.constant.Constable
- 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 enum
operations_research.MPModelRequest.SolverType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>> -
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.KNAPSACK_MIXED_INTEGER_PROGRAMMINGKNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;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 intKNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUEKNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;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
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.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
GLOP_LINEAR_PROGRAMMING
Recommended default for LP models.
GLOP_LINEAR_PROGRAMMING = 2; -
CLP_LINEAR_PROGRAMMING
CLP_LINEAR_PROGRAMMING = 0; -
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; -
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; -
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; -
KNAPSACK_MIXED_INTEGER_PROGRAMMING
KNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;
-
-
Field Details
-
GLOP_LINEAR_PROGRAMMING_VALUE
public static final int GLOP_LINEAR_PROGRAMMING_VALUERecommended default for LP models.
GLOP_LINEAR_PROGRAMMING = 2;- See Also:
- Constant Field Values
-
CLP_LINEAR_PROGRAMMING_VALUE
public static final int CLP_LINEAR_PROGRAMMING_VALUECLP_LINEAR_PROGRAMMING = 0;- See Also:
- Constant Field Values
-
GLPK_LINEAR_PROGRAMMING_VALUE
public static final int GLPK_LINEAR_PROGRAMMING_VALUEGLPK_LINEAR_PROGRAMMING = 1;- See Also:
- Constant Field Values
-
GUROBI_LINEAR_PROGRAMMING_VALUE
public static final int GUROBI_LINEAR_PROGRAMMING_VALUECommercial, needs a valid license.
GUROBI_LINEAR_PROGRAMMING = 6;- See Also:
- Constant Field Values
-
XPRESS_LINEAR_PROGRAMMING_VALUE
public static final int XPRESS_LINEAR_PROGRAMMING_VALUECommercial, 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_VALUECommercial, needs a valid license. NOLINT
CPLEX_LINEAR_PROGRAMMING = 10;- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
GLPK_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int GLPK_MIXED_INTEGER_PROGRAMMING_VALUEGLPK_MIXED_INTEGER_PROGRAMMING = 4;- See Also:
- Constant Field Values
-
CBC_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int CBC_MIXED_INTEGER_PROGRAMMING_VALUECBC_MIXED_INTEGER_PROGRAMMING = 5;- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
BOP_INTEGER_PROGRAMMING_VALUE
public static final int BOP_INTEGER_PROGRAMMING_VALUEBOP_INTEGER_PROGRAMMING = 12;- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUE
public static final int KNAPSACK_MIXED_INTEGER_PROGRAMMING_VALUEKNAPSACK_MIXED_INTEGER_PROGRAMMING = 13;- See Also:
- Constant Field Values
-
-
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:
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.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
- 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
-