public void DoSimplexMinimization(System.Threading.CancellationToken cancellationToken, Action <double> newMinimalCostValueFound) { var nm = new Altaxo.Calc.Optimization.NelderMead(new NelderMeadCostFunction(this)); nm.Minimize(new LinearAlgebra.DoubleVector(_cachedVaryingParameters), cancellationToken, newMinimalCostValueFound); for (int i = 0; i < _cachedVaryingParameters.Length; ++i) { _cachedVaryingParameters[i] = nm.SolutionVector[i]; } _resultingSumChiSquare = nm.SolutionValue; }
public void DoSimplexMinimization() { Calc.Optimization.NelderMead nm = new Altaxo.Calc.Optimization.NelderMead(new NelderMeadCostFunction(this)); nm.Minimize(new Calc.LinearAlgebra.DoubleVector(this._cachedVaryingParameters)); }