jyp / glpk-hs

Haskell bindings to glpk
Other
13 stars 18 forks source link

Variables with names equal to keywords are not handled correctly. #8

Open ghost opened 6 years ago

ghost commented 6 years ago

A variable with constructor name End will be translated to End when writeLP is called. However, End is a keyword in the CPLEX format. This will lead to an incorrect programme. Either an error should be thrown, or the variable name should be translated to something else when it is a keyword.