Class LinearInequalityConstraint
- java.lang.Object
-
- org.hipparchus.optim.nonlinear.vector.constrained.BoundedConstraint
-
- org.hipparchus.optim.nonlinear.vector.constrained.InequalityConstraint
-
- org.hipparchus.optim.nonlinear.vector.constrained.LinearInequalityConstraint
-
- All Implemented Interfaces:
MultivariateVectorFunction,Constraint,VectorDifferentiableFunction,OptimizationData
public class LinearInequalityConstraint extends InequalityConstraint implements OptimizationData
Set of linear inequality constraints expressed as \( A x \gt B\).- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description LinearInequalityConstraint(double[][] a, double[] b)Construct a set of linear inequality constraints from Ax > BLinearInequalityConstraint(RealMatrix a, RealVector b)Construct a set of linear inequality constraints from \( A x \gt B\).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdim()Returns the dimensionality of the function domain.RealMatrixjacobian(RealVector x)Returns the gradient of this function at (x)RealVectorvalue(RealVector x)Returns the value of this function at (x)-
Methods inherited from class org.hipparchus.optim.nonlinear.vector.constrained.BoundedConstraint
dimY, getLowerBound, getUpperBound, overshoot
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hipparchus.optim.nonlinear.vector.constrained.VectorDifferentiableFunction
gradient, value
-
-
-
-
Constructor Detail
-
LinearInequalityConstraint
public LinearInequalityConstraint(RealMatrix a, RealVector b)
Construct a set of linear inequality constraints from \( A x \gt B\).- Parameters:
a- A matrix linear coefficient vectorsb- A vector of constants
-
LinearInequalityConstraint
public LinearInequalityConstraint(double[][] a, double[] b)Construct a set of linear inequality constraints from Ax > B- Parameters:
a- A matrix linear coefficient vectorsb- A vector of constants
-
-
Method Detail
-
dim
public int dim()
Description copied from interface:VectorDifferentiableFunctionReturns 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
public RealVector value(RealVector x)
Description copied from interface:VectorDifferentiableFunctionReturns 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
public RealMatrix jacobian(RealVector x)
Description copied from interface:VectorDifferentiableFunctionReturns 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)
-
-