Least Squares Optimizer.Objective Function Property
Gets or sets a delegate that computes the function values of the problem.
Definition
Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
A function returning the residual vector at its first argument. The second argument is a reusable vector buffer and may be null.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
public Func<Vector<double>, Vector<double>?, Vector<double>> ObjectiveFunction { get; set; }Property Value
Func<Vector<Double>, Vector<Double>, Vector<Double>>A function returning the residual vector at its first argument. The second argument is a reusable vector buffer and may be null.
Remarks
The actual objective function is the sum of the squares of the elements of the vector returned by this delegate. The callback must return a non-null vector with a fixed length during each solve, and may update the supplied buffer or return another vector.
Exceptions
| Invalid | A calculation is in progress. |