coin-or / coin-or/python-mip

Issue Using Highs-Solver on Windows

Open
#402 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Linear Programming
Stars
600
Forks
108
PR merge metrics
No merged PRs in 30d

Description

**Description**
I am trying to use the HiGHS-solver as an alternative to the CBC-solver that I previously used. I am using a Windows machine, using Python 3.9.
To achieve this, I have done the following:
- Installed the latest version on `master`, i.e., the version that contains this fix: [#377](https://github.com/coin-or/python-mip/pull/377)
- Installed `highspy` `1.9.0`
- Installed `cffi` `1.17.0`

In `highs.py` file, the binary file (`_core.cp39-win_amd64.pyd`) can be found, and therefore `has_highs` is set to `True`. However, further down in the code, I get the following error:

```
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.