Assigned set used as domain !

Dear Experts,

The following is mt sets definition:

sets
s “union of all nodes” /10011015,20012015,30013015,40014015,50015015,
6001
6015,70017015,80018015,90019015,1000110015,
1100111015,1200112015,1300113015,1400114015,1500115015,
16001
16015,1700117015,1800118015,1900119015,2000120015/

sc(s) “set must be covered nodes” /1008,1009,20072010,30063013,40044014,50045013,60046013,
7004
7013,80058013,90059012,1000510012,
11005
11012,1200512012,1300513012,1400514012,1600416013,
1700317013,1800318013,19002*19010,20002,20003/

sd(s) “set of depot nodes” /10003,2005,2014,13014,20005/

sn(s)

so(s)

sn(s)= s(s)- sc(s) ;

so(s)= s(s)- sd(s) ;

The problem is that I can’t use sn(s) or so(s) as domain, and I don’t know why!. If I am not allowed to use sn(s) or so(s) as domain, then what is the benefit of Union, Difference or Intersection in GAMS !!!?
The error i recive is Error 187 Assigned set used as domain


Help me please


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

Hi Tino



Your code runs fine if you put a semicolon after so(s).

The union is an assignment, not part of the declaration of sets.

Cheers

Renger







From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Tino
Sent: Wednesday, April 27, 2016 10:34 PM
To: gamsworld
Subject: Assigned set used as domain !



Dear Experts,

The following is mt sets definition:

sets
s “union of all nodes” /10011015,20012015,30013015,40014015,50015015,
6001
6015,70017015,80018015,90019015,1000110015,
1100111015,1200112015,1300113015,1400114015,1500115015,
16001
16015,1700117015,1800118015,1900119015,2000120015/

sc(s) “set must be covered nodes” /1008,1009,20072010,30063013,40044014,50045013,60046013,
7004
7013,80058013,90059012,1000510012,
11005
11012,1200512012,1300513012,1400514012,1600416013,
1700317013,1800318013,19002*19010,20002,20003/

sd(s) “set of depot nodes” /10003,2005,2014,13014,20005/

sn(s)

so(s)

sn(s)= s(s)- sc(s) ;

so(s)= s(s)- sd(s) ;

The problem is that I can’t use sn(s) or so(s) as domain, and I don’t know why!. If I am not allowed to use sn(s) or so(s) as domain, then what is the benefit of Union, Difference or Intersection in GAMS !!!?
The error i recive is Error 187 Assigned set used as domain


Help me please


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

Thanks a lot!!

On Thursday, April 28, 2016 at 9:03:08 AM UTC+3, Renger van Nieuwkoop wrote:

Hi Tino



Your code runs fine if you put a semicolon after so(s).

The union is an assignment, not part of the declaration of sets.

Cheers

Renger







From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Tino
Sent: Wednesday, April 27, 2016 10:34 PM
To: gamsworld
Subject: Assigned set used as domain !



Dear Experts,

The following is mt sets definition:

sets
s “union of all nodes” /10011015,20012015,30013015,40014015,50015015,
6001
6015,70017015,80018015,90019015,1000110015,
1100111015,1200112015,1300113015,1400114015,1500115015,
16001
16015,1700117015,1800118015,1900119015,2000120015/

sc(s) “set must be covered nodes” /1008,1009,20072010,30063013,40044014,50045013,60046013,
7004
7013,80058013,90059012,1000510012,
11005
11012,1200512012,1300513012,1400514012,1600416013,
1700317013,1800318013,19002*19010,20002,20003/

sd(s) “set of depot nodes” /10003,2005,2014,13014,20005/

sn(s)

so(s)

sn(s)= s(s)- sc(s) ;

so(s)= s(s)- sd(s) ;

The problem is that I can’t use sn(s) or so(s) as domain, and I don’t know why!. If I am not allowed to use sn(s) or so(s) as domain, then what is the benefit of Union, Difference or Intersection in GAMS !!!?
The error i recive is Error 187 Assigned set used as domain


Help me please


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