简体   繁体   中英

How to suppress printing startup message (banner) for Ipopt?

I am running Ipopt in a loop (from Python > Cyipopt).

Is there a way to suppress the following startup message for Ipopt?


This program contains Ipopt, a library for large-scale nonlinear optimization. Ipopt is released as open source code under the Eclipse Public License (EPL). For more information visit http://projects.coin-or.org/Ipopt


I have already set print_level = 0 and passing it as an Ipopt option, but I am still getting the startup message.

I also tried passing as an option from Python using nlp.addOption('sb','yes') , but getting the following error message: File "src/cyipopt.pyx", line 425, in cyipopt.problem.addOption TypeError: Invalid option type

(See link: https://groups.google.com/forum/#!topic/julia-opt/TVmuXFWfeBM for the above possible solution.)

I have found another possible solution posted a while ago at https://list.coin-or.org/pipermail/ipopt/2013-September/003510.html but don't understand where and how to implement it.

Thanks.

what works for me:

nlp.addOption('sb', 'yes')
nlp.addOption('print_level', 0)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM