<html><head></head><body bgcolor="#FFFFFF"><div>Xing,</div><div><br></div><div>Sorry, what you are looking for has not been implemented. You would have to change the ipopt source code. </div><div><br></div><div>Andreas Wächter<br><br>On Aug 26, 2012, at 2:13, Xing Li <<a href="mailto:k.lixing@gmail.com">k.lixing@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Dear Prof. Waechter,<div><br></div><div>Many thanks for your reply. But "print_timing_statistics=yes" didn't work. The output is like following:</div><div><br></div><div>Ipopt 3.10.1: Unknown keyword "print_timing_statistics" </div>
<div>exit code 1 </div><div><BREAK> </div><div><br></div><div>I am afraid that "print_timing_statistics" is not available through AMPL API and what I expect is a little different from displaying the CPU time on terminal, but to write the CPU time specs to a file. So I hope there is a typical name returned by the Ipopt AMPL API, for example, 'CPU time', so that I can not only display the CPU performance, but also write them out by saying 'display CPU_time > foo.out'. I hope that I state clear my problem and hope for your reply.</div>
<div><br></div><div>I am also copying the email to my teammate Yibo Pi on our SmartGridPID project team. </div><div><br></div><div>Thank you very much!</div><div><br></div><div>Best Regards, Xing</div><div>8/26/2012</div>
<div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Sat, Aug 25, 2012 at 5:52 PM, Andreas Waechter <span dir="ltr"><<a href="mailto:awaechter.iems@gmail.com" target="_blank">awaechter.iems@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Xing,<br>
<br>
In the future, please send emails regarding Ipopt to the Ipopt
mailing list.<br>
<br>
The standard Ipopt output level shows the Ipopt time at the end:<br>
<br>
Total CPU secs in IPOPT (w/o function evaluations) = 0.008<br>
Total CPU secs in NLP function evaluations = 0.000<br>
<br>
You can set "print_timing_statistics=yes" to see a more detailed
breakdown of the CPU time.<br>
<br>
<pre cols="72">Andreas Waechter
Associate Professor
Department of Industrial Engineering and Management Sciences
McCormick School of Engineering
Northwestern University
Evanston, IL 60208
USA
<a href="http://users.iems.northwestern.edu/~andreasw/" target="_blank">http://users.iems.northwestern.edu/~andreasw/</a></pre>
On 08/24/2012 09:35 PM, Xing Li wrote:<br>
</div>
<blockquote type="cite">
Dear Prof. Waechter,
<div><br>
</div>
<div>Many thanks for your reading my email. </div>
<div><br>
</div>
<div>I am using Ipopt through AMPL to solve a realtime Smart Grid
optimization problem and I would like to get the CPU time of
ipopt when solving each optimization problem. When using CPLEX,
it can be easily done by a directive named "timing" and by
setting it to "cplex_options ' timing = 1'; ". However, I
didn't find any commends like this in the COIN-IN IPOPT AMPL
commands. Therefore, I would like to hear your suggestions on
the writing out the ipopt CPU time. </div>
<div><br>
</div>
<div><br>
</div>
<div>Best Regards and Thank you very much! </div><span class="HOEnZb"><font color="#888888">
<div>
<div><br>
</div>
-- <br>
<div><font style="" color="#000000">Xing
Li </font></div>
<div><font style="" color="#000000">8/25/2012</font></div>
<div><font color="#999999"><font color="#999999"><br>
</font>B.S.E 2012<em><strong> </strong>Industrial and
Operations Engineering</em></font></div>
<div><font color="#999999">University of Michigan - Ann Arbor</font></div>
<div>
<div><font color="#999999">B.S.E 2012 <em>Electrical and
Computer Engineering</em></font></div>
<div><font color="#999999">Shanghai Jiao Tong University -
Shanghai</font></div>
<font color="#999999">
<div><a href="mailto:xingli@umich.edu" target="_blank">xingli@umich.edu</a><font color="#000000"> | <u> <a href="tel:734.531.8872" value="+17345318872" target="_blank">734.531.8872</a></u></font><font color="#000000"> |
</font><a href="http://ioe.engin.umich.edu/" target="_blank">http://ioe.engin.umich.edu/</a></div>
</font></div>
<br>
</div>
</font></span></blockquote>
<br>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font style="background-color:#ffffff" color="#000000">Xing Li </font></div>
<div><font color="#999999"><font color="#999999"><br></font>B.S.E expected 2012<em><strong> </strong>Industrial and Operations Engineering</em></font></div>
<div><font color="#999999">University of Michigan - Ann Arbor</font></div>
<div>
<div><font color="#999999">B.S.E expected 2012 <em>Electrical and Computer Engineering</em></font></div>
<div><font color="#999999">Shanghai Jiao Tong University - Shanghai</font><font color="#999999"></font></div><font color="#999999">
<div><a href="mailto:xingli@umich.edu" target="_blank">xingli@umich.edu</a><font color="#000000"> | <u> 734.531.8872</u></font><font color="#000000"> | </font><a href="http://ioe.engin.umich.edu/" target="_blank">http://ioe.engin.umich.edu/</a></div>
</font></div><br>
</div>
</div></blockquote></body></html>