Convex optimization

Quadratic programming

A quadratic program minimizes a convex quadratic objective subject to linear constraints. Adjust the shape of P and the direction of q to see how the solution and its active constraints change.