public void FitBFGS2() { double eps = 1e-5; double rEps = eps*10; int itMax = 50; double step=1; double[] vector = {6,45,22}; double[] expVector = {0,0,0}; Parabola f = new Parabola(); int dim = f.Dimension; BFGS alg = new BFGS(dim,vector,f,step,eps,itMax); alg.FindMinimum(); Assert.IsTrue(Diff(expVector,alg.Minimum,dim)<rEps); }