<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Stefan,<div><br></div><div>&nbsp;Thanks for the reply and ideas!<br><div><br><div><div>On Sep 16, 2011, at 7:28 AM, Stefan Vigerske wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br></div></blockquote><div><br></div><blockquote type="cite"><div>I think suppress_all_output option gets active AFTER all options have <br>been read (see IpoptApplication::Initialize(istream&amp;)). So output caused <br>while reading the option file are still printed.<br><br>You could try to call the IpoptApplication constructor with argument <br>"false". Then you should have no output from the beginning on.<br><br></div></blockquote><div><br></div><div>I should explain how we are using Ipopt. First we are using the Python wrapper, Pyipopt (&nbsp;<a href="http://code.google.com/p/pyipopt/">http://code.google.com/p/pyipopt/</a> ). It uses the C interface to Ipopt. So here is sequence of calls:</div><div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>1.&nbsp;Pyipopt calls CreateIpoptProblem</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>2.&nbsp;CreateIpoptProblem&nbsp;calls the constructor IpoptApplication with NO arguments. ( So unfortunately, your second idea won't work unless I modify the Ipopt code, which would be easy, but I don't want to start my own fork of Ipopt ! )</div><div><br></div><div>We don't read the options from a file. Rather we make calls to Pyipopt's add_XXX_option methods which in turn call Ipopt's C interface functions, AddIpoptXXXOption. I had been setting suppress_all_output to yes after all the other options had been set so I got excited that setting it first might help, but it didn't.&nbsp;</div><div><br></div><div>I can dig through the Ipopt code some more but that journaling system, while it seems very powerful, is kind of hard to follow! So that's why I was hoping someone would have solved my problem before.&nbsp;</div><div><br></div><div>Thanks for helping.&nbsp;</div></div><div><br></div><br><blockquote type="cite"><div>Stefan<br><br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;For the purposes of some tests, I would like to suppress all output from Ipopt. I am already setting "suppress_all_output" to "yes". But I still get messages like the three below sent to the screen. Is there an option to suppress these too?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">( We are making use of Ipopt in a larger system ,<a href="http://openmdao.org/">http://openmdao.org/</a> . Our tests include some intentional errors. We are checking our error handling. )<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks in advance for the help!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1. Tried to set Option: invalid_parameter_name. It is not a valid option. Please check the list of available options.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">2. &nbsp;Setting: "-99" is not a valid setting for Option: max_iter. Check the option documentation.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">3.<br></blockquote><blockquote type="cite">### max_iter (Integer) ###<br></blockquote><blockquote type="cite">Category: Convergence<br></blockquote><blockquote type="cite">Description: Maximum number of iterations.<br></blockquote><blockquote type="cite">0&lt;= (3000)&lt;= +inf<br></blockquote><blockquote type="cite">...Warning: overflow encountered in double_scalars<br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Ipopt mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br></blockquote><blockquote type="cite"><a href="http://list.coin-or.org/mailman/listinfo/ipopt">http://list.coin-or.org/mailman/listinfo/ipopt</a><br></blockquote><blockquote type="cite"><br></blockquote><br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="font-family: Helvetica; font-size: 12px; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">-----------------------</span></div><div style="font-family: Helvetica; font-size: 12px; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">Herb Schilling</span></div><div style="font-family: Helvetica; font-size: 12px; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "><a href="mailto:hschilling@nasa.gov">hschilling@nasa.gov</a></span></div><div style="font-family: Helvetica; font-size: 12px; "><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span>
</div>
<br></div></div></body></html>