scipy: Highs solver did not provide a solution nor did it report a failure
My issue is about scipy.optimize.linprog(c, A_ub=A_ub, b_ub=b_ub, A_eq=A_eq, b_eq=b_eq, method='highs')
telling me to submit a bug report.
Reproducing code example:
See minimal reproducer in a comment https://github.com/scipy/scipy/issues/13610#issuecomment-785620302
Error message:
/home/chn/env/lib/python3.8/site-packages/scipy/optimize/_linprog_highs.py:316: OptimizeWarning: model_status is not optimal, using scaled_model_status instead.
res = _highs_wrapper(c, A.indptr, A.indices, A.data, lhs, rhs,
The solver did not provide a solution nor did it report a failure. Please submit a bug report.
Scipy/Numpy/Python version information:
1.6.1 1.18.3 sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (16 by maintainers)
Commits related to this issue
- FIX: check HiGHS model_status for solution validity; ref #13610 — committed to mckib2/scipy by mckib2 3 years ago
- FIX: check HiGHS' model_status for solution validity; ref gh-13610 — committed to mckib2/scipy by mckib2 3 years ago
- FIX: optimize.linprog: dual simplex model feasibility fix (#13626) * MAINT: remove unused HiGHS _mpswriter extension and filter MIP sources * FIX: check HiGHS' model_status for solution validity; ... — committed to scipy/scipy by mckib2 3 years ago
The best I can do tonight is this simpler reproducer – I’ll be able to dig in more tomorrow. The trouble seems to be from the size of
A_ub
. It breaks for me whenA_ub
is(130, 73)
or larger (whenn > 64
in the reproducer below).Note: I can get higher with
highs-ipm
, the trouble is withhighs-ds
I believe. Again – I’ll have more time to look at this tomorrow. In the meantime try switching tohighs-ipm
and see what happens