Set control error

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

Hi,

Can you also share what kind of error you are getting and your GAMSPy version? You can just run gamspy -v to get your gamspy version. It would also be nice if you can share the whole script for debugging.

Thank you for your interest.
This is the error I obtained when I ran my model.

I couldn’t reproduce the error. Can you provide a minimal example so that we can test it?