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 (41.9 KB)
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
On Tue, Apr 10, 2012 at 6:30 AM, sara sohail wrote:
---------- Forwarded message ----------
From: sara sohail
Date: Sat, Apr 7, 2012 at 3:38 AM
Subject: got hell of errors----plz help
To: gamsworld@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
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
Hi sara, your final code should look like attached!
Cheers, Hervé
Tel : (226) 75503803 / 78357776 / 71315352
De : gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] De la part de Destin Zed
Envoyé : mardi 10 avril 2012 08:23
À : gamsworld@googlegroups.com
Objet : Re: got hell of errors----plz help
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
On Tue, Apr 10, 2012 at 6:30 AM, sara sohail wrote:
---------- Forwarded message ----------
From: sara sohail
Date: Sat, Apr 7, 2012 at 3:38 AM
Subject: got hell of errors----plz help
To: gamsworld@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
\
sara_sohail.gms (29.6 KB)
Thank you Ali, Destin and Herve!
Its all look so helpful i shall work on it.
God help you all:)
Sara
On Tue, Apr 10, 2012 at 8:32 AM, hervé guene wrote:
Hi sara, your final code should look like attached!
Cheers, Hervé
Tel : (226) 75503803 / 78357776 / 71315352
De : gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] De la part de Destin Zed
Envoyé : mardi 10 avril 2012 08:23
À : gamsworld@googlegroups.com
Objet : Re: got hell of errors----plz help
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
On Tue, Apr 10, 2012 at 6:30 AM, sara sohail wrote:
---------- Forwarded message ----------
From: sara sohail
Date: Sat, Apr 7, 2012 at 3:38 AM
Subject: got hell of errors----plz help
To: gamsworld@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
\
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.