Skip to content

Commit

Permalink
az debug: check solver output
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao committed Dec 29, 2023
1 parent 36effbc commit 5933d5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions amplpy/tests/test_ampl.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,14 +395,17 @@ def test_solve_arguments(self):
)
ampl.param["n"] = 5
ampl.option["highs_options"] = ""
ampl.option["HIGHS_OPTIONS"] = ""
self.assertEqual(ampl.option["highs_options"], "")

output = ampl.solve(solver="highs", return_output=True)
print("output1:", output)
self.assertFalse("outlev" in output)

output = ampl.solve(
solver="highs", return_output=True, highs_options="outlev=1"
)
print("output2:", output)
self.assertTrue("outlev" in output)


Expand Down

0 comments on commit 5933d5f

Please sign in to comment.