Page 1 of 1

Python API, Jupyter, Solver Log

Posted: Sun Mar 12, 2017 1:53 pm
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)

Re: Python API, Jupyter, Solver Log

Posted: Mon Mar 13, 2017 11:25 am
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

Re: Python API, Jupyter, Solver Log

Posted: Mon Mar 13, 2017 11:55 am
by Jan
OK. Thanks for the quick reply!

Best Jan