From 9ae8bf97b93584714c8cef9dc19eaefe5a476538 Mon Sep 17 00:00:00 2001 From: Lindon Roberts Date: Mon, 16 Sep 2024 13:38:12 +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 b15173e..7bfa844 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.5), "Wrong Hessian") + self.assertTrue(array_compare(soln.hessian, hessfun, thresh=0.6), "Wrong Hessian") self.assertTrue(abs(soln.f - fmin) < 1e-4, "Wrong fmin")