Package org.ojalgo.optimisation
Enum Optimisation.Sense
- java.lang.Object
-
- java.lang.Enum<Optimisation.Sense>
-
- org.ojalgo.optimisation.Optimisation.Sense
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Optimisation.Sense>
,Optimisation
- Enclosing interface:
- Optimisation
public static enum Optimisation.Sense extends java.lang.Enum<Optimisation.Sense> implements Optimisation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.optimisation.Optimisation
Optimisation.Constraint, Optimisation.ConstraintType, Optimisation.Integration<M extends Optimisation.Model,S extends Optimisation.Solver>, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.ProblemStructure, Optimisation.Result, Optimisation.Sense, Optimisation.Solver, Optimisation.State
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Sense()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optimisation.Result
solve(ExpressionsBasedModel model)
static Optimisation.Sense
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Optimisation.Sense[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAX
public static final Optimisation.Sense MAX
-
MIN
public static final Optimisation.Sense MIN
-
-
Method Detail
-
values
public static Optimisation.Sense[] 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 (Optimisation.Sense c : Optimisation.Sense.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Optimisation.Sense 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
-
solve
public Optimisation.Result solve(ExpressionsBasedModel model)
-
-