An optimization routine minimizes
from x0=(2,1)\mathbf{x}_0=(2,1)x0=(2,1), where f(x0)=8f(\mathbf{x}_0)=8f(x0)=8 and ∇f(x0)=(4,8)\nabla f(\mathbf{x}_0)=(4,8)∇f(x0)=(4,8). It uses the fixed search direction p=(−4,−8)\mathbf{p}=(-4,-8)p=(−4,−8). All quantities are dimensionless.
A backtracking line search tests progressively smaller step sizes along a fixed direction until an acceptance condition holds. Start with α=1\alpha=1α=1 and halve α\alphaα after every rejection. Use the following Armijo test, with coefficient c=0.5c=0.5c=0.5:
The routine accepts the first tested step satisfying this inequality. Stop testing when a step is accepted.
Find the first tested step size that strictly lowers the objective below 8, the step size accepted by the Armijo test, and the objective value at the accepted point. Report both step sizes to three decimal places and the accepted objective value to two decimal places.
Unlock full course notes by signing up
Two steps of gradient descent
Gradient descent with a fixed step size α=0.1\alpha = 0.1α=0.1 is used to minimize f(x,y)=x2+4y2f(x, y) = x^2 + 4y^2f(x,y)=x2+4y2, starting from (x0,y0)=(2,1)(x_0, y_0) = (2, 1)(x0,y0)=(2,1). Perform two iterations. Give x2x_2x2 and y2y_2y2 to two decimal places and the function value f(x2,y2)f(x_2, y_2)f(x2,y2) to three decimal places.
What a descent direction guarantees
A numerical optimizer minimizes a differentiable objective f(x,y)f(x,y)f(x,y). At its current iterate x0\mathbf{x}_0x0, the gradient is ∇f(x0)=(4,−2)\nabla f(\mathbf{x}_0)=(4,-2)∇f(x0)=(4,−2). The proposed search direction is p=(−1,−1)\mathbf{p}=(-1,-1)p=(−1,−1), and trial points have the form x0+αp\mathbf{x}_0+\alpha\mathbf{p}x0+αp, where α>0\alpha>0α>0. All quantities are dimensionless.
Use the search-path derivative
Step size and convergence on a quadratic
An optimizer minimizes the dimensionless objective
using fixed-step gradient descent:
Assessing a Newton's method run
A programmer applies Newton's method for minimization, xk+1=xk−f′(xk)/f′′(xk)x_{k+1} = x_k - f'(x_k)/f''(x_k)xk+1=xk−f′(xk)/f′′(xk), to f(x)=x3−6x2+9x+1f(x) = x^3 - 6x^2 + 9x + 1f(x)=x3−6x2+9x+1, starting at x0=0x_0 = 0x0=0. The first iterates are x1=0.75x_1 = 0.75x1=0.75 and x2=0.975x_2 = 0.975x2=0.975, and further iterations approach x=1x = 1x=1. Which statement correctly assesses this run?