You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MPS export silently drops all indicator constraints #1186
io_api="mps" (and Model.to_file("*.mps")) writes no indicator constraints. linopy writes MPS through HiGHS, which has no indicator constraints, so they vanish without a warning and the solver returns a wrong "optimal" result.
Proposed fix: raise when indicator constraints would be written to MPS, pointing to io_api="lp" or "direct". Writing an MPS INDICATORS section is a possible follow-up.
Found while checking the empty-body indicator case from #1170 (fixed for lp/direct in #1183); the MPS path ignores all indicators, empty or not.
Activity