[Ipopt] intermediate_callback

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


> 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
should be helpful.


More information about the Ipopt mailing list