Пример #1
0
        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;
        }
Пример #2
0
		public void DoSimplexMinimization()
		{
			Calc.Optimization.NelderMead nm = new Altaxo.Calc.Optimization.NelderMead(new NelderMeadCostFunction(this));
			nm.Minimize(new Calc.LinearAlgebra.DoubleVector(this._cachedVaryingParameters));
		}
Пример #3
0
 public void DoSimplexMinimization()
 {
     Calc.Optimization.NelderMead nm = new Altaxo.Calc.Optimization.NelderMead(new NelderMeadCostFunction(this));
     nm.Minimize(new Calc.LinearAlgebra.DoubleVector(this._cachedVaryingParameters));
 }