To bound a variable to be integer I can use integer=true
, e.g. @variable(m, 0 <= p, integer=true, start=1)
, but how to do that when I use the @variables
macro?
I did try as such, but it is not recognised (also base_name
it doesn’t work):
@variables trmodel begin
x[p in plants, m in markets] >= 0
base_name="shipment quantities in cases" # doesn't work
integer=true # doesn't work
end