Exit code = 3

Problems with syntax of GAMS
Post Reply
kamal
User
User
Posts: 6
Joined: 2 months ago

Exit code = 3

Post by kamal » 2 months ago

Hi
It appears "Exit code = 3", when running Gams. What should I do?
Please guide me.
code.docx
(33.4 KiB) Downloaded 22 times
Kemal

User avatar
Renger
Posts: 636
Joined: 4 years ago

Re: Exit code = 3

Post by Renger » 1 month ago

Hi

First of all, don't use more than 3 "*" for your comments as errors are shown in the listing as four of them. Searching in your listing for errors is very cumbersome.
If you look for the errors, you will find that you don't have as many equations as you have variables:

Code: Select all

**** Counts do not match
     Single equations in unmatched =E= blocks     1013
     Unmatched single free variables               980

**** Unmatched free variables = 980
This happens often if the parameters for the data (e.g. an equation for all sectors) has no data for a specific sector, or if you are missing an equation.

Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist

kamal
User
User
Posts: 6
Joined: 2 months ago

Re: Exit code = 3

Post by kamal » 1 month ago

Dear Renger
Thanks a lot
Kemal

Post Reply