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 writing MPS file #2152

Closed
jajhall opened this issue Jan 27, 2025 · 0 comments · Fixed by #2156
Closed

Error writing MPS file #2152

jajhall opened this issue Jan 27, 2025 · 0 comments · Fixed by #2156
Assignees
Labels

Comments

@jajhall
Copy link
Member

jajhall commented Jan 27, 2025

The following model has an optimal objective of -10

import highspy as hp

m = hp.Highs()

x = m.addVariable(-hp.kHighsInf, 1, 1, type=hp.HighsVarType.kInteger, name="x")

m.addConstr(x >= -10, name="c1")

but when written to an MPS file the line

MI BOUND x

is omitted, so the variable is in {0, 1}, giving an optimal objective of 0

@jajhall jajhall self-assigned this Jan 27, 2025
@jajhall jajhall added the bug label Jan 27, 2025
@jajhall jajhall mentioned this issue Jan 28, 2025
@jajhall jajhall closed this as completed Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant