how to count in gams

Hello everybody,

how can I count the variables that takes value greater than zero in gams?
I could not find the related operator.

thank you


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 suppose the dimension of your decision variable is 2.

s=SUM((i,j)$(x.l(i,j)>0),1);

s is scalar

Date: Sat, 20 Nov 2010 23:25:05 +0200
Subject: how to count in gams
From: asliduman@gmail.com
To: gamsworld@googlegroups.com

Hello everybody,

how can I count the variables that takes value greater than zero in gams?
I could not find the related operator.

thank you

\

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.


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.