Package com.google.ortools.linearsolver
Enum MPSolver.OptimizationProblemType
- java.lang.Object
-
- java.lang.Enum<MPSolver.OptimizationProblemType>
-
- com.google.ortools.linearsolver.MPSolver.OptimizationProblemType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MPSolver.OptimizationProblemType>
- Enclosing class:
- MPSolver
public static enum MPSolver.OptimizationProblemType extends java.lang.Enum<MPSolver.OptimizationProblemType>
The type of problems (LP or MIP) that will be solved and the underlying
solver (GLOP, GLPK, CLP, CBC or SCIP) that will solve them. This must
remain consistent with MPModelRequest::OptimizationProblemType
(take particular care of the open-source version).
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MPSolver.OptimizationProblemTypeswigToEnum(int swigValue)intswigValue()static MPSolver.OptimizationProblemTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MPSolver.OptimizationProblemType[]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 MPSolver.OptimizationProblemType CLP_LINEAR_PROGRAMMING
-
GLPK_LINEAR_PROGRAMMING
public static final MPSolver.OptimizationProblemType GLPK_LINEAR_PROGRAMMING
-
GLOP_LINEAR_PROGRAMMING
public static final MPSolver.OptimizationProblemType GLOP_LINEAR_PROGRAMMING
-
PDLP_LINEAR_PROGRAMMING
public static final MPSolver.OptimizationProblemType PDLP_LINEAR_PROGRAMMING
-
SCIP_MIXED_INTEGER_PROGRAMMING
public static final MPSolver.OptimizationProblemType SCIP_MIXED_INTEGER_PROGRAMMING
-
GLPK_MIXED_INTEGER_PROGRAMMING
public static final MPSolver.OptimizationProblemType GLPK_MIXED_INTEGER_PROGRAMMING
-
CBC_MIXED_INTEGER_PROGRAMMING
public static final MPSolver.OptimizationProblemType CBC_MIXED_INTEGER_PROGRAMMING
-
BOP_INTEGER_PROGRAMMING
public static final MPSolver.OptimizationProblemType BOP_INTEGER_PROGRAMMING
-
SAT_INTEGER_PROGRAMMING
public static final MPSolver.OptimizationProblemType SAT_INTEGER_PROGRAMMING
-
GUROBI_LINEAR_PROGRAMMING
public static final MPSolver.OptimizationProblemType GUROBI_LINEAR_PROGRAMMING
-
GUROBI_MIXED_INTEGER_PROGRAMMING
public static final MPSolver.OptimizationProblemType GUROBI_MIXED_INTEGER_PROGRAMMING
-
CPLEX_LINEAR_PROGRAMMING
public static final MPSolver.OptimizationProblemType CPLEX_LINEAR_PROGRAMMING
-
CPLEX_MIXED_INTEGER_PROGRAMMING
public static final MPSolver.OptimizationProblemType CPLEX_MIXED_INTEGER_PROGRAMMING
-
XPRESS_LINEAR_PROGRAMMING
public static final MPSolver.OptimizationProblemType XPRESS_LINEAR_PROGRAMMING
-
XPRESS_MIXED_INTEGER_PROGRAMMING
public static final MPSolver.OptimizationProblemType XPRESS_MIXED_INTEGER_PROGRAMMING
-
-
Method Detail
-
values
public static MPSolver.OptimizationProblemType[] 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 (MPSolver.OptimizationProblemType c : MPSolver.OptimizationProblemType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MPSolver.OptimizationProblemType 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
-
swigValue
public final int swigValue()
-
swigToEnum
public static MPSolver.OptimizationProblemType swigToEnum(int swigValue)
-
-