enableIpoptCallback

jgillis edited this page Nov 6, 2012 · 6 revisions

Ipopt makes it difficult to allow callbacks on iteration. To enable it, copy all Ipopt headers you can find in the Ipopt source distribution to the Ipopt include path manually. At least these headers are required: <coin/IpIpoptData.hpp> <coin/IpOrigIpoptNLP.hpp> <coin/IpTNLPAdapter.hpp> <coin/IpDenseVector.hpp> <coin/IpExpansionMatrix.hpp>.

This snippet might be handy to achieve the copying on a linux system:

find src -name *.hpp | xargs -I '{}' cp '{}' myipoptincludedir/coin
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.