Skip to content

Commit

Permalink
Allow more flexibility in approx Hessian
Browse files Browse the repository at this point in the history
  • Loading branch information
lindonroberts committed Sep 16, 2024
1 parent 9ae8bf9 commit 2022b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybobyqa/tests/test_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down

0 comments on commit 2022b91

Please sign in to comment.