Hi, I am a new user of GAMS. Now I have an issue with assigning values
my model is code as follows:
1 sets
2 j activity / a1a7 /
3 k resource type / k1k3 /
4 t time period / 120 /
5 m mode /m1m2 / ;
6 variables
7 x(j,m,t) activity j in mode m in time t
8 sr(k) recruitment date of resource type k
9 fr(k) release date of resource type k ;
10 binary variables x ;
11 integer variables sr, fr ;
12 parameters
13 c(k) unit cost of resource types per unit time
14 / c(k1) 14
**** $170,610,334
15 c(k2) 23
16 c(k3) 17 / ;
17
18
19
20
21
GAMS 24.1.2 r40979 Released Jun 16, 2013 WEX-WEI x86_64/MS Windows 05/20/14 14:13:14 Page 2
G e n e r a l A l g e b r a i c M o d e l i n g S y s t e m
Error Messages
170 Domain violation for element
334 Illegal data following a data element - rest ignored
610 At least one embedded value required
I don’t know how I can correct it. please help me to correct it.
thanks
–
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.
Vahid,
you don’t need to read the entire GAMS user guide cover to cover before starting with GAMS. But you should at least have a good look at the tutorial by Rick Rosenthal. It explains the most basic things like entering parameter data so you do not have to ask here. the stuff in the tutorial is worth knowing and you will be glad you put in the time to really read it carefully.
best,
Frank
On Tue, May 20, 2014 at 5:51 AM, Vahid reza Mohammadi wrote:
Hi, I am a new user of GAMS. Now I have an issue with assigning values
my model is code as follows:
1 sets
2 j activity / a1a7 /
3 k resource type / k1k3 /
4 t time period / 120 /
5 m mode /m1m2 / ;
6 variables
7 x(j,m,t) activity j in mode m in time t
8 sr(k) recruitment date of resource type k
9 fr(k) release date of resource type k ;
10 binary variables x ;
11 integer variables sr, fr ;
12 parameters
13 c(k) unit cost of resource types per unit time
14 / c(k1) 14
**** $170,610,334
15 c(k2) 23
16 c(k3) 17 / ;
17
18
19
20
21
GAMS 24.1.2 r40979 Released Jun 16, 2013 WEX-WEI x86_64/MS Windows 05/20/14 14:13:14 Page 2
G e n e r a l A l g e b r a i c M o d e l i n g S y s t e m
Error Messages
170 Domain violation for element
334 Illegal data following a data element - rest ignored
610 At least one embedded value required
I don’t know how I can correct it. please help me to correct it.
thanks
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.
On Tuesday, May 20, 2014 10:17:30 PM UTC-4, Frank Layton wrote:
Vahid,
you don’t need to read the entire GAMS user guide cover to cover before starting with GAMS. But you should at least have a good look at the tutorial by Rick Rosenthal. It explains the most basic things like entering parameter data so you do not have to ask here. the stuff in the tutorial is worth knowing and you will be glad you put in the time to really read it carefully.
best,
Frank
On Tue, May 20, 2014 at 5:51 AM, Vahid reza Mohammadi wrote:
Hi, I am a new user of GAMS. Now I have an issue with assigning values
my model is code as follows:
1 sets
2 j activity / a1a7 /
3 k resource type / k1k3 /
4 t time period / 120 /
5 m mode /m1m2 / ;
6 variables
7 x(j,m,t) activity j in mode m in time t
8 sr(k) recruitment date of resource type k
9 fr(k) release date of resource type k ;
10 binary variables x ;
11 integer variables sr, fr ;
12 parameters
13 c(k) unit cost of resource types per unit time
14 / c(k1) 14
**** $170,610,334
15 c(k2) 23
16 c(k3) 17 / ;
17
18
19
20
21
GAMS 24.1.2 r40979 Released Jun 16, 2013 WEX-WEI x86_64/MS Windows 05/20/14 14:13:14 Page 2
G e n e r a l A l g e b r a i c M o d e l i n g S y s t e m
Error Messages
170 Domain violation for element
334 Illegal data following a data element - rest ignored
610 At least one embedded value required
I don’t know how I can correct it. please help me to correct it.
thanks
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.