From 2022b9122f86cf67ec5b56d4827b06c26f5c071e Mon Sep 17 00:00:00 2001 From: Lindon Roberts Date: Mon, 16 Sep 2024 13:39:22 +1000 Subject: [PATCH] Allow more flexibility in approx Hessian --- pybobyqa/tests/test_solver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybobyqa/tests/test_solver.py b/pybobyqa/tests/test_solver.py index 7bfa844..3bbe1dc 100644 --- a/pybobyqa/tests/test_solver.py +++ b/pybobyqa/tests/test_solver.py @@ -123,7 +123,7 @@ def runTest(self): soln = pybobyqa.solve(objfun, x0) self.assertTrue(array_compare(soln.x, xmin, thresh=1e-2), "Wrong xmin") self.assertTrue(array_compare(soln.gradient, gradfun(soln.x), thresh=1e-2), "Wrong gradient") - self.assertTrue(array_compare(soln.hessian, hessfun, thresh=0.6), "Wrong Hessian") + self.assertTrue(array_compare(soln.hessian, hessfun, thresh=1.0), "Wrong Hessian") self.assertTrue(abs(soln.f - fmin) < 1e-4, "Wrong fmin")