NonlinearProgram.HessianPattern Property

Gets or sets an optional matrix describing the Hessian structure for numerical curvature recovery.

Definition

Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
public Matrix<double>? HessianPattern { get; set; }

Property Value

Matrix<Double>
A square matrix template, or null. Values are ignored; stored sparse positions, including zeros, define structure.

Remarks

Use this template when Hessian is null and numerical sparse curvature is desired. A supplied analytical Hessian takes precedence; this template is then ignored. Indexes are snapshotted per solve. No dense Hessian is allocated for a sparse template.

Exceptions

InvalidOperationExceptionA calculation is in progress.

See Also