Skip to content
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

SetLogCallback removed in Python #1379

Closed
siwy opened this issue Aug 8, 2023 · 3 comments
Closed

SetLogCallback removed in Python #1379

siwy opened this issue Aug 8, 2023 · 3 comments

Comments

@siwy
Copy link

siwy commented Aug 8, 2023

Hi -

The HiGHS adapter for pulp no longer works when we enable logging, for HiGHs version > 1.5.0.dev (issue: coin-or/pulp#678)

The error is caused by the removal of the setLogCallback function from the highs python api (In this PR: #1183).

Is there a plan to restore this function? If not, is there a blessed way of enabling logging from the HiGHS python API?

@jajhall
Copy link
Member

jajhall commented Aug 8, 2023

Sorry about this. I removed setLogCallback from highspy when I started to think about a more general form of callback. I'll reinstate it. Now that new versions of HiGHS are automatically pushed to PyPI, it shouldn't take long to propagate

@siwy
Copy link
Author

siwy commented Sep 25, 2023

@jajhall - Sorry to ping on this, do you know roughly when we can expect setLogCallback to be reinstated?

@jajhall
Copy link
Member

jajhall commented Sep 25, 2023

Sorry, I'd forgotten about this. It will happen in the next PyPI release - hopefully soon - and we've got a set of generic callbacks for logging and interrupting HiGHS to be added, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants