[Ipopt] A Question about writing out CPU time of IPOPT using AMPL

Andreas Waechter awaechter.iems at gmail.com
Sun Aug 26 01:12:42 EDT 2012


Xing,

Sorry, what you are looking for has not been implemented. You would have to change the ipopt source code. 

Andreas Wächter

On Aug 26, 2012, at 2:13, Xing Li <k.lixing at gmail.com> wrote:

> Dear Prof. Waechter,
> 
> Many thanks for your reply. But "print_timing_statistics=yes" didn't work. The output is like following:
> 
> Ipopt 3.10.1: Unknown keyword "print_timing_statistics" 
> exit code 1 
> <BREAK> 
> 
> 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.
> 
> I am also copying the email to my teammate Yibo Pi on our SmartGridPID project team. 
> 
> Thank you very much!
> 
> Best Regards, Xing
> 8/26/2012
> 
> 
> 
> 
> 
> On Sat, Aug 25, 2012 at 5:52 PM, Andreas Waechter <awaechter.iems at gmail.com> wrote:
> Xing,
> 
> In the future, please send emails regarding Ipopt to the Ipopt mailing list.
> 
> The standard Ipopt output level shows the Ipopt time at the end:
> 
> Total CPU secs in IPOPT (w/o function evaluations)   =      0.008
> Total CPU secs in NLP function evaluations           =      0.000
> 
> You can set "print_timing_statistics=yes" to see a more detailed breakdown of the CPU time.
> 
> Andreas Waechter
> 
> Associate Professor
> Department of Industrial Engineering and Management Sciences
> McCormick School of Engineering
> Northwestern University
> Evanston, IL 60208
> USA
> http://users.iems.northwestern.edu/~andreasw/
> On 08/24/2012 09:35 PM, Xing Li wrote:
>> Dear Prof. Waechter,
>> 
>> Many thanks for your reading my email. 
>> 
>> 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. 
>> 
>> 
>> Best Regards and Thank you very much! 
>> 
>> -- 
>> Xing Li
>> 8/25/2012
>> 
>> B.S.E 2012 Industrial and Operations Engineering
>> University of Michigan - Ann Arbor
>> B.S.E 2012 Electrical and Computer Engineering
>> Shanghai Jiao Tong University - Shanghai
>> xingli at umich.edu |  734.531.8872 | http://ioe.engin.umich.edu/
>> 
> 
> 
> 
> 
> -- 
> Xing Li
> 
> B.S.E expected 2012 Industrial and Operations Engineering
> University of Michigan - Ann Arbor
> B.S.E expected 2012 Electrical and Computer Engineering
> Shanghai Jiao Tong University - Shanghai
> xingli at umich.edu |  734.531.8872 | http://ioe.engin.umich.edu/
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20120826/09bc17db/attachment.html>


More information about the Ipopt mailing list