Skip to main content
. Author manuscript; available in PMC: 2015 Jun 30.
Published in final edited form as: IEEE J Transl Eng Health Med. 2014 Jun 30;2:1800418. doi: 10.1109/JTEHM.2014.2300862

Algorithm 4.

Pseudocode for N Steps of the CP Algorithm Instance for Quadratic Reweighted Constrained TpV Minimization

 1: INPUT: data g, data-error tolerance , exponent p, and
smoothing parameter η
 2: INPUT: algorithm parameters ν; λ
 3: L ← ∥(X, ν▽)∥2; τ ← 1/L; σ ← 1/L; θ ← 1; n
 0
 4: initialize f0, y0, and z0 to zero vectors
 5: f0f0
 6: repeat
 7: ynyn+σ(Xfng)
 8: yn+1max(yn2σ,0)ynyn2
 9: w(η2+fn2η)p2
10: zn=zn+σνfn
11: zn+1zn(1+σν2(2wλ))
12: fn+1fnτ(XTyn+1+νTzn+1)
13: fn+1fn+1+θ(fn+1fn)
14: nn + 1
15: until nN
16: OUTPUT: fN
17: OUTPUT: w, yN, and zN for evaluating cPDquad and
conditions 3.