Exit code = 6 / Unable to open output file

questions about GAMS' tools
Post Reply
Posts: 21
Joined: 3 years ago

Exit code = 6 / Unable to open output file

Post by moosavi_69 » 1 year ago

Dear friends,

I am solving a multi-echelon supply chain problem with the Benders Decomposition algorithm. When the problem becomes large, I confront with an error shown in the following.


To reduce the size of lst file, I have used two below options:

Code: Select all

Option limrow=0, limcol=0;
Final.solprint = 2;
Using optfile=1, I have set "nodefileind" equal to 3 to let GAMS uses my hard memory rather than my ram memory.

Could you please let me know how I can resolve this problem?

Many thanks
Last edited by moosavi_69 1 year ago, edited 2 times in total.

User avatar
Posts: 504
Joined: 4 years ago

Re: Exit code = 6 / Unable to open output file

Post by bussieck » 1 year ago

Hmmm, unfortunately you did not show enough in the screen shot to see what file GAMS could not access. I guess this is "typical" virus scanner interference. The operating system is made believe the file access is freed but some process (the virus scanner) still holds on to the file and another process (GAMS) has trouble accessing it. You might change your GAMS options to do less disk IO, e.g. solvelink=5, or instruct the virus scanner to leave some directories unchecked (e.g. the project directory).


Post Reply