Skip to content

Conversation

odow
Copy link
Member

@odow odow commented Apr 17, 2023

Closes #2145

@odow odow added the Submodule: FileFormats About the FileFormats submodule label Apr 17, 2023
@odow odow mentioned this pull request Apr 17, 2023
@mlubin
Copy link
Member

mlubin commented Apr 17, 2023

Is this a fixed format vs free format issue? Do we support fixed format?

@odow odow mentioned this pull request Apr 17, 2023
5 tasks
@odow
Copy link
Member Author

odow commented Apr 17, 2023

So far we haven't made an explicit distinction between free and fixed format. The goal has been to be permissive in what we read, and restrictive in what we write. So everything gets written in fixed format where possible (except if there are long variable names).

The NAME row is pretty underspecified amongst solvers. They generally just say it's NAME followed by the name. I don't know why I originally enforced no spaces.

@mlubin
Copy link
Member

mlubin commented Apr 17, 2023

Sounds fine to allow spaces in names. More generally, IIRC there are cases where you really need to know that you're parsing a fixed format file. They occur only for very old benchmark files. QPSReader has an option to force fixed format.

@odow
Copy link
Member Author

odow commented Apr 17, 2023

More generally, IIRC there are cases where you really need to know that you're parsing a fixed format file. They occur only for very old benchmark files. QPSReader has an option to force fixed format.

I've been waiting for someone to complain or ask for this, but they haven't yet. It's just a matter of changing this line:

# TODO: split into hard fields based on column indices.
items = line_to_items(line)

@odow odow merged commit 1ac407e into master Apr 17, 2023
@odow odow deleted the od/fix-mps-name branch April 17, 2023 04:04
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.

Malformed NAME line
2 participants