125 Set is under control already
141 Symbol neither initialized nor assigned
A wild shot: You may have spurious commas in the explanatory
text of a declaration. Check symbol reference list.
148 Dimension different - The symbol is referenced with more/less
indices as declared
149 Uncontrolled set entered as constant
257 Solve statement not checked because of previous errors
**** 14 ERROR(S) 0 WARNING(S)
Error 125: if you have the equation EQKS(J) defined over J (you have j number of equations), you then can't use a SUM function over J
Error 148: you define capital K as a function of J and T, but then use it as K(J) only.
--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
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 http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
E-mail:a...@yandex.ru
andre...@yahoo.com
Hi Andre! Thanks again. But the model still doesn't work. I'm confused by Alias(j,j1) . When I put it in the set, the word "Alias" is blue.... My intention is to limit the labour and capital of the two sectors A and B (LS, KS) every year by the L(J,T) and K(J,T) calculated within the model every year.
E-mail:a...@yandex.ru
andre...@yahoo.com
Hi Tania
I usually do not respond to questions with “Urgent” in the subject list. In my view, the GAMS lists are friendly offers for help to users that themselves make an effort, think about what they do, try to learn, and put in time. So do not push with Urgent, Quick or something like that. At least it kept me away from your problem for a long time.
Anyway, you really have to think about your variables. What does L and K mean? Sure, it is labor and capital. But you should have something with total labor and capital in a particular year and then you should have something with the amount of labor and capital in each sector. This means you need variables like LT(T) and KT(T) for total labor and capital and LS(J,T) and KS(J.T) for the amounts used in each sector. Go through your model and think which of these variable you need in each case. The equations that have been the subject of this thread for the last week are quite simple: they are just the relationship between the two different labor variables, LT and LS, and between the two different capital variables, KT and KS.
Once you have these concepts right and understand what a set and an index is, then you should be all right.
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
--