Package com.google.ortools.linearsolver
Enum MPSolverParameters.PresolveValues
- java.lang.Object
-
- java.lang.Enum<MPSolverParameters.PresolveValues>
-
- com.google.ortools.linearsolver.MPSolverParameters.PresolveValues
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MPSolverParameters.PresolveValues>
- Enclosing class:
- MPSolverParameters
public static enum MPSolverParameters.PresolveValues extends java.lang.Enum<MPSolverParameters.PresolveValues>
For each categorical parameter, enumeration of possible values.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PRESOLVE_OFFPresolve is off.PRESOLVE_ONPresolve is on.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MPSolverParameters.PresolveValuesswigToEnum(int swigValue)intswigValue()static MPSolverParameters.PresolveValuesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MPSolverParameters.PresolveValues[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRESOLVE_OFF
public static final MPSolverParameters.PresolveValues PRESOLVE_OFF
Presolve is off.
-
PRESOLVE_ON
public static final MPSolverParameters.PresolveValues PRESOLVE_ON
Presolve is on.
-
-
Method Detail
-
values
public static MPSolverParameters.PresolveValues[] 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 (MPSolverParameters.PresolveValues c : MPSolverParameters.PresolveValues.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MPSolverParameters.PresolveValues 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 MPSolverParameters.PresolveValues swigToEnum(int swigValue)
-
-