Hello,
This is my first time using GAMSPy, and I’m facing a problem with the second constraint. If anyone could assist me in resolving it, I would really appreciate your help.
helpeq = Equation(m, name=“helpeq”,domain=[p,k,i,t])
helpeq[p, k, i, t] = Sum(a.where[(Ord(a)>=1) & (Ord(a)<=s[p])],y[p, a, k, i, t])==help[p,k,i,t]
compcapacity = Equation(m, name=“compcapacity”,domain=[p,k,i,t])
compcapacity[p,k,i,t] = wp[p] * help[p,k,i,t] <= capc*v[p,k,t]
Thank you

