← All topics

Visualizing Optimization Methods

Pick a surface f(x, y) and an optimization method, then press Start to watch the method roll a ball downhill from a randomly chosen starting point — shown both on the rotatable 3D surface and on the contour map below it, which also traces the exact path taken. Switching the method restarts from the same starting point, so you can compare how differently each one behaves; "New starting point" picks a fresh random point on the current surface.

Keyboard and screen reader users: the surface and method menus, the parameter sliders, and the Step/Start/Reset buttons are the primary controls. The 3D panel can also be rotated by dragging with a mouse, but this is a supplementary view — the contour map, the stats line, and the details panel below convey the same information.

–

Surface f(x, y) — drag to rotate

Contour map and path taken

iteration 0 x = – y = – f(x,y) = – ‖∇f‖ = – status: ready