Hi , have some problems I have to code a function with gams, but I’m getting an error i,j,k are in the sets my equation p(i)*(k-j+1)*x(i,j,k) i have to write with sum but i’m getting error 148, how can fix that?

Your question is not clear. Are you using sum() operator? what is exactly the error message?

- Atharv

ccccccc