Interface Constraint
-
- All Superinterfaces:
MultivariateVectorFunction
,OptimizationData
,VectorDifferentiableFunction
- All Known Implementing Classes:
BoundedConstraint
,EqualityConstraint
,InequalityConstraint
,LinearBoundedConstraint
,LinearEqualityConstraint
,LinearInequalityConstraint
public interface Constraint extends VectorDifferentiableFunction, OptimizationData
Generic constraint.- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RealVector
getLowerBound()
Get Lower Bound forvalue(x)
.RealVector
getUpperBound()
Get Upper Bound forvalue(x)
.double
overshoot(RealVector y)
Check how much a point overshoots the constraint.
-
-
-
Method Detail
-
getLowerBound
RealVector getLowerBound()
Get Lower Bound forvalue(x)
.- Returns:
- Lower Bound for
value(x)
-
getUpperBound
RealVector getUpperBound()
Get Upper Bound forvalue(x)
.- Returns:
- Upper Bound for
value(x)
-
overshoot
double overshoot(RealVector y)
Check how much a point overshoots the constraint.The overshoots is zero if the point fulfills the constraint, and positive if the
value
of the constraint is on the wrong side oflower
orupper
boundaries.- Parameters:
y
- constraint value (y =value
(x))- Returns:
- L¹-norm of constraint overshoot
-
-