Nonlinear Constraint.Constraint Function And Gradient Property
Gets or sets a delegate that evaluates the constraint value and its gradient.
Definition
Namespace: Extreme.Mathematics.Optimization
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A delegate that takes the input vector as its first argument, computes the gradient and places the result in the second vector argument, and returns the value of the constraint.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Func<Vector<double>, Vector<double>, double> ConstraintFunctionAndGradient { get; set; }
Property Value
Func<Vector<Double>, Vector<Double>, Double>A delegate that takes the input vector as its first argument, computes the gradient and places the result in the second vector argument, and returns the value of the constraint.