How does projected gradient descent handle a closed convex constraint set C, what is the Euclidean projection onto (a) a box [li,ui] and (b) the non-negative orthant R+d, and what does one step from (x0,y0)=(2,1) with η=0.5 give for min⁡x≥0, y≥0(x−1)2+(y+2)2?

Linear algebra and optimisation, Constrained optimisation
Level L2 Elementary. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can apply the gradient-then-clip projected gradient step and check when a boundary point is optimal.

Key idea

Take an ordinary unconstrained gradient step zt=xt−η∇f(xt) and then project zt to the nearest feasible point in Euclidean distance: xt+1=ΠC(zt)=arg⁡min⁡u∈C∥u−zt∥22. For boxes and non-negative constraints, this projection is simple coordinate-wise clipping.

Steps

  1. Write the update: xt+1=ΠC(xt−η∇f(xt)). Because the feasible region C is closed and convex (a convex set containing its boundary), a unique nearest point ΠC(z) always exists.
  2. Give the coordinate-wise clipping formulas: because squared Euclidean distance ∑i(ui−zi)2 splits by coordinate, (a) projecting onto a box li≤ui clips each entry to [li,ui] via min⁡(max⁡(zi,li),ui), and (b) projecting onto the non-negative orthant R+d (all vectors with every coordinate ≥0) clips negatives to zero via max⁡(0,zi).
  3. Compute the gradient at (2,1): ∇f(x,y)=(2(x−1), 2(y+2)), so ∇f(2,1)=(2,6).
  4. Take the unconstrained step: z0=(2,1)−0.5(2,6)=(1,−2).
  5. Project onto x≥0,y≥0: x1=(max⁡(0,1), max⁡(0,−2))=(1,0). Notice (1,0) is already the constrained minimum: ∇f(1,0)=(0,4), so (1,0)−η(0,4)=(1,−4η) clips right back to (1,0) even though the gradient is not zero.

Common mistakes

How long your answer should be

Half a page; 4 minutes.

Read this

Previous in Linear algebra and optimisation: Using Lagrange multipliers, find the point on the line 2x+y=5 that minimises f(x,y)=x2+y2, and what is the minimum value?
Next in Linear algebra and optimisation: Find all stationary points of f(x,y)=x3−3x+y2−4y, and use the Hessian at each stationary point to classify it as a local minimum, local maximum or saddle point. What happens if gradient descent is initialised at (−1,2) versus (−1,0)?