Package org.ojalgo.optimisation
Interface Optimisation.Constraint
-
- All Superinterfaces:
Optimisation
- All Known Implementing Classes:
Expression
,ModelEntity
,Variable
- Enclosing interface:
- Optimisation
public static interface Optimisation.Constraint extends Optimisation
Constraint
-
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.math.BigDecimal
getLowerLimit()
The lower limit/bound - may return null.java.math.BigDecimal
getUpperLimit()
The upper limit/bound - may return null.boolean
isConstraint()
The Constraint has a lower or an upper limit actually set (possibly both) - it actually is constrained.boolean
isEqualityConstraint()
The Constraint has both a lower limit and an upper limit, and they are equal.boolean
isLowerConstraint()
The Constraint has a lower limit, and the upper limit (if it exists) is different.boolean
isUpperConstraint()
The Constraint has an upper limit, and the lower limit (if it exists) is different.
-
-
-
Method Detail
-
getLowerLimit
java.math.BigDecimal getLowerLimit()
The lower limit/bound - may return null.
-
getUpperLimit
java.math.BigDecimal getUpperLimit()
The upper limit/bound - may return null.
-
isConstraint
boolean isConstraint()
The Constraint has a lower or an upper limit actually set (possibly both) - it actually is constrained.
-
isEqualityConstraint
boolean isEqualityConstraint()
The Constraint has both a lower limit and an upper limit, and they are equal.
-
isLowerConstraint
boolean isLowerConstraint()
The Constraint has a lower limit, and the upper limit (if it exists) is different.
-
isUpperConstraint
boolean isUpperConstraint()
The Constraint has an upper limit, and the lower limit (if it exists) is different.
-
-