Class LinearBoundedConstraint
java.lang.Object
org.hipparchus.optim.nonlinear.vector.constrained.BoundedConstraint
org.hipparchus.optim.nonlinear.vector.constrained.LinearBoundedConstraint
- All Implemented Interfaces:
MultivariateVectorFunction,Constraint,VectorDifferentiableFunction,OptimizationData
A set of linear inequality constraints expressed as ub>Ax>lb.
- Since:
- 3.1
-
Constructor Summary
ConstructorsConstructorDescriptionLinearBoundedConstraint(double[][] a, double[] lower, double[] upper) Construct a set of linear inequality constraints from Ax < BLinearBoundedConstraint(RealMatrix a, RealVector lower, RealVector upper) Construct a set of linear inequality constraints from Ax < B -
Method Summary
Modifier and TypeMethodDescriptionintdim()Returns the dimensionality of the function domain.Returns the gradient of this function at (x)double[]value(double[] x) Returns the value of this function at (x)value(RealVector x) Returns the value of this function at (x)Methods inherited from class org.hipparchus.optim.nonlinear.vector.constrained.BoundedConstraint
dimY, getLowerBound, getUpperBound, overshootMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hipparchus.optim.nonlinear.vector.constrained.VectorDifferentiableFunction
gradient
-
Constructor Details
-
LinearBoundedConstraint
Construct a set of linear inequality constraints from Ax < B- Parameters:
a- A matrix linear coefficient vectorslower- lower boundupper- upper bound
-
LinearBoundedConstraint
public LinearBoundedConstraint(double[][] a, double[] lower, double[] upper) Construct a set of linear inequality constraints from Ax < B- Parameters:
a- A matrix linear coefficient vectorslower- lower boundupper- upper bound
-
-
Method Details
-
value
public double[] value(double[] x) Returns the value of this function at (x)- Specified by:
valuein interfaceMultivariateVectorFunction- Specified by:
valuein interfaceVectorDifferentiableFunction- Parameters:
x- a point to evaluate this function at.- Returns:
- the value of this function at (x)
-
dim
public int dim()Returns the dimensionality of the function domain. If dim() returns (n) then this function expects an n-vector as its input.- Specified by:
dimin interfaceVectorDifferentiableFunction- Returns:
- the expected dimension of the function's domain
-
value
Returns the value of this function at (x)- Specified by:
valuein interfaceVectorDifferentiableFunction- Parameters:
x- a point to evaluate this function at.- Returns:
- the value of this function at (x)
-
jacobian
Returns the gradient of this function at (x)- Specified by:
jacobianin interfaceVectorDifferentiableFunction- Parameters:
x- a point to evaluate this gradient at- Returns:
- the gradient of this function at (x)
-