Hello everyone!

The following three parameters are loaded from a GDX file, partly defined over the universal set (*).

parameter1(r,i,*,t)
parameter2(*,

*,*,

*,*,

*,*)

parameter3(r,

*,i,*,t)

Now, I want to omit some dimensions by summing over (*).
However, this doesn’t work with GAMS.
Note that the universal sets (*) refer to different sets.

For parameter1(r,i,*,t) I found a solution by using the alias command (*,g) and then summing over the subset of g, i(g):

parameter11(r,i,t) = sum(i(g),parameter1(r,i,g,t));

Yet, this solution doesn’t work anymore for parameter2 or parameter3, as they are defined over more than one universal set (*).

Do you have a suggestion how to solve this problem?

Thanks in advance!