Hi,
I’m trying to use multi-threading to run several solves in a loop, and I have tried to use the option solvelink. But I am encountering issues…
When I set solvelink to 3, I get the errors below :
Cannot delete directory: 225a\grid177000001
Cannot delete directory: 225a\grid177000001
Cannot delete file: 225a\grid177000002\gamsstat.dat
Cannot delete directory: 225a\grid177000002
Cannot delete directory: 225a\grid177000002
Cannot delete file: 225a\grid177000003\gamsstat.dat
Cannot delete directory: 225a\grid177000003
Cannot delete directory: 225a\grid177000003
Cannot delete file: 225a\grid177000004\gamsstat.dat
Cannot delete directory: 225a\grid177000004
Cannot delete directory: 225a\grid177000004
Cannot delete file: 225a\grid177000005\gamsstat.dat
Cannot delete directory: 225a\grid177000005
Cannot delete directory: 225a\grid177000005
Cannot delete file: 225a\grid177000006\gamsstat.dat
Cannot delete directory: 225a\grid177000006
Cannot delete directory: 225a\grid177000006
Cannot delete file: 225a\grid177000007\gamsstat.dat
Cannot delete directory: 225a\grid177000007
Cannot delete directory: 225a\grid177000007
Cannot delete file: 225a\grid177000008\gamsstat.dat
Cannot delete directory: 225a\grid177000008
Cannot delete directory: 225a\grid177000008
Cannot delete file: 225a\grid177000009\gamsstat.dat
Cannot delete directory: 225a\grid177000009
Cannot delete directory: 225a\grid177000009
Cannot delete file: 225a\grid177000011\gamsstat.dat
Cannot delete directory: 225a\grid177000011
Cannot delete directory: 225a\grid177000011
Cannot delete file: 225a\grid177000012\gamsstat.dat
Cannot delete directory: 225a\grid177000012
Cannot delete directory: 225a\grid177000012
Cannot delete directory: 225a
Le chemin d’acc�s sp�cifi� est introuvable.
Le chemin d’acc�s sp�cifi� est introuvable.
Le chemin d’acc�s sp�cifi� est introuvable.
Le chemin d’acc�s sp�cifi� est introuvable.
Le chemin d’acc�s sp�cifi� est introuvable.
Le chemin d’acc�s sp�cifi� est introuvable.
Le chemin d’acc�s sp�cifi� est introuvable.
*** Error: Cannot delete process directory: 225a
GAMS creates for each solves in my loop a “grid” sub-directory in my “225a” directory. But then, it seems that when one of the solve is finished, GAMS tries to delete the grid and the 225a directories even if all of the other solves are not finished…
I have also tried to set solvelink ot 6 but I have the errors below :
*** Abandoned SolveLink=6 instance with handle 1 (submitted, but not solved)
*** Abandoned SolveLink=6 instance with handle 2 (submitted, but not solved)
*** Abandoned SolveLink=6 instance with handle 3 (submitted, but not solved)
*** Abandoned SolveLink=6 instance with handle 4 (submitted, but not solved)
…
It works well when I set solvelink to other values (0,1 2 4, 5 or 7) but of course it’s not what I want. I don’t want to wait the previous run of my loop to be finished to run the next one. I want them to run in parrallel mode and to get the solutions when all of my runs are finished.
Than you in advance for your help