SOS2 with multiple set variables

Hi, first of all thanks for your time.

I’d like to implement a SOS2 with a variable X(i,j,k,l) just over the set k. This means:

for each i, each j, and each l the contraint SOS2 of X(k) must be satisfied. How should I define this variable?

I would really appreciate your help.

Guillem

\

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.
For more options, visit https://groups.google.com/groups/opt_out.

Guillem:



The description in http://www.gams.com/mccarl/mccarlhtml/specially_ordered_set_variables_of_type_2_(sos2).htm explains that the SOS2 set must be defined by the last index. So in your case you will simply have to reorder the indices in X to X(i,j,l,k).



Regards



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: adrud@arki.dk



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Guillem Viñals Canal
Sent: Saturday, November 23, 2013 2:10 PM
To: gamsworld@googlegroups.com
Subject: SOS2 with multiple set variables



Hi, first of all thanks for your time.



I’d like to implement a SOS2 with a variable X(i,j,k,l) just over the set k. This means:



for each i, each j, and each l the contraint SOS2 of X(k) must be satisfied. How should I define this variable?



I would really appreciate your help.



Guillem




\

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.
For more options, visit https://groups.google.com/groups/opt_out.


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.
For more options, visit https://groups.google.com/groups/opt_out.