Skip to content

[FileFormats.MPS] write OBJSENSE on new line, and loosen parsing rules #2019

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

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

odow
Copy link
Member

@odow odow commented Oct 17, 2022

x-ref: #2016 (comment)

All solvers are maddeningly different in how they want OBJSENSE:

Gurobi want it on the same line https://www.gurobi.com/documentation/9.5/refman/mps_format.html

image

Mosek want it in field 2 (col 5) on a new line https://docs.mosek.com/10.0/pythonfusion/mps-format.html

image

CPLEX wants it in column 3 (not a field!) on a new line https://www.ibm.com/docs/en/icos/22.1.0?topic=extensions-objective-sense-name-offset-in-mps-files

image

Mosek is the only sane one here, and from testing, it seems like the rest can at least read it, so I've changed to that.x

@odow odow added the Submodule: FileFormats About the FileFormats submodule label Oct 17, 2022
@odow odow merged commit 71defad into master Oct 18, 2022
@odow odow deleted the od/mps-objsense branch October 18, 2022 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Submodule: FileFormats About the FileFormats submodule
Development

Successfully merging this pull request may close these issues.

1 participant