4
votes

I have been having an issue with the display of the IPOPT solver in Gekko (python), since upgrading from version 0.2.0 scripts work as expected but there is no more live display in the console while the solver is working, solve(disp=true) doesn't change anything. I am running Ipython in spyder. Does anyone have a solution ? My scripts take about 10mins to run and it would be nice to see if it's failing to stop it earlier. thank you for your time

Adrien

1
Please, provide some lines of your code. - eventHandler

1 Answers

0
votes

You can show the solver output, line-by-line when you change the solve option debug=2.

m.solve(disp=True,debug=2)

The change was made for local solves because Python couldn't handle the rate of text output for some problems and it was causing the buffer to fill and blocked the program from completing. There is an enhancement request on Github to enable the line-by-line output again by default. If your problem takes 10 minutes to complete, the buffer overfill shouldn't be a problem.