got hell of errors----plz help

29 views
Skip to first unread message

sara sohail

unread,
Apr 7, 2012, 6:38:38 AM4/7/12
to gams...@googlegroups.com
hi All

I am a beginner can anyone diagnose error in my coding in gams. its an economics model.i have attached the coding in world file because i dont know how to attach directly from GAMS.

Thanks to anyone who could answer me soon.

waiting,

Sara 
soe.docx

sara sohail

unread,
Apr 10, 2012, 12:30:42 AM4/10/12
to gams...@googlegroups.com
soe.docx

Destin Zed

unread,
Apr 10, 2012, 4:22:55 AM4/10/12
to gams...@googlegroups.com
Hi Sara,

I went through your GAMS code. It seems to me that the reasons why you are getting errors are:

(1) you misplaced the asterisk (*) on your code; it should be placed at the first character position of a line of comment.

(2) Your data entries in the tables are disorganized. Remember the following rules while using Table in GAMS (Source GAMS User Manual):
=> The relative positions of all entries in a table are significant. This is the only statement where end of line (EOL) has meaning. The character positions of the numeric table entries must overlap the character positions of the column headings.
=> The column section has to t on one line.
=> The sequence of signed numbers forming a row must be on the same line.
=> The element definition of a row can span more than one line.
=> A specific column can appear only once in the entire table.

I hope this helps.
Desta

--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To post to this group, send email to gams...@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

hervé guene

unread,
Apr 10, 2012, 11:32:00 AM4/10/12
to gams...@googlegroups.com

Hi sara, your final code should look like attached!

 

Cheers, Hervé

Tel : (226) 75503803 / 78357776 / 71315352

 

De : gams...@googlegroups.com [mailto:gams...@googlegroups.com] De la part de Destin Zed
Envoyé : mardi 10 avril 2012 08:23
À : gams...@googlegroups.com
Objet : Re: got hell of errors----plz help

sara_sohail.gms

sara sohail

unread,
Apr 11, 2012, 12:15:04 AM4/11/12
to gams...@googlegroups.com
Thank you Ali, Destin and Herve!

Its all look so helpful i shall work on it. 

God help you all:)

Sara
Reply all
Reply to author
Forward
0 new messages