Convex Optimization: Gradient Descent Landscape
Interactive 3D visualization of convex optimization: a ball performs real gradient descent (x_new = x - alpha * grad f(x)) down a convex bowl to the global minimum, with a feasible-region overlay for constrained optimization and a side-by-side non-convex landscape that traps the same algorithm in a local minimum.
This simulator visualizes why convexity matters for optimization: a ball performs real gradient descent, x_new = x − α∇f(x), down a 3D surface toward a minimum. On the convex bowl, every starting point leads to the same global minimum. Toggle a feasible-region overlay to see constrained optimization project the ball back inside an allowed set, and toggle the comparison panel to watch the identical algorithm get trapped in a local minimum on a non-convex surface instead.
A ball performs real gradient descent (x_new = x - alpha*grad f(x)) down a 3D convex bowl to the global minimum. Toggle a feasible-region overlay for constrained optimization, and toggle a side-by-side non-convex surface to watch the identical algorithm get trapped in a local minimum.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install