loop in constraints

Dear All,
I want to write
A(k)=Mat(i,j,k)(1/KK(k)**2)(w(i,k)**2) sum w.r.t. i and j for all i and all j in my eq. which is a constraint of my problem. how can I write this in GAMS , as for loop can not be used in constraints.


thanx

Parul Mathuria

\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Dear Parul,


A(k) =E= SUM((i,j), Mat(i,j,k)(1/KK(k)**2)(w(i,k)**2));


Cheers,
Pedro

On Tue, May 14, 2013 at 7:42 AM, parul mathuria wrote:

Dear All,
I want to write
A(k)=Mat(i,j,k)(1/KK(k)**2)(w(i,k)**2) sum w.r.t. i and j for all i and all j in my eq. which is a constraint of my problem. how can I write this in GAMS , as for loop can not be used in constraints.


thanx

Parul Mathuria

\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.





\

PEDRO JAVIER RAMÍREZ TORREALBA
Ingeniero Civil Eléctrico PUC
MSc en Ingeniería Eléctrica PUC
Londres, REINO UNIDO

Celular: +44-(0)75-8069-3119


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\