Updating the price in the model-routing dual

The update is λk+1 = [λk + αk(b − a⊤xk)]+. Below the quality target the price rises; above it the price falls. Run with a constant step to watch the routing flip near the kink, then reset and compare the diminishing and Polyak rules.

0.40 0.80
the dual curve, and its value at each iterate current iterate best bound so far p★ = 11 and d★ = 9
iteration k
0
λk
—
violation / supergradient sk
—
step αk
—
g(λk)
—
best bound
—
Iteration log