Change name of rows and columns in highspy #1032
FabianHofmann
started this conversation in
Ideas
Replies: 2 comments
-
Changing the names in a model is not currently possible, even with the C++ class. The only way to define names in a model that's not read from a file, is to create an instance of the In your case, as you're defining the LP by adding variables and constraints, once you've done this the route would be lp = h.getLp() populate its names, and then call h.passModel(lp) before h.writeModel('example.mps') I'll turn this into a discussion, as it's not a bug |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @jajhall that makes sense. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am wondering whether there is the possibility to change the names of the rows and columns through the highspy interface.
Minimal Example
The program then warns:
There is the possibility to change the names in the LP model like
but that does not change anything when writing to file afterwards. Could you help me out here?
Beta Was this translation helpful? Give feedback.
All reactions