CONOPT
|
Topics | |
tutorial.py | |
the tutorial example using the automatic differentiation library ADOL-C. | |
tutorial2.py | |
this extends the tutorial by including the computation of the Lagrangian of the Hessian. | |
tutorial2str.py | |
this extends the tutorial by including the computation of the structure of the Hessian and the value of the Lagrangian of the Hessian. | |
Examples written in Python using the ADOL-C package for automatic differentiation.
Before running the Python examples, it is necessary to build and install ADOL-C and the SWIG-generated Python interface. The instructions on how to achieve this are given here.
In the following, it is assumed that the ADOL-C libraries for the Python interface are located in my/adol-c/python/lib
. Also, the CONOPT Python interface libraries are assumed to be located in lib/
.
examples/AD/Python_1thread/
.python3
, the correct command is python
.