PDHCG · Interactive demo

From updates to convergence.

Primal. Dual. Then convergence.

min‖x‖ ≤ 6 0.025‖x − (60, 3)‖² subject to (3, x − (0, −0.4)) ∈ 𝒬₃
Primal–dual iteratesIteration 1
Without Halpern With Halpern
Iteration 1
Inputsxₖyₖ
Primal
Outputx⁺
Full trajectory
Drag to rotate
PDHG updates the primal–dual pair.

The primal subproblem computes x⁺. The dual update computes y⁺.