Prev Next

@(@\newcommand{\B}[1]{{\bf #1}} \newcommand{\R}[1]{{\rm #1}}@)@
Optimize an AD Function Object Tape

Syntax
f.optimize()

Purpose
The operation sequence corresponding to an ADFun object can be very large and involve many operations. The f.optimize procedure reduces the number of operations, and thereby the time and memory, required to compute function and derivative values.

f
The object f is an adfun object.

Efficiency
The optimize member function may greatly reduce the size of the operation sequence corresponding to f .

Example
The file optimize.py contains an example and test of this operation.
Input File: pycppad/adfun.cpp