Hi all, I want to convert GAMS script to JuMP, and I have problems dealing with the sets in GAMS.
Here is the constraint in GAMS:
eDemIR(d)… demIReal(d) + sum(l,line2dem(l,d)*lineIReal(l)) =e= 0;
l, d are sets in GAMS. l = {1,2,3} and d = {1,2,3,4,5}
What is the proper way of converting this to JuMP?
This is how I tried to define every set in the constraint:
D = [1,2,3,4,5]
L = [1,2,3]
@constraint(model, eDemIR[d in D], demIReal[d in D] + sum(line2dem[l, d] * lineIReal[l] for l in L) == 0)
Thanks!