Using Python to start learning Unconstrained Numerical Optimization Algorithms
summary
Covers concrete, runnable examples using NumPy and autograd to compute gradients and Jacobians, and SciPy’s optimize routines (root_scalar and scipy.optimize.line_search) to implement Newton, secant/quasi-Newton style root finding and line-search based descent. Demonstrates Wolfe conditions and a zoom step that returns a step length ~0.04 with one gradient evaluation, shows Newton root solve converging in 6 calls/6 iterations, and applies a steepest descent run on the Himmelblau function that reaches the minimizer (3,2) with objective ≈0.
AI-written summary · about
chapters (11)
- 0:00Introduction and welcome
- 1:57Basics of numerical optimization
- 5:25Scaling and gradient concepts
- 8:14Gradient and Hessian in Python
- 13:12Unconstrained optimization problem
- 18:31Newton’s method explained
- 21:58Secant method implementation
- 24:07Line search descent method
- 27:15Step length calculation demo
- 30:01Steepest descent algorithm
- 30:43Further methods and resources
