[Ipopt] intermediate_callback

Stefan Vigerske stefan at vigerske.de
Thu Nov 27 08:58:37 EST 2008


Hi,

> In the part SAVE_SOLUTION_VECTOR I have to read out the optimization variables at that iteration step (the x avriables). 
> Can someone say me how to do that ?

That is easy. I just posted an answer to this question on this list 3
days ago:

In intermediate_solution you get an IpoptData object that gives you a
lot of information about the current Ipopt status.
With IpoptData::curr() you should get the current iterate, which should
also contain the primal values.
The documentation at
http://www.coin-or.org/Doxygen/Ipopt/class_ipopt_1_1_ipopt_data.html
should be helpful.

Stefan



More information about the Ipopt mailing list