[Ipopt] CPP version

Stefan Vigerske stefan at math.hu-berlin.de
Fri Dec 12 13:05:14 EST 2014


On 12/03/2014 09:46 PM, Redouane wrote:
> Hi,
> I'm trying to use the CPP version of ipopt.
> With the C version I used :
> AddIpoptStrOption(nlp, "hessian_approximation", "limited-memory");
> I try to use in CPP version:
> app->Options()->SetStringValue("hessian_approximation", "limited-memory");

That should be sufficient.

> I put false for the return value of eval_h, I also tried to delete eval_h
> :-). I have a message that the program trigged a breakpoint, and after that
> it stops.

You should then disable the breakpoint.

> How to use "hessian_approximation" in CPP.
> By the way, is there a difference in term of performance between CPP, and C
> versions if they use same solvers?

No, the C interface is a very thin layer around the CPP interface. The 
only eval-function where an additional copying of an array seems to 
happen is in eval_h.

> Thanks
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt

More information about the Ipopt mailing list