MultiFunctionMathFindLocalMinimum Method (FuncIReadOnlyListDouble, Double, IReadOnlyListDouble, MultiExtremumSettings) |
Namespace: Meta.Numerics.Analysis
public static MultiExtremum FindLocalMinimum( Func<IReadOnlyList<double>, double> function, IReadOnlyList<double> start, MultiExtremumSettings settings )
Exception | Condition |
---|---|
ArgumentNullException | function, start, or settings is . |
NonconvergenceException | The number of function evaluations required exceeded the evaluation budget. |
The Hessian (matrix of second derivatives) returned with the minimum is an approximation that is constructed in the course of search. It should be considered a crude approximation, and may not even be that if the minimum is highly non-quadratic.
If you have a constrained minimization problem, require a high-precision solution, and do not have a good initial guess, consider first feeding your constrained problem into FindGlobalMinimum(FuncIReadOnlyListDouble, Double, IReadOnlyListInterval, MultiExtremumSettings), which supports constraints but gives relatively lower precision solutions, then feeding the result of that method into this method, which finds relatively precise solutions but does not support constraints.