I would like to build a two index JuMP variable that can be accessed like x[i][j]
rather than x[i,j]
is there a way to acomplish this with the @variable
macro?
x = model[:x] = [@variable(model, [j in SetJ]) for i in SetI]
2 Likes