Click or drag to resize

LevenbergMarquardtMinimizerNonAllocatingWrappedParametersFindMinimum(IObjectiveModelNonAllocating, Double, NullableDouble, NullableDouble, Double, Boolean, CancellationToken, ActionInt32, Double, IReadOnlyListDouble) Method

Non-linear least squares fitting by the Levenberg-Marquardt algorithm.

Namespace: Altaxo.Calc.Optimization
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public NonlinearMinimizationResult FindMinimum(
	IObjectiveModelNonAllocating objective,
	double[] initialGuess,
	double?[]? lowerBound,
	double?[]? upperBound,
	double[]? scales,
	bool[]? isFixed,
	CancellationToken cancellationToken,
	Action<int, double, IReadOnlyList<double>>? reportChi2Progress
)

Parameters

objective  IObjectiveModelNonAllocating
The objective function, including model, observations, and parameter bounds.
initialGuess  Double
The initial guess values.
lowerBound  NullableDouble
The lower bounds of the parameters. Must have the same length as initialGuess. Provide if not needed.
upperBound  NullableDouble
The upper bounds of the parameters. Must have the same length as initialGuess. Provide if not needed.
scales  Double
The scales of the parameters. Must have the same length as initialGuess. Provide if not needed.
isFixed  Boolean
Array indicating which parameters are fixed. Must have the same length as initialGuess. Provide if not needed.
cancellationToken  CancellationToken
Token to cancel the evaluation.
reportChi2Progress  ActionInt32, Double, IReadOnlyListDouble
Callback used to report the number of iterations, Chi² value, and current parameter set achieved so far. Can be .

Return Value

NonlinearMinimizationResult
The result of the Levenberg-Marquardt minimization.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if objective or initialGuess is .
See Also