Nonlinear Program.Constraint Jacobian Function Property
Gets or sets the function that evaluates the constraint Jacobian.
Definition
Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
A function receiving the point and a reusable matrix, or null to use constraint gradients.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
public Func<Vector<double>, Matrix<double>?, Matrix<double>>? ConstraintJacobianFunction { get; set; }Property Value
Func<Vector<Double>, Matrix<Double>, Matrix<Double>>A function receiving the point and a reusable matrix, or null to use constraint gradients.
Remarks
The first call of each solve receives a null matrix. Return a nonnull matrix with one row
per original constraint and one column per variable. Update the supplied matrix or return a replacement;
overwrite entries that change, including entries becoming zero. Sparse SQP snapshots the initial stored
structure, including stored zeros. Include all positions that can become nonzero; later growth is rejected.
Dense SQP uses the same callback. Do not modify or retain the point. Callbacks must support trial points
outside bounds for sparse SQP. Set this property before solving.
Exceptions
| Invalid | A calculation is in progress. |