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

Request: allow retention of original variable names when writing to lp file #157

Open
JorritHimself opened this issue Sep 5, 2023 · 0 comments

Comments

@JorritHimself
Copy link

In pyomo one could specifiy:
model.write(lp_file_name, io_options={'symbolic_solver_labels': True})
Which retains original variable names, rathe rthan having these rewritten to x0, x1, x2 etc.

We use a lot of scripts to parse both problem and solution files for all sorts of analyses/plots, and that'd require having the original variable names used when writing to lp file.
From the dicord channel I udnerstood the option has not (yet) been included in
Model.to_file(fn)
but it might be possible to include.
Would help a lot with my projects.
Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant