GAMS return code not 0 (407)

Problems with modeling
Post Reply
Jose Miguel G
User
User
Posts: 2
Joined: 5 years ago

GAMS return code not 0 (407)

Post by Jose Miguel G »

Hi, I am trying to solve a model with the python API but I am got this error

```
File "gams\execution.py", line 883, in gams.execution.GamsJob.run (execution.c:22299)
gams.workspace.GamsExceptionExecution: GAMS return code not 0 (407)
```
I have two formulations in the same .gms file. The first one an only one big problem and the second one I split this problem into sub-problems and the model is solved whit a loop. When I solve the big one problem the model run well. The error appears when I try to run the split model.

Someone can help me to solve this problem, please.

Thanks
j.
User avatar
bussieck
Moderator
Moderator
Posts: 1038
Joined: 7 years ago

Re: GAMS return code not 0 (407)

Post by bussieck »

The error code means "unexpected error" (see https://www.gams.com/latest/docs/UG_GAM ... Codes.html). You need to look at the log file of this run call. This hopefully will tell you more. When you create the workspace you can provide some option to keep the temporary directory and the files.

-Michael
Jose Miguel G
User
User
Posts: 2
Joined: 5 years ago

Re: GAMS return code not 0 (407)

Post by Jose Miguel G »

hi bussieck thanks for your reply, I checked the _gams_py_gjo0.lst file but the problem is that does not say anything. The model performed a x number of iterations and then suddenly stopped.

Attached is the .lst file. I changed the format to a txt in order to upload the file.
Attachments
_gams_py_gjo0.txt
(119.09 KiB) Downloaded 200 times
Post Reply