Page 1 of 1

Gams Log reading due to calculatin

Posted: Thu Mar 28, 2019 12:26 pm
by johnJenkins
Hi,

one question, if i start gams for a calculation, the calculation needs more than 10 hours, if I want read some log datas during
this time ( for example with Excel VBA) , can I access to the gams log file without error ( means access violation during writing from gams and so on...)

do you have any experience with that, can I read any documentation how the gams opens the log file for writing ( means: shared or not...)

thanks.

Re: Gams Log reading due to calculatin

Posted: Wed Jun 19, 2019 9:11 pm
by bussieck
Yes, you can do that. Best thing to do it to have GAMS write to stdout (lo=3) and then you capture the log yourself. We do this in the OO-APIs. For example, in Python the GAMSJob.run method allows to pass in a textwriter that can be interrogated in a different thread.

-Michael