Algorithm 2.
Newton step. We illustrate the solution of the reduced KKT system (4.1) using a PCG method at a given outer iteration k ∈ N. The steps to compute the Hessian matrix vector product are given in lines 4–8.
1: |
|
||
2: | , , , s0 ← z0, l ← 0 | ||
3: | while l < n do | ||
4: | |||
5: | (3.9a) forward in time given , and | ⊲ inc. forward solve | |
6: | ⊲ inc. adjoint solve | ||
7: | (3.9c) backward in time given , and | ||
8: | to sl as indicated in (3.9e) given , , and | ||
9: | |||
10: | |||
11: | |||
12: | if ‖rl+1‖2 < ηk break | ||
13: | |||
14: | μl ← 〈zl+1, rl+1〉/〈zl, rl〉 | ||
15: | sl+1 ← zl+1 + μlsl | ||
16: | l ← l + 1 | ||
17: | end while |