[Ipopt] Using IpoptCalculatedQuantities

Stefan Vigerske stefan at math.hu-berlin.de
Tue May 16 04:12:54 EDT 2017


the return of ip_cq->curr_exact_hessian() is a pointer to an 
IpSymMatrix, which is the base class for a number of matrix 
You could try to figure out which derived type it is and go further.

But it might be easier to just call your eval_h() function.


On 05/15/2017 10:37 PM, Panos Lambrianides wrote:
> Hi Everyone,
> This is a question regarding the C++ interface, specifically how to use the
> class IpoptCalculatedQuantities.  I am trying to get the Ipopt calculated
> Hessian at the optimal point so that I can use it downstream for some
> further analysis.
> I got as far as
> ip_cq->curr_exact_hessian();
> where ip_cq is a pointer to
> Ipopt::IpoptCalculatedQuantities
> but how do I get the values out of the matrix?
> Thank you.
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> https://list.coin-or.org/mailman/listinfo/ipopt


More information about the Ipopt mailing list