These problems were studied sequentially starting in the 1800s
Development of Computer in the 1940s led to wide application
Change in perspective:
Pre 1970s, Linear problems are easy, linear hard
Post 1970s, Convex problems are easy, non-convex hard
Development
Robert Vanderbei/NY Times 1984
Development
wikipedia
Week(s) Ahead
We begin convex optimization today
We will learn how to recognize and formulate convex problems
At first it will seem weird, but stick with it
Next two weeks: Understanding whether constraint sets are convex
How will we solve Convex Problems?
For us \(f\) will be convex and so will be the constraint set
The hard part is recognizing the convexity, algorithms are very well developed
import cvxpy as cpx = cp.Variable()y = cp.Variable()# DCP problems.prob1 = cp.Problem(cp.Minimize(cp.square(x - y)), [x + y >=0, x >=4, y <=1])prob1.solve()
What is a Convex Set
If you draw a line between any two points in the set, the entire line will be in the set
What is a Convex Set
If even one pair of points exists where this fails, the set is not convex
Why is Convexity Important?
Convex optimization: local minimum always coincides with global minimum
Local minimum is findable
Why is Convexity Important?
Convex region
Single Local Min
Why is Convexity Important?
Nonconvex
Many local min
Convex Combinations
If we have two points \(\mathbf{x}_1\) and \(\mathbf{x}_2\), a convex combination is: \[
\theta_1\mathbf{x}_1 + (1-\theta_1)\mathbf{x}_2,
\]
where \(0\leq\theta_1\leq 1\)
Genearlize to more points (weighted averages): \[
\sum_i \theta_i\mathbf{x}_i, \quad 0\leq \theta_i, \quad
\sum_i \theta_i = 1
\]
Math Definition of Convex Sets
A set is convex is for every pair of points \(\mathbf{x}_1\) and \(\mathbf{x}_2\) in the set, every convex combination of those two points is in the set.
Definition Not Useful In Practice
Using the definition is a last resort
Instead, we will use a constructive approach
Have example convex sets
Have operations that preserve convexity
Write target set use operations on examples
Affine Sets (Lines, Planes, Hyperplanes)
\(y = ax + b\)
Solutions of: \[
A\mathbf{x} = \mathbf{d}
\]
Underdetermined Case
Convex Hull
Suppose you have a non-convex set
Define a new set to be the convex combination of all the points in the set