r-opt / rmpk

Mixed Integer Linear and Quadratic Programming in R
https://r-opt.github.io/rmpk/
Other
45 stars 4 forks source link

Naming variables in add_variable #40

Closed dirkschumacher closed 4 years ago

dirkschumacher commented 4 years ago

Currently, variables do not have names. I have the feeling it would be better to also supply a name when creating variables.

x <- model$add_variable("x")
y <- model$add_variable("y")