jump-dev / Ipopt.jl

A Julia interface to the Ipopt nonlinear solver
https://github.com/coin-or/ipopt
Other
149 stars 58 forks source link

Ipopt does not print in Jupyter notebooks #385

Closed odow closed 9 months ago

odow commented 9 months ago

Says @frapac

odow commented 9 months ago

This likely needs Base.Libc.flush_cstdio() somewhere

odow commented 9 months ago

x-ref https://github.com/jump-dev/SCS.jl/pull/275

https://github.com/jump-dev/SCS.jl/blob/1a5cb7d9a080c45677b8bb55cdec1e28963e9ff1/src/c_wrapper.jl#L405-L408

odow commented 9 months ago

I could not reproduce this

image

so maybe I was just being an idiot and running with set_silent?

odow commented 9 months ago

Ah, it's because the model was already solved:

image

Maybe we should add a print if this is the case