Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.The lowest valley vs a low valley
Picture a hilly landscape in thick fog. You can only feel which way is downhill under your feet. Walk downhill and you’ll reach the bottom of a valley: a local minimum. There may be a deeper valley over the next ridge, the global minimum, but you can’t see it from where you’re standing.
Many optimization methods are like that foggy walker. Where you start decides where you end up.
Robot inverse kinematics, trajectory planning around obstacles, neural-network training and satellite orbit design all have many local minima. Knowing whether your problem has them, and how to cope (good starting guesses, multistart, convex reformulations), separates a robust system from one that fails mysteriously.
- 1. A local minimum is…
- 2. The global minimum is…
- 3. A downhill walker usually ends up…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Definitions
For on a feasible set :
- is a global minimizer if for all .
- is a local minimizer if there’s an with for all feasible with . It’s strict if the inequality is strict for .
Every global minimizer is local, but not conversely.
Finding candidates in 1-D
At an interior local minimum of a differentiable , . This is a critical point. If it’s a strict local minimum. If it’s a local maximum. If the test is inconclusive: has a minimum at 0, and has an inflection there.
Example: has local minima at (global, ) and (local only, ), with a local maximum near 0.17 between them.
- 1. Every global minimizer is also…
- 2. f′(x) = 0 and f″(x) > 0 means…
- 3. f(x) = x³ at x = 0 is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.In several variables
First-order necessary condition: . Second-order: with ,
- (all eigenvalues positive): strict local minimum;
- : strict local maximum;
- eigenvalues of both signs: saddle point, going down in some directions and up in others;
- some eigenvalue zero and the rest of one sign: degenerate, so higher-order terms decide.
In high dimensions, most critical points of a random function are saddles, not minima (Dauphin et al., 2014). That’s a theme in A6.3-8.
Basins of attraction
For a descent method, the basin of attraction of a minimum is the set of starting points that converge to it. Basins depend on the function and the algorithm: a method that takes big steps can hop over ridges. If the global basin occupies a fraction of the starting region, then independent random starts find it with probability . With , you need 44 starts for 99%.
Strategies for global optimization
- Exploit structure: convex problems have no spurious local minima (A6.2).
- Good initialization from physics, a coarse solution or a learned guess.
- Multistart / random restarts, keeping the best.
- Global methods: branch and bound for a certified global optimum, simulated annealing, evolutionary methods (A6.4-3), Bayesian optimization (A6.4-2).
- Continuation / homotopy: solve a smoothed problem first, then gradually sharpen it.
- 1. A Hessian with eigenvalues (3, −1) indicates…
- 2. If the global basin is 20% of starts, P(5 starts find it) =
- 3. Basins of attraction depend on…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proof of the first-order condition
Let be an interior local minimum with differentiable. For any direction and small , . Dividing by and letting gives . Using gives . So for all , and hence . ∎
Proof of the second-order sufficient condition
Taylor: . If with smallest eigenvalue , then , which dominates the term for small . So . ∎ The necessary condition is weaker (). The gap is the degenerate case.
Local = global for convex functions
If is convex and is a local minimum, suppose some has . Then points on the segment satisfy for every small . That contradicts local minimality. ∎ This is why convexity (A6.2) is so valuable.
Exercise 3.1: Classify the critical points of f(x, y) = x² − y² + y⁴/2
gives and . At , : a saddle. At , : two global minima with .
- 1. The first-order condition ∇f = 0 is…
- 2. For convex f, every local minimum is…
- 3. H ⪰ 0 at a critical point is…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Inverse kinematics has many minima
A planar 2-link arm reaching a target minimizes . A reachable target has two global minima with zero error: elbow up and elbow down. Both are equally good, and which one you get depends on the start. Add a penalty that keeps the elbow out of an obstacle, and new local minima appear: configurations pushed against the obstacle that can’t slide around it without first getting worse. Multistart finds a collision-free exact solution, but many single starts get stuck. Practical IK solvers (TRAC-IK; Beeson and Ames, 2015) use random restarts for exactly this reason.
Local minima in AI, robotics and aerospace
- Trajectory optimization (CHOMP, TrajOpt) converges to locally optimal paths. Initialization and restarts matter (Ratliff et al., 2009; Schulman et al., 2014).
- Neural networks: wide networks have many near-equivalent minima, and saddle points are the main obstacle (Choromanska et al., 2015; Dauphin et al., 2014).
- Orbit and trajectory design (low-thrust transfers, multiple flybys) is famously multimodal. Global methods and continuation are standard (Izzo, 2010, global trajectory optimization).
- Pose estimation and SLAM: rotation-averaging problems have spurious minima. Certifiable solvers (SE-Sync) prove global optimality (Rosen et al., 2019).
References
- J. Nocedal, S. Wright (2006). Numerical Optimization, 2nd ed. Springer. Ch. 2.
- D. Bertsekas (2016). Nonlinear Programming, 3rd ed. Athena Scientific.
- Y. Dauphin et al. (2014). “Identifying and attacking the saddle point problem in high-dimensional non-convex optimization.” NeurIPS.
- A. Choromanska, M. Henaff, M. Mathieu, G. Ben Arous, Y. LeCun (2015). “The loss surfaces of multilayer networks.” AISTATS.
- P. Beeson, B. Ames (2015). “TRAC-IK: an open-source library for improved solving of generic inverse kinematics.” IEEE-RAS Humanoids.
- N. Ratliff, M. Zucker, J. A. Bagnell, S. Srinivasa (2009). “CHOMP: gradient optimization techniques for efficient motion planning.” ICRA.
- J. Schulman et al. (2014). “Motion planning with sequential convex optimization and convex collision checking.” IJRR, 33(9).
- D. Rosen, L. Carlone, A. Bandeira, J. Leonard (2019). “SE-Sync: a certifiably correct algorithm for synchronization over the special Euclidean group.” IJRR, 38(2–3).
- D. Izzo (2010). “Global optimization and space pruning for spacecraft trajectory design.” In Spacecraft Trajectory Optimization, Cambridge University Press.
- A. Törn, A. Žilinskas (1989). Global Optimization. Springer.