Python API, Jupyter, Solver Log Topic is solved

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
Jan
User
User
Posts: 10
Joined: 7 years ago

Python API, Jupyter, Solver Log

Post by Jan »

Dear all,

solving a model instance in Jupyter notebook (v 4.2.3) using debug level 2, I like the solver output to show up in the output cell of the notebook. However, it is redirected to the console (see trn_lp.ipynb, see trn_mcp.py).
Do you have any hints, how to get the solver log into the notebook?

Best regards
Jan

PS: Versions: Python 2.7, Windows 10, GAMS 24.8.3
PPS: Notebooks renamed to txt ending (instead of ipynb)
User avatar
Clemens
Posts: 57
Joined: 7 years ago

Re: Python API, Jupyter, Solver Log

Post by Clemens »

Jan,

The GamsModelInstance is a high performance class meant for solving an instance of a GAMS model multiple times (with different data). Currently it is not possible to direct the (debug) output to Jupyter. We will have a look at the implementation details to see if we can make this work.

Best,
Clemens
Jan
User
User
Posts: 10
Joined: 7 years ago

Re: Python API, Jupyter, Solver Log

Post by Jan »

OK. Thanks for the quick reply!

Best Jan
Post Reply