Defining equation with logical condition on index
Posted: Fri Apr 02, 2021 8:24 am
Hi everyone,
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:
Please help if you know how to code this thing. It would be really helpful. Thanks.
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;