Exit code = 3

Problems with syntax of GAMS
Post Reply
kamal
User
User
Posts: 6
Joined: 3 years ago

Exit code = 3

Post by kamal »

Hi
It appears "Exit code = 3", when running Gams. What should I do?
Please guide me.
code.docx
(33.4 KiB) Downloaded 232 times
Kemal
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Exit code = 3

Post by Renger »

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: 3 years ago

Re: Exit code = 3

Post by kamal »

Dear Renger
Thanks a lot
Kemal
Post Reply