2 |
% $Name$ |
% $Name$ |
3 |
|
|
4 |
Author: Patrick Heimbach |
Author: Patrick Heimbach |
|
\label{ask_the_author:doc_ad_2} |
|
5 |
|
|
6 |
{\sf Automatic differentiation} (AD), also referred to as algorithmic |
{\sf Automatic differentiation} (AD), also referred to as algorithmic |
7 |
(or, more loosely, computational) differentiation, involves |
(or, more loosely, computational) differentiation, involves |
1105 |
the chosen cost function contributions. |
the chosen cost function contributions. |
1106 |
In the present example ({\bf ALLOW\_COST\_TRACER}), |
In the present example ({\bf ALLOW\_COST\_TRACER}), |
1107 |
S/R {\it cost\_tracer} is called. |
S/R {\it cost\_tracer} is called. |
1108 |
It accumulates {\bf objf\_tracer} according to eqn. (\ref{ask_the_author:doc_ad_2}). |
It accumulates {\bf objf\_tracer} according to eqn. (ref:ask-the-author). |
1109 |
% |
% |
1110 |
\subsubsection{Finalize all contributions} |
\subsubsection{Finalize all contributions} |
1111 |
% |
% |
1502 |
$ u_{[k+1]} $ then serves as input for a forward/adjoint run |
$ u_{[k+1]} $ then serves as input for a forward/adjoint run |
1503 |
to determine $ {\cal J} $ and $ \nabla _{u}{\cal J} $ at iteration step |
to determine $ {\cal J} $ and $ \nabla _{u}{\cal J} $ at iteration step |
1504 |
$ k+1 $. |
$ k+1 $. |
1505 |
Tab. \ref{ask_the_author:doc_ad_2} sketches the flow between forward/adjoint model |
Tab. ref:ask-the-author sketches the flow between forward/adjoint model |
1506 |
and the minimization routine. |
and the minimization routine. |
1507 |
|
|
1508 |
{\scriptsize |
{\scriptsize |
1561 |
|
|
1562 |
The routines {\it ctrl\_unpack} and {\it ctrl\_pack} provide |
The routines {\it ctrl\_unpack} and {\it ctrl\_pack} provide |
1563 |
the link between the model and the minimization routine. |
the link between the model and the minimization routine. |
1564 |
As described in Section \ref{ask_the_author:doc_ad_2} |
As described in Section ref:ask-the-author |
1565 |
the {\it unpack} and {\it pack} routines read and write |
the {\it unpack} and {\it pack} routines read and write |
1566 |
control and gradient {\it vectors} which are compressed |
control and gradient {\it vectors} which are compressed |
1567 |
to contain only wet points, in addition to the full |
to contain only wet points, in addition to the full |