Closed kjartan-at-bravos closed 5 months ago
I noticed a problem with the proposed mapping. For large problems, it will generate any combination of letters, including keywords of the lp-format. I see no other way around this than to add a prefix "x" to each variable name.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.50%. Comparing base (
dbffbcb
) to head (5683135
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Added a new
VariableMapping
that maps variable IDs (UInt32) to a base 52 representation using letters a-zA-Z. This way, the representation is a valid variable name in the lp file. Possibly the idea can be taken even further, using more characters, since other characters are also allowed in the variable names. This would be straightforward to do, should we feel for it.