Prev Next Index-> contents reference index search external Up-> pycppad ad_function optimize

Optimize an AD Function Object Tape

Syntax
Purpose
f
Efficiency
Example

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.