public class LinearBoundedConstraint extends BoundedConstraint implements org.hipparchus.optim.OptimizationData
Constructor and Description |
---|
LinearBoundedConstraint(double[][] A,
double[] LB,
double[] UB)
Construct a set of linear inequality constraints from Ub>=Ax>=Lb.
|
LinearBoundedConstraint(org.hipparchus.linear.RealMatrix A,
org.hipparchus.linear.RealVector LB,
org.hipparchus.linear.RealVector UB)
Construct a set of linear inequality constraints from Ax < B
|
Modifier and Type | Method and Description |
---|---|
int |
dim()
Returns the dimensionality of the function domain.
|
int |
dimY()
Returns the dimensionality of the function eval.
|
org.hipparchus.linear.RealMatrix |
jacobian(org.hipparchus.linear.RealVector x)
Returns the gradient of this function at (x)
|
double[] |
value(double[] x) |
org.hipparchus.linear.RealVector |
value(org.hipparchus.linear.RealVector x)
Returns the value of this function at (x)
|
getLowerBound, getUpperBound
gradient
public LinearBoundedConstraint(org.hipparchus.linear.RealMatrix A, org.hipparchus.linear.RealVector LB, org.hipparchus.linear.RealVector UB)
A
- A matrix linear coefficient vectorsb
- A vector of constantspublic LinearBoundedConstraint(double[][] A, double[] LB, double[] UB)
A
- A matrix linear coefficient vectorsLB
- A vector of constantsUB
- A vector of constantspublic double[] value(double[] x) throws java.lang.IllegalArgumentException
value
in interface org.hipparchus.analysis.MultivariateVectorFunction
value
in class VectorDifferentiableFunction
java.lang.IllegalArgumentException
public int dim()
VectorDifferentiableFunction
dim
in class VectorDifferentiableFunction
public org.hipparchus.linear.RealVector value(org.hipparchus.linear.RealVector x)
VectorDifferentiableFunction
value
in class VectorDifferentiableFunction
x
- a point to evaluate this function at.public org.hipparchus.linear.RealMatrix jacobian(org.hipparchus.linear.RealVector x)
VectorDifferentiableFunction
jacobian
in class VectorDifferentiableFunction
x
- a point to evaluate this gradient atpublic int dimY()
VectorDifferentiableFunction
dimY
in class VectorDifferentiableFunction