I have a tuple that contains pairs and I want to create a variable based on these pairs as follows
E = [(1, 2), (10, 16), (18, 24), (32, 33), (12, 10), (19, 18), (31, 30), (17, 36)]
for (i,j) in E
@variable(model,x[i,j], binary = true)
end
and I got this error message
An object of name x is already attached to this model. If this is intended, consider using the anonymous construction syntax, e.g., x = @variable(model, [1:N], …) where the name of the object does not appear inside the macro.