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
Post a Comment