[Ipopt-tickets] [Ipopt] #151: Segmentation Fault using IPOPT

Ipopt coin-trac at coin-or.org
Mon Feb 28 22:37:05 EST 2011


#151: Segmentation Fault using IPOPT
---------------------+------------------------------------------------------
Reporter:  ascrelot  |       Owner:  ipopt-team
    Type:  defect    |      Status:  new       
Priority:  normal    |   Component:  Ipopt     
 Version:  3.9       |    Severity:  normal    
Keywords:            |  
---------------------+------------------------------------------------------
 Hi,

 I'm using IPOPT to solve the subproblem of a Trust Region Algorithm.
 So my objective function is the model. I have to evaluate it by calling a
 method implemented in another class than the one where the eval_f, eval_g
 (and so on) are implemented.
 I want to give some objects as arguments of the constructor which builds
 the TNLP to be able to call my method. I've read in the documentation that
 we have to use SmartPtr to avoid problem of erased reference. Is that only
 for object defined in IPOPt or for all objects? Cause I can't define such
 SmartPtr for my own objects (cause there are undefined methods) and using
 "raw" pointers causes Segmentation fault when I'm leaving the procedure
 where the call
 status = app->OptimizeTNLP(mynlp)
 is done.

 Do you have some code example where objects are given as arguments to the
 constructor of the TNLP?

 Thanks

 Anne-Sophie Crelot

-- 
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/151>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list