loop in constraints

26 views
Skip to first unread message

parul mathuria

unread,
May 14, 2013, 2:42:33 AM5/14/13
to gams...@googlegroups.com
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


Pedro Javier Ramírez Torrealba

unread,
May 14, 2013, 6:29:54 AM5/14/13
to gams...@googlegroups.com
Dear Parul,


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


Cheers,
Pedro

--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@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
Reply all
Reply to author
Forward
0 new messages