Departure from Linear Algebra to Optimization
l2 regularization - Least Square l1
Problem: How to handle something like: OR
New class of problems: Linear Programs (LPs) Any LP can be written in “Standard Form”: (Linear cost and linear inequality constraints) (Most Popular)
Other (Equivalent) Standard Form: “Standard Form” Provides us with a definition of LP = any problem that can be written in “that” form. [Just as with Least squares] Cause it could be written as least squares problem through transformation. Same with Linear Programs. (Can be transformed although it might not be obvious)
what do these constraints mean. In least square, x is not constraint. In LP, x have inequality constraints.
What does the “Feasible Set” of x s.t. looks like?
Intersection form.
In the space, → “Half Space ← “Feasible Set”
Intersection of halfspaces is called a “polytope” (basically the feasible region). Higher dimension of polygon. Could be empty if the problem is infeasible problem. Empty Set.
[Picture]
Examples:
- Probability Simplex Basically Changing from equality to inequality constraints. Ex 2: l1 ball (quite complicated in higher dimension, but nevertheless, an example of Polytope)
Generally Speaking, LP is in the form
Cost function is affine function
Objective Function points in the direction of max increase. → -c points in the direction of max decrease.
[picturessss]
Many problems don’t look like LPs, but can be cast as such.
SVM is an LP.
Ex:
The trick is often time Introduce new variables. Slack Variables.