org.ojalgo.optimisation
Interface Constraint

All Known Implementing Classes:
Expression, ModelEntity, Variable

public interface Constraint

Constraint

Author:
apete

Method Summary
 BigDecimal getLowerLimit()
           
 BigDecimal getUpperLimit()
           
 boolean isConstraint()
          The Constraint has a lower or an upper limit (possibly both).
 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.
 void setLowerLimit(BigDecimal aValue)
           
 void setUpperLimit(BigDecimal aValue)
           
 boolean validate()
          The lower limit (if it exists) must not be greater than the upper limit (if it exists).
 

Method Detail

getLowerLimit

BigDecimal getLowerLimit()

getUpperLimit

BigDecimal getUpperLimit()

isConstraint

boolean isConstraint()
The Constraint has a lower or an upper limit (possibly both).


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.


setLowerLimit

void setLowerLimit(BigDecimal aValue)

setUpperLimit

void setUpperLimit(BigDecimal aValue)

validate

boolean validate()
The lower limit (if it exists) must not be greater than the upper limit (if it exists).

Returns:
True/false