Change callHooks structure.

This commit is contained in:
rowanc1 committed 2013-12-04 15:31:11 -08:00
1 parent abfe1f033e
commit ccb4d4052d
4 files changed
+62 -60

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ class TestOptimizers(unittest.TestCase):
self.assertTrue(np.linalg.norm(xopt-x_true,2) < TOL, True)
def test_ProjGradient_quadraticBounded(self):
PG = inverse.ProjectedGradient()
PG = inverse.ProjectedGradient(debug=True)
PG.lower, PG.upper = -2, 2
xopt = PG.minimize(getQuadratic(self.A,self.b),np.array([0,0]))
x_true = np.array([2.,2.])