Next: Coding the Problem Representation
Up: Interfacing your NLP to
Previous: Interfacing with IPOPT through
Contents
This tutorial assumes that you are familiar with the C++ programming
language, however, we will lead you through each step of the
implementation. For the problem representation, we will create a class
that inherits off of the pure virtual base class, TNLP ( IpTNLP.hpp). For the executable (the main function) we will
make the call to IPOPT through the IpoptApplication class
(IpIpoptApplication.hpp). In addition, we will also be using the
SmartPtr class (IpSmartPtr.hpp) which implements a reference
counting pointer that takes care of memory management (object
deletion) for you (for details, see Appendix B).
After ``make install'' (see Section 2.3),
the header files are installed in $IPOPTDIR/include/coin
(or in $PREFIX/include/coin if the switch
--prefix=$PREFIX was used for configure).
Subsections
Andreas Waechter
2008-08-26