-
-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
highs solver fails test in Ubuntu when showing log messages #684
Comments
I am experiencing the same error message trying to solve a model with HiGHS solver interface
I am on Windows, I am calling my solver simply as |
I added a comment in highspy repo. Feel free to leave a comment there or create a new issue there: ERGO-Code/HiGHS#1633 |
The current pypi version of HiGHS is still the rogue v1.5.3 in which setLogCallback was deleted from highspy. However, v1.7.1.dev1 is now available. This allows the new general callback mechanism to be used. It would be good if this beta release could be tested
See https://ergo-code.github.io/HiGHS/dev/interfaces/python/#Logging |
@jajhall I've intalled the lastest v1.7.1.dev1, but when I want to warmstart an LP with an initial basis it shows "AttributeError: 'Highs' object has no attribute 'setBasis'". Is setBasis() still not included in this highspy version? |
No, sorry, I discovered yesterday that I forgot to write a binding for setBasis. It's now an issue #1733 on GitHub, so it will certainly be in the next release of highspy |
Maybe @siwy knows about this since it was him who brought the changes with setLogCallback in 6a8e463.
The test that fails is
test_msg_arg
. It only fails in Ubuntu, not in mac:Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.5/x64/lib/python3.11/site-packages/pulp/tests/test_pulp.py", line 842, in test_msg_arg
pulpTestCheck(
File "/opt/hostedtoolcache/Python/3.11.5/x64/lib/python3.11/site-packages/pulp/tests/test_pulp.py", line 1556, in pulpTestCheck
status = prob.solve(solver, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.5/x64/lib/python3.11/site-packages/pulp/pulp.py", line 1920, in solve
status = solver.actualSolve(self, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.5/x64/lib/python3.11/site-packages/pulp/apis/highs_api.py", line 394, in actualSolve
self.createAndConfigureSolver(lp)
File "/opt/hostedtoolcache/Python/3.11.5/x64/lib/python3.11/site-packages/pulp/apis/highs_api.py", line 301, in createAndConfigureSolver
lp.solverModel.setLogCallback(*callbackTuple)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Highs' object has no attribute 'setLogCallback'
The text was updated successfully, but these errors were encountered: