Class BoundedConstraint
java.lang.Object
org.hipparchus.optim.nonlinear.vector.constrained.BoundedConstraint
- All Implemented Interfaces:
MultivariateVectorFunction
,Constraint
,VectorDifferentiableFunction
,OptimizationData
- Direct Known Subclasses:
EqualityConstraint
,InequalityConstraint
,LinearBoundedConstraint
Constraint with lower and upper bounds: .
- Since:
- 3.1
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BoundedConstraint
(RealVector lower, RealVector upper) Simple constructor. -
Method Summary
-
Constructor Details
-
Method Details
-
dimY
public int dimY()Returns the dimensionality of the function eval.- Specified by:
dimY
in interfaceVectorDifferentiableFunction
- Returns:
- the expected dimension of the function's eval
-
getLowerBound
Get Lower Bound forvalue(x)
.- Specified by:
getLowerBound
in interfaceConstraint
- Returns:
- Lower Bound for
value(x)
-
getUpperBound
Get Upper Bound forvalue(x)
.- Specified by:
getUpperBound
in interfaceConstraint
- Returns:
- Upper Bound for
value(x)
-
overshoot
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.- Specified by:
overshoot
in interfaceConstraint
- Parameters:
y
- constraint value (y =value
(x))- Returns:
- L¹-norm of constraint overshoot
-