py_fun_optimize#

View page source

Optimize an AD Function#

Syntax#

f.optimize ()

Purpose#

This reduces the number of operations (hence to time and memory) used to compute the function stored in f On the other hand, the optimization may take a significant amount of time and memory.

f#

This is a d_fun. Optimizing this f also optimizes the corresponding a_fun.

Example#

fun_optimize_xam.py