summation with lower and upper bound

Hi,

I am confused how to make the following equation work in GAMS.

It would great if anyone could help.

\

To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/HeZaLMwYNeQJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

I tried the following code, but I got the error msg said the dimension does not match. Anyone could help? Thanks a lot

SUM(((m (ord(m) LE (l(j)-1))),j), X((i-(m-1)),j,'1'))
((i-(m-1)) GT 0)+U(i,‘1’)-O(i,‘1’) =E=
(De(i,‘1’)*(1-S)/ LOADLOW)+ (De(i,‘1’)*S/ LOADHIGH);




On Sunday, November 4, 2012 3:04:12 PM UTC-8, Selina wrote:

Hi,

I am confused how to make the following equation work in GAMS.

It would great if anyone could help.

\

To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/qjU2gOz5jxgJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Dear Selina,

Could you please rephrase your equation in such a way that they use the exact same named variables? So: the equation from GAMS in equation editor style or the equation from equation editor in GAMS style.
E.g. I see “loadlow” in GAMS style, but nowhere in the “equation editor” style. [I can see c_{l} is meant in this particular case, but I could not translate all variables/indices].

regards,
Henry Vermue

On Wednesday, November 7, 2012 11:36:33 PM UTC+1, Selina wrote:

I tried the following code, but I got the error msg said the dimension does not match. Anyone could help? Thanks a lot

SUM(((m (ord(m) LE (l(j)-1))),j), X((i-(m-1)),j,'1'))
((i-(m-1)) GT 0)+U(i,‘1’)-O(i,‘1’) =E=
(De(i,‘1’)*(1-S)/ LOADLOW)+ (De(i,‘1’)*S/ LOADHIGH);




On Sunday, November 4, 2012 3:04:12 PM UTC-8, Selina wrote:

Hi,

I am confused how to make the following equation work in GAMS.

It would great if anyone could help.

\

To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/nWkomu7mlX4J.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.