简体   繁体   English

如何禁止打印 Ipopt 的启动消息(横幅)?

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

I am running Ipopt in a loop (from Python > Cyipopt).我在循环中运行 Ipopt(来自 Python > Cyipopt)。

Is there a way to suppress the following startup message for Ipopt?有没有办法抑制 Ipopt 的以下启动消息?


This program contains Ipopt, a library for large-scale nonlinear optimization.该程序包含 Ipopt,一个用于大规模非线性优化的库。 Ipopt is released as open source code under the Eclipse Public License (EPL). Ipopt 在 Eclipse 公共许可证 (EPL) 下作为开源代码发布。 For more information visit http://projects.coin-or.org/Ipopt有关更多信息,请访问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.我已经设置了print_level = 0并将其作为 Ipopt 选项传递,但我仍然收到启动消息。

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我还尝试使用nlp.addOption('sb','yes')从 Python 中作为选项传递,但收到以下错误消息:文件“src/cyipopt.pyx”,第 425 行,在 cyipopt.problem.addOption TypeError 中:选项类型无效

(See link: https://groups.google.com/forum/#!topic/julia-opt/TVmuXFWfeBM for the above possible solution.) (有关上述可能的解决方案,请参见链接: https : //groups.google.com/forum/#!topic/julia-opt/TVmuXFWfeBM 。)

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.我在https://list.coin-or.org/pipermail/ipopt/2013-September/003510.html 上找到了另一个可能的解决方案,但不知道在哪里以及如何实现它。

Thanks.谢谢。

what works for me:什么对我有用:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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