Gams Log reading due to calculatin

questions about GAMS' tools
Post Reply
johnJenkins
User
User
Posts: 2
Joined: 7 months ago

Gams Log reading due to calculatin

Post by johnJenkins » 7 months ago

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: 345
Joined: 3 years ago

Re: Gams Log reading due to calculatin

Post by bussieck » 4 months ago

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