Gams Log reading due to calculatin

questions about GAMS' tools
Post Reply
johnJenkins
User
User
Posts: 2
Joined: 5 years ago

Gams Log reading due to calculatin

Post 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.
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: Gams Log reading due to calculatin

Post 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
Post Reply