LevenbergMarquardtMinimizerNonAllocatingWrappedParameters.FindMinimum(IObjectiveModelNonAllocating, IReadOnlyList<Double>, IReadOnlyList<Nullable<Double>>, IReadOnlyList<Nullable<Double>>, IReadOnlyList<Double>, IReadOnlyList<Boolean>, CancellationToken, Action<Int32, Double, IReadOnlyList<Double>>) Method |
Non-linear least square fitting by the Levenberg-Marquardt algorithm.
Namespace: Altaxo.Calc.OptimizationAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntaxpublic NonlinearMinimizationResult FindMinimum(
IObjectiveModelNonAllocating objective,
IReadOnlyList<double> initialGuess,
IReadOnlyList<double?>? lowerBound,
IReadOnlyList<double?>? upperBound,
IReadOnlyList<double>? scales,
IReadOnlyList<bool>? isFixed,
CancellationToken cancellationToken,
Action<int, double, IReadOnlyList<double>>? reportChi2Progress
)
Parameters
- objective IObjectiveModelNonAllocating
- The objective function, including model, observations, and parameter bounds.
- initialGuess IReadOnlyList<Double>
- The initial guess values.
- lowerBound IReadOnlyList<Nullable<Double>>
- The lower bounds of the parameters. The array must have the same length as the parameter array. Provide null if not needed.
- upperBound IReadOnlyList<Nullable<Double>>
- The upper bounds of the parameters. The array must have the same length as the parameter array. Provide null if not needed.
- scales IReadOnlyList<Double>
- The scales of the parameters. The array must have the same length as the parameter array. Provide null if not needed.
- isFixed IReadOnlyList<Boolean>
- Array of booleans, which provide which parameters are fixed. Must have the same length as the parameter array. Provide null if not needed.
- cancellationToken CancellationToken
- Token to cancel the evaluation
- reportChi2Progress Action<Int32, Double, IReadOnlyList<Double>>
- Event handler that can be used to report the NumberOfIterations and ChiĀ² value achived so far. Can be null
Return Value
NonlinearMinimizationResultThe result of the Levenberg-Marquardt minimization
See Also