Skip to content

Interactive lab

Here you can get your hands on optimization. Each app opens in a page of its own, at full size: drag the points, move the sliders and watch sets, functions and optima change.

1. Convex sets

  • Convex combination


    Three points, three weights: see how convex combinations fill the triangle.

    Open the app →

  • Convexity test


    Convex and non-convex sets: does the segment between two points stay in the set?

    Open the app →

  • Balls in the q-norm


    Unit balls of norms: from the diamond to the circle to the square.

    Open the app →

The chapter: Convex sets.

2. Functions of several variables

  • :material-contour: Level sets and gradient


    The level curves of a function of two variables and the gradient, always perpendicular.

    Open the app →

The chapter: Functions of several variables.

3. Convex and concave functions

  • The chord and the graph


    The definition of convex function: does the graph lie below the chord?

    Open the app →

The chapter: Convex and concave functions.

4. Quadratic functions

  • The matrix Q


    Quadratic functions: how the matrix \(Q\) determines the shape of level sets and convexity.

    Open the app →

The chapter: Quadratic functions.

5. Optimization problems

  • Optimum on an interval


    Optimal, unbounded, bound not attained, infeasible: the outcomes of an optimization problem.

    Open the app →

  • Local and global optima


    Neighborhoods, local and global minima of a function on a feasible set.

    Open the app →

The chapter: Optimization problems.

6. Convex and concave optimization problems

  • Descent to a local optimum


    Where does a local method stop? In convex problems every local minimum is global.

    Open the app →

The chapter: Convex and concave optimization problems.