Algorithm 1.
1: | initialize |
2: | c ← 0 |
3: | fork = 1 to maxit do |
4: | [Ax, Am, G] ← assembleSystemMatrices(ck) |
5: | Vx ← PBCG(Ax, Q) |
6: | Vm ← PBCG(Am, GVx) |
7: | M ← D⊤Vm |
8: | Wm ← PBCG(Am, D) |
9: | Wx ← PBCG(Ax, GWm) |
10: | Sk ← assembleSensitivity(ck, Vx, Vm, Wx, Wm) |
11: | |
12: | c ← c + dc |
13: | αk+1 ← qαk |
14: | end for |