Songming Zhu
You question is posed in terms of Parameters, but your data and all other material indicate that you really are looking for a Set, and a Set that can change is in GAMS called a dynamic set. The GAMS users guide has a whole chapter on Dynamic Sets (chapter 12). Try to read it!
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 Songming Zhu
Sent: Thursday, August 28, 2014 8:13 PM
To: gamsworld@googlegroups.com
Subject: Re: how can I get the difference between two parameters?
i have two parameters:
1.A, {1,2,3,4,5,6,7,8,9,10}
2.B, {3,5,7,8}
C∈A and C∉B
i want to get a new parameter C which is {1,2,4,6,9,10}
C must be the parameter because I need to use C in the following calculation.
how can I do that in Gams?
Thank you
–
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/d/optout.
–
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/d/optout.