You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Having recently started with Linopy, I wanted to check the obtained lp file - also using model.to_file method - against some reference one obtained with pyomo... and faced the same issue.
Anything new since your post in Sept. 2023 @FabianHofmann ?
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.
The text was updated successfully, but these errors were encountered: