Modeling the equation with lots of sums

hi, do anyone knows how to code this in games? a little example would be fine :slight_smile:
image.png
image.png

hello, this is an example. You must define the necessary variables and sets
image.png
in GAMS:
sum((i,j,q,p),X(i,j,q,p)*C1(i,j,q,p))

best