Skip to content

Conversation

odow
Copy link
Member

@odow odow commented Apr 21, 2022

Closes #1617

@odow odow added the Submodule: FileFormats About the FileFormats submodule label Apr 21, 2022
@nickrobinson251
Copy link

Thank you for adding this! I was just about to post a question on Discourse asking how to write a JuMP Model to the .rew format (https://www.gurobi.com/documentation/9.5/refman/rew_format.html), and this looks to fulfil that need.

Is it perhaps worth mentioning .rew in the docstring here, or somewhere in the docs, in order to make this new generic_names functionality discoverable by people looking for that format?

@odow
Copy link
Member Author

odow commented Apr 21, 2022

Added. From JuMP, you'll be able to go write_to_file(model, "model.rew").

@odow odow merged commit 8e8006e into master Apr 22, 2022
@odow odow deleted the od/generic-names branch April 22, 2022 01:17
@odow
Copy link
Member Author

odow commented Apr 22, 2022

The names are going to be slightly different than Gurobi, because we don't include the C1(nnz) in the column, but it's anonymous, which is what the main benefit is.

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.

FileFormats.MPS: add option to use generic names

2 participants