I'm new to GAMS and since last few days I'm trying code an equation but finding it difficult to do so. In the equation j is an element which belong to intersection of 2 multidimensional sets i.e. JP(j*p) and JS(j*s). Below I'm attaching an image of the equation.

Also, the code that I have developed for the above equation is as follows:

Code: Select all

`Constraints8(s,p).. sum(j,Y(s,j,p)) =e= 1; `