How to get return code from GAMS Python API run -


is there way return code running gamsjob in gams python api? meaning, after job.run(), return code execution stored somewhere can access?

job.run() throw exception return code stored in attribute .rc if return code non-zero. therefore:

try:     job.run() except gamsexceptionexecution e:     print(e.rc)  # non-zero return code 

Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -