Closed matbesancon closed 3 years ago
after trying things for a bit, calling SCIP methods directly seems a bit brittle for now (I'm never sure in which state SCIP is), we'll go for yet anoth dict
edit from @fserra : SCIPfindVar
could do the job we want here
tackled in #205
I believe this was implemented at some point, letting SCIP store the names. But it lead to errors, so it was removed again. Unfortunately, I can't remember the details. So, bon courage!
Keeping a dictionary isn't too hard. Check the var_to_name
stuff here:
https://github.com/jump-dev/MathOptInterface.jl/blob/master/src/Utilities/model.jl
This was done with #205
it does not yet follow the MOI convention that getting a variable name when several have the same should throw though
Many MOI tests require getting variable and constraint indices by name.
The two solutions are:
Opinions? @odow @rschwarz @etadewal