Nonlinear Constraint.Constraint Function And Gradient Property
Gets or sets a delegate that evaluates the constraint value and its gradient.
Definition
Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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.