<div>Thanks Stefan. Indeed my function name was wrong :-)</div>
<div> </div>
<div>Regards,</div>
<div>Nandini<br><br></div>
<div class="gmail_quote">On Fri, Nov 21, 2008 at 9:55 PM, Stefan Vigerske <span dir="ltr"><<a href="mailto:stefan@vigerske.de">stefan@vigerske.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="Wj3C7c">Hi,<br><br>> I am using the C++ version of Ipopt. I have a class which inherits<br>> from TNLP and I provide an implementation for *intermediate_callback* in my<br>> derived class. But the execution never reaches my implementation.<br>
><br>> Can someone suggest something? Is there some option that needs to be<br>> set?<br><br></div></div>It should be called at each iteration automatically.<br>Maybe you missed something in the signature of your implementation of<br>
intermediate_callback. It has many arguments. If you missed something,<br>then the compiler would not recognize that you attempted to overwrite<br>the one from TNLP.<br><br>It should be<br> bool intermediate_callback(AlgorithmMode mode,<br>
Index iter, Number obj_value,<br> Number inf_pr, Number inf_du,<br> Number mu, Number d_norm,<br> Number regularization_size,<br>
Number alpha_du, Number alpha_pr,<br> Index ls_trials,<br> const IpoptData* ip_data,<br> IpoptCalculatedQuantities* ip_cq)<br>
<br>Best,<br><font color="#888888">Stefan<br></font></blockquote></div><br>