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

Error using HiGHS solver in Python-MIP #2106

Closed
jerak opened this issue Jan 7, 2025 · 4 comments
Closed

Error using HiGHS solver in Python-MIP #2106

jerak opened this issue Jan 7, 2025 · 4 comments
Assignees

Comments

@jerak
Copy link

jerak commented Jan 7, 2025

Description
Hello, first of all I am not sure if this is an issue related to Highspy, so please let me know if that is indeed not the case.

I am trying to use the HiGHS-solver as an alternative to the CBC-solver that I previously used. I am using the Python-MIP wrapper (see: Python-MIP.

I am using a Windows machine, using Python 3.9.

To achieve this, I have done the following:

  • Installed the latest Python-MIP version on master, i.e., the version that contains this fix: #377
  • Installed highspy 1.9.0
  • Installed cffi 1.17.0
AttributeError: function/symbol 'Highs_destroy' not found in library 
'~\venv\lib\site-packages\highspy\_core.cp39-win_amd64.pyd': error 0x7f

Operating System Information

  • Operating System, version: Windows 11
  • Python version: 3.9
  • Python-MIP version (we recommend you to test with the latest version): latest master-version

Question
Did anyone using the HiGHS-solver already encounter this error before? Does anyone have suggestions on the steps to take?

Update
I also tried using different a different version of highspy: 1.7.1.dev1, but no luck.

@galabovaa
Copy link
Contributor

@jerak, Thank you for getting in touch. Python-MIP is a separate package not supported by us and in the past months we have made some major updates. My initial guess would be that the Python-MIP highs wrapper may need to be modified to incorporate our latest changes.

Could you please try highspy 1.7.2 and let us know if that gives you an error?

@jerak
Copy link
Author

jerak commented Jan 8, 2025

Hi @galabovaa, thank you for your quick reply.

I installed highspy 1.7.2, but I unfortunately get the same error

@galabovaa
Copy link
Contributor

OK, thank you for checking! I think for this one it is worth opening an issue in the Python-MIP repo, if you haven't already.

@jajhall
Copy link
Member

jajhall commented Jan 8, 2025

I hope you get some response from Python-mip, but bear in mind what's said here

@jajhall jajhall closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2025
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

3 participants