- All Superinterfaces:
- Constraint
- All Known Implementing Classes:
- BoundConstraint,- NegativityConstraint,- PositivityConstraint,- Unconstrained
Base interface for scalar parameter constraints.
- Author:
- Alessandro Gnoatto
- 
Method SummaryModifier and TypeMethodDescriptiondoubleapply(double parameterToTest)Forces the parameter to respect a certain condition.doubleReturns the lower bound, possibly given by Double.NEGATIVE_INFINITY.doubleReturns the upper bound, possibly given by Double.POSITIVE_INFINITY.
- 
Method Details- 
applydouble apply(double parameterToTest)Forces the parameter to respect a certain condition.- Parameters:
- parameterToTest- The value to which the constraint should be applied.
- Returns:
- the parameter after application of the constraint.
 
- 
getLowerBounddouble getLowerBound()Returns the lower bound, possibly given by Double.NEGATIVE_INFINITY.- Returns:
- the lower bound.
 
- 
getUpperBounddouble getUpperBound()Returns the upper bound, possibly given by Double.POSITIVE_INFINITY.- Returns:
- the upper bound.
 
 
-