[Ipopt-tickets] [Ipopt] #86: access to timing statistics after nlp solve
Ipopt
coin-trac at coin-or.org
Wed Dec 26 14:18:28 EST 2012
#86: access to timing statistics after nlp solve
--------------------------------+------------------------
Reporter: stefan | Owner: ipopt-team
Type: enhancement | Status: closed
Priority: normal | Component: Ipopt
Version: 3.5 (C++ Version) | Severity: normal
Resolution: fixed | Keywords:
--------------------------------+------------------------
Changes (by stefan):
* status: new => closed
* resolution: => fixed
Comment:
With r2160, the !TimedTask objects in an OrigIpoptNLP are now available.
To use them in {{{TNLP::finalize()}}}, you need to cast the IpoptNLP that
is passed with !IpoptCalculatedQuantities to an OrigIpoptNLP.
For example:
{{{
OrigIpoptNLP* orignlp = NULL;
if( ip_cq != NULL )
orignlp =
dynamic_cast<OrigIpoptNLP*>(GetRawPtr(ip_cq->GetIpoptNLP()));
if( orignlp != NULL )
printf("grad f eval time: %.20g\n",
orignlp->grad_f_eval_time().TotalCpuTime());
}}}
--
Ticket URL: <https://projects.coin-or.org/ticket/86#comment:1>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.
More information about the Ipopt-tickets
mailing list