Mathematics and Statistics for Data Science

Optimization explorer

Minimize a function of two variables and watch different optimizers at work. Click or drag in the plot to choose the starting point, then press Play.

A teaching tool: the methods and computations have been implemented and checked with care, but no guarantee is given that every result is correct. Please verify anything important independently.

k = 0

Convergence

Results

Evaluations count how often each method computed f, ∇f and the Hessian. Line searches cost extra function evaluations.