julia-mpsge / MPSGE_MP.jl

MIT License
1 stars 0 forks source link

Better indexing in macros #19

Open mitchphillipson opened 4 months ago

mitchphillipson commented 4 months ago

Currently to create an indexed @production block you need to explicitly declare a for loop

for i in I
    @production(model, Y[i], nests, begin
         ....
     end)
end

It would be better to match JuMP syntax,

@production(model, Y[i=I], nests, begin
    ....
end)