[Ipopt] intermediate_callback Method

Nandini Chakravorti nchakravorti at gmail.com
Mon Nov 24 03:34:11 EST 2008


Thanks Stefan. Indeed my function name was wrong :-)

Regards,
Nandini

On Fri, Nov 21, 2008 at 9:55 PM, Stefan Vigerske <stefan at vigerske.de> wrote:

>  Hi,
>
> >       I am using the C++ version of Ipopt. I have a class which inherits
> > from TNLP and I provide an implementation for *intermediate_callback*  in
> my
> > derived class. But the execution never reaches my implementation.
> >
> >       Can someone suggest something? Is there some option that needs to
> be
> > set?
>
> It should be called at each iteration automatically.
> Maybe you missed something in the signature of your implementation of
> intermediate_callback. It has many arguments. If you missed something,
> then the compiler would not recognize that you attempted to overwrite
> the one from TNLP.
>
> It should be
>     bool intermediate_callback(AlgorithmMode mode,
>                                       Index iter, Number obj_value,
>                                       Number inf_pr, Number inf_du,
>                                       Number mu, Number d_norm,
>                                       Number regularization_size,
>                                       Number alpha_du, Number alpha_pr,
>                                       Index ls_trials,
>                                       const IpoptData* ip_data,
>                                       IpoptCalculatedQuantities* ip_cq)
>
> Best,
> Stefan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20081124/2a975ce8/attachment.html 


More information about the Ipopt mailing list