Closed dirkschumacher closed 2 years ago
See #365
library(ompr) MIPModel() |> add_variable(x[i], i = 1:5) |> set_bounds(x[i] <= i, i = 1:5) |> # upper bound set_bounds(x[i] >= 0, i = 1:5) |> # lower bound set_bounds(x[5] == 45) |> # lower and upper bound variable_bounds() #> $lower #> [1] 0 0 0 0 45 #> #> $upper #> [1] 1 2 3 4 45
See #365