Convex Optimization · Problem 9.30
Equality constrained minimization — Boyd & Vandenberghe
Mathematics — Optimization · gradient-newton-methods-numerical
Problem
Gradient and Newton methods. Consider the unconstrained problem with variable , and . This is the problem of computing the analytic center of the set of linear inequalities Note that we can choose as our initial point. You can generate instances of this problem by choosing from some distribution on . ((a)) Use the gradient method to solve the problem, using reasonable choices for the backtracking parameters, and a stopping criterion of the form . Plot the objective function and step length versus iteration number. (Once you have determined to high accuracy, you can also plot versus iteration.) Experiment with the backtracking parameters and to see their effect on the total number of iterations required. Carry these experiments out for several instances of the problem, of different sizes. ((b)) Repeat using Newton's method, with stopping criterion based on the Newton decrement . Look for quadratic convergence. You do not have to use an efficient method to compute the Newton step, as in exercise 9.27; you can use a general purpose dense solver, although it is better to use one that is based on a Cholesky factorization. Hint. Use the chain rule to find expressions for and .Intuitive explanation
This problem asks you to implement and compare two iterative optimization methods on a log-barrier objective that encodes geometric constraints. The key insight is that the gradient and Hessian have closed forms via the chain rule applied to the sum-of-logs structure—once you compute those, you can run standard descent algorithms and observe how their convergence rates differ. Gradient descent should show linear convergence (slow, steady progress), while Newton's method should exhibit quadratic convergence (explosive speedup near the optimum). By varying problem size and tuning backtracking parameters, you'll see how problem geometry and algorithm choices affect practical performance.
Intuitive explanation
This problem asks you to implement and compare two iterative optimization methods on a log-barrier objective that encodes geometric constraints. The key insight is that the gradient and Hessian have closed forms via the chain rule applied to the sum-of-logs structure—once you compute those, you can run standard descent algorithms and observe how their convergence rates differ. Gradient descent should show linear convergence (slow, steady progress), while Newton's method should exhibit quadratic convergence (explosive speedup near the optimum). By varying problem size and tuning backtracking parameters, you'll see how problem geometry and algorithm choices affect practical performance.