--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To post to this group, send email to gams...@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
Try something like
Set i / 1*20/;
Alias (i,j);
Binary variable x(i,j);
Set k(i)
..solve model...
k(i)$sum(j,x.l(i,j)) = yes;
k(j)$sum(i,x.l(i,j)) = yes;
The first assignment finds the elements where there is something in the
column of x(I,j) and the second finds the elements where there is something
in the row.
Good luck
Arne
-------------------------------------------
Arne Stolbjerg Drud
ARKI Consulting & Development A/S
Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark
Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: ad...@arki.dk
-----Oprindelig meddelelse-----
Fra: gams...@googlegroups.com [mailto:gams...@googlegroups.com] På vegne
af /\ l_ !
Sendt: 7. oktober 2011 11:19
Til: gamsworld
Emne: Subsets In Gams
--