I am trying to add limitations to the linear optimization problem in Julia using JuMP. I use the sum{} function, but I am having problems with some restrictions. Does anyone know how to write βfor everyoneβ in JuMP (upside down A)? Here is the code that I still have:
using JuMP m = Model() c= [3 5 2 ; 4 3 5 ; 4 5 3 ; 5 4 3 ; 3 5 4] @variable(m, x[i=1:5,j=1:3] >= 0) @objective(m,Min,sum{c[i,j]*x[i,j],i=1:5,j=1:3}) for i=1:5 @constraint(m, sum{x[i,j],i,j=1:3} <= 480) end
What I'm trying to get is: 
I am trying to use the for loop as a replacement for "I am from 1 to 5 for everyone," however I keep getting errors. Is there any other way to do this?
source share