Skip to content

Commit

Permalink
do not compare iterations directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ewu63 committed Dec 8, 2024
1 parent 3ba01ef commit 88d6e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_hs015.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def test_ipopt(self):
data_init = hist.read(0)
self.assertEqual(0, data_init["iter"])
data_last = hist.read(hist.read("last"))
self.assertEqual(11, data_last["iter"]) # took 12 function evaluations (see test_ipopt.out)
self.assertGreater(data_last["iter"], 0)

# Make sure there is no duplication in objective history
data = hist.getValues(names=["obj"])
Expand Down

0 comments on commit 88d6e78

Please sign in to comment.