Matix with equations for elements


down vote

I have this constraint in my code.

i=number of supplier
p=type of productions
t=number of period
constraint=@NLconstraint(con1[i=1:3,p=1:2,t=1:3],E(I)[i,p,t ]=
sum(Q[i,p,s] fors=1:t)-sum(E(D)[i,p,t]+E(W)[i,p,s] for s=1:t ))


they are expected value of inventory and waste of products. as well as w and I are decision variables. I would like to save all the expected value equations in one matrix[3,2,3]. Is it possible in Julia? Pleas help me. thanks all


Seems like you already have gotten an answer on SO: