Adds a nonlinear constraint to the nonlinear program.
Namespace:
Extreme.Mathematics.Optimization
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public NonlinearConstraint AddNonlinearConstraint(
Func<Vector<double>, double> constraintFunction,
ConstraintType constraintType,
double rightHandSide
)
Public Function AddNonlinearConstraint (
constraintFunction As Func(Of Vector(Of Double), Double),
constraintType As ConstraintType,
rightHandSide As Double
) As NonlinearConstraint
public:
NonlinearConstraint^ AddNonlinearConstraint(
Func<Vector<double>^, double>^ constraintFunction,
ConstraintType constraintType,
double rightHandSide
)
member AddNonlinearConstraint :
constraintFunction : Func<Vector<float>, float> *
constraintType : ConstraintType *
rightHandSide : float -> NonlinearConstraint
Parameters
- constraintFunction
- Type: SystemFuncVectorDouble, Double
A delegate that represents the function that defines the constraint. - constraintType
- Type: Extreme.Mathematics.OptimizationConstraintType
A ConstraintType value that speicifies the type of constraint. - rightHandSide
- Type: SystemDouble
The right-hand side of the constraint.
Return Value
Type:
NonlinearConstraintThe new
NonlinearConstraint.
Reference