GAMS sum and prod syntax_ what different?

Problems with syntax of GAMS
Post Reply
m_tanawat
User
User
Posts: 13
Joined: 4 months ago

GAMS sum and prod syntax_ what different?

Post by m_tanawat » 1 month ago

Hi all,

I read GAMS manual and find some unclear points.
I want to know what is the prod meaning in GAMS?
I know that it uses same sysntax as sum. But I am not sure what is it implying in economics.

Sum(j, x(j)) = x1+x2+x3+....xn
What prod(j, x(i, j)) is equivalent to?

Note that I see it uses with objective function.

obj.. UU =e= prod(i,x(i)**alpha(i));

Anyone, please help clarify me.
Thank you,

Fred
Posts: 54
Joined: 1 year ago

Re: GAMS sum and prod syntax_ what different?

Post by Fred » 1 month ago

Hi,

The product operation prod() represents the capital pi notation (see https://en.wikipedia.org/wiki/Multiplic ... i_notation).
This is similar to the sum operation sum() representing the captal sigma notation (https://en.wikipedia.org/wiki/Summation ... a_notation)

I hope this helps!

Fred

m_tanawat
User
User
Posts: 13
Joined: 4 months ago

Re: GAMS sum and prod syntax_ what different?

Post by m_tanawat » 1 month ago

Hi Fred,

Many thanks for your reply.
I totally understand it now.

Best regards,

Post Reply