Adds a nonlinear constraint to the nonlinear program.
Namespace: Extreme.Mathematics.OptimizationAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public NonlinearConstraint AddNonlinearConstraint(
Func<Vector, double> constraintFunction,
double lowerBound,
double upperBound
)
Public Function AddNonlinearConstraint (
constraintFunction As Func(Of Vector, Double),
lowerBound As Double,
upperBound As Double
) As NonlinearConstraint
public:
NonlinearConstraint^ AddNonlinearConstraint(
Func<Vector^, double>^ constraintFunction,
double lowerBound,
double upperBound
)
member AddNonlinearConstraint :
constraintFunction : Func<Vector, float> *
lowerBound : float *
upperBound : float -> NonlinearConstraint
Parameters
- constraintFunction
- Type: SystemFuncVector, Double
A delegate that represents the function that defines the constraint. - lowerBound
- Type: SystemDouble
The lower bound of the constraint. - upperBound
- Type: SystemDouble
The upper bound of the constraint.
Return Value
Type:
NonlinearConstraintA
NonlinearConstraint object that represents the new constraint.
Numerical Libraries
Supported in: 5.x, 4.x
Reference