Package org.ojalgo.optimisation
Enum Optimisation.ConstraintType
- java.lang.Object
-
- java.lang.Enum<Optimisation.ConstraintType>
-
- org.ojalgo.optimisation.Optimisation.ConstraintType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Optimisation.ConstraintType>
,Optimisation
- Enclosing interface:
- Optimisation
public static enum Optimisation.ConstraintType extends java.lang.Enum<Optimisation.ConstraintType> 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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALITY
Corresponds to settingModelEntity.level(Comparable)
and/or checkingOptimisation.Constraint.isEqualityConstraint()
.LOWER
Corresponds to settingModelEntity.lower(Comparable)
and/or checkingOptimisation.Constraint.isLowerConstraint()
.NONE
UnconstrainedUPPER
Corresponds to settingModelEntity.upper(Comparable)
and/or checkingOptimisation.Constraint.isUpperConstraint()
.
-
Constructor Summary
Constructors Modifier Constructor Description private
ConstraintType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optimisation.ConstraintType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Optimisation.ConstraintType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALITY
public static final Optimisation.ConstraintType EQUALITY
Corresponds to settingModelEntity.level(Comparable)
and/or checkingOptimisation.Constraint.isEqualityConstraint()
.
-
LOWER
public static final Optimisation.ConstraintType LOWER
Corresponds to settingModelEntity.lower(Comparable)
and/or checkingOptimisation.Constraint.isLowerConstraint()
.
-
NONE
public static final Optimisation.ConstraintType NONE
Unconstrained
-
UPPER
public static final Optimisation.ConstraintType UPPER
Corresponds to settingModelEntity.upper(Comparable)
and/or checkingOptimisation.Constraint.isUpperConstraint()
.
-
-
Method Detail
-
values
public static Optimisation.ConstraintType[] 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.ConstraintType c : Optimisation.ConstraintType.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.ConstraintType 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
-
-