21.01.2015 Views

Algorithmic Differentiation in Python with Application Examples

Algorithmic Differentiation in Python with Application Examples

Algorithmic Differentiation in Python with Application Examples

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

M<strong>in</strong>imal Surface problem <strong>with</strong> PYADOLC<br />

Example where the Reverse Mode Excels<br />

(discretized) objective function:<br />

u : [0, 1] 2 → R , u ∈ C 1<br />

s<br />

Z 1 Z 1<br />

u ↦→<br />

1 +<br />

0 0<br />

≈<br />

m−1 X m−1 X<br />

O ij (u)<br />

„ « ∂u 2<br />

+<br />

∂x<br />

„ « ∂u 2<br />

∂y<br />

i=0 j=0<br />

"<br />

Õ ij (u) := h 2 1 + (u #<br />

i+1,j+1 − u i,j ) 2 + (u i,j+1 − u i+1,j ) 2<br />

4<br />

Nonl<strong>in</strong>ear Program <strong>with</strong> box constra<strong>in</strong>ts:<br />

u ∗ ∈ R m×m = argm<strong>in</strong> u Õ(u)<br />

therefore ∇ u Õ(u) ∈ R m×m , e.g. m = 50<br />

yields a gradient <strong>with</strong> 2500 elements ⇒ use<br />

reverse mode<br />

Sebastian F. Walter, Humboldt-Universität zu Berl<strong>in</strong> <strong>Algorithmic</strong> () <strong>Differentiation</strong> <strong>in</strong> <strong>Python</strong> <strong>with</strong> <strong>Application</strong> <strong>Examples</strong> Wednesday, 10.07.2010 22 / 27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!