def test_GN_Rosenbrock(self):
        GN = Optimization.GaussNewton()
        xopt = GN.minimize(Rosenbrock,np.array([0,0]))
        x_true = np.array([1.,1.])
        print 'xopt: ', xopt
        print 'x_true: ', x_true
        self.assertTrue(np.linalg.norm(xopt-x_true,2) < TOL, True)
dataset/ETHPy150Open simpeg/simpeg/tests/base/test_optimizers.py/TestOptimizers.test_GN_Rosenbrock/original