Repository navigation
Replies: 1 comment
|
The best I can suggest is
which gives
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I would like to know how to five give an explicit name (instead of c_ekk) to variables indexed by parameters, such as
h = highspy.Highs()
A1 = h.addBinaries(5,64)
For instance, something like
A1 = h.addBinaries(5,64,name=f"pippo_{first}_{second}")
so that when writing the LP program to a file, I would see names like pippo_1_13, pip_0_61, and so on instead of many c_ekk1375 and so on.
I can do this for individual variables, but I wonder whether there is a faster way instead of implementing it myself in a separate routine using AddVariable
All reactions