Kindly see the attached file for my code and tell my mistakes please my supervisor is not helping now he says do own your own.
–
ModalTex-PAK.gms (28.4 KB)
Kindly see the attached file for my code and tell my mistakes please my supervisor is not helping now he says do own your own.
–
ModalTex-PAK.gms (28.4 KB)
ok great I will try again but you think the codes are fine? I was expecting you ll say whole model is altogether wrong.
Sara Saleem
On Mon, Mar 16, 2015 at 5:53 PM, Michael Bussieck wrote:
You put a lot of effort into building this GAMS model, but you make many very basic mistakes. The compiler counts 554 errors (there are probably fewer since one error very often leads to others), but it’s not just one or two. The best way to approach this is to fix the first error and recompile. Since there are so many, the IDE won’t even show you the first error anymore, so add compile line option “cerr=5” (let the compiler stop after 5 errors) (in the IDE into the box right next to the red run arrow). So here are the first couple of errors. Mostly the error messages from the compiler are helpful (add command line option errmsg=1 so the error message appears immediately after the error)"
59 H-UOTH "urban other household
**** $191,182
**** 182 Closing ‘/’ missing in a set, parameter or model statement
**** 191 Closing quote missing
70 ACNT(AC) “All elements in AC except total”
**** $508
**** 508 Blank needed between element and text
**** (-or- illegal character in element)
84 TX(C) “Textile-commodities” /C-TEXT/
**** $184 $194 $170
**** 170 Domain violation for element
**** 184 Domain list redefined
**** 194 Symbol redefined - a second data statement for the same symbol
**** or a data statement after an assignment
108 K(F) “Capital” / K, DSTK /
**** $170
**** 170 Domain violation for element
There are many many more such errors and you probably can eliminate them one after the other. But as you see with the last two error message, the compiler checks your logic which seems not fully structured for this model. Moreover, getting past the compiler is step zero getting a successful model run. You most likely have plenty of work ahead of you.
Michael Bussieck - GAMSWorld Coordinator
On Monday, March 16, 2015 at 2:56:09 AM UTC-4, Annoisa wrote:
Kindly see the attached file for my code and tell my mistakes please my supervisor is not helping now he says do own your own.
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.
Hi Michael, Thanks i was expecting someone will say whole coding is wrong and even I cant work on it.
I will eliminate all small errors by seeing the guide then come here again. thanks again
Annoisa
On Monday, 16 March 2015 17:53:38 UTC+10:30, Michael Bussieck wrote:
You put a lot of effort into building this GAMS model, but you make many very basic mistakes. The compiler counts 554 errors (there are probably fewer since one error very often leads to others), but it’s not just one or two. The best way to approach this is to fix the first error and recompile. Since there are so many, the IDE won’t even show you the first error anymore, so add compile line option “cerr=5” (let the compiler stop after 5 errors) (in the IDE into the box right next to the red run arrow). So here are the first couple of errors. Mostly the error messages from the compiler are helpful (add command line option errmsg=1 so the error message appears immediately after the error)"
59 H-UOTH "urban other household
**** $191,182
**** 182 Closing ‘/’ missing in a set, parameter or model statement
**** 191 Closing quote missing
70 ACNT(AC) “All elements in AC except total”
**** $508
**** 508 Blank needed between element and text
**** (-or- illegal character in element)
84 TX(C) “Textile-commodities” /C-TEXT/
**** $184 $194 $170
**** 170 Domain violation for element
**** 184 Domain list redefined
**** 194 Symbol redefined - a second data statement for the same symbol
**** or a data statement after an assignment
108 K(F) “Capital” / K, DSTK /
**** $170
**** 170 Domain violation for element
There are many many more such errors and you probably can eliminate them one after the other. But as you see with the last two error message, the compiler checks your logic which seems not fully structured for this model. Moreover, getting past the compiler is step zero getting a successful model run. You most likely have plenty of work ahead of you.
Michael Bussieck - GAMSWorld Coordinator
On Monday, March 16, 2015 at 2:56:09 AM UTC-4, Annoisa wrote:
Kindly see the attached file for my code and tell my mistakes please my supervisor is not helping now he says do own your own.
–
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.