Deck 1 Flashcards
a set of points is convex if:
0 ≤ α ≤ 1, we have αx + (1 − α)y ∈ C
all points in C can see each other
can include boundary or not
can be bounded or unbounded
difference between cone and subspace
alpha > 0 instead of alpha ∈ R
infinity norm
minimize the largest component
minimizing the max of a function is NOT the same as maximizing the min of a function
absolute values and sums of absolute values are piecewise linear so can use the epigraph trick
min |x| = > min t
st Ax = x
t >= -x
When a system is over-determined, what kind of solution should you look for?
sparse solution
x^t *y
inner product (dot product), produces a scalar
subspace
set of points that satisfy many linear equations (Ax=0)
L1 regularization
LASSO, sparsifying
what is a cone?
αx ∈ C when x ∈ C and α > 0
x + y ∈ C when x ∈ C and y ∈ C
Note: the incidence matrix of A is a property of the graph
it does not depend on which nodes are sources/sinks/relays
True or False, every LP, convex QP, and QCQP are SOCPs
True.
LP - make each A = 0
QP/QCQP -
convert quadratic cost to epigraph form (add a variable)
convert quadratic constraints to SOCP (complete square)
for linear constraints, the set of all x satisfying c^Tx = b is
a hyperplane and the set c^Tx
what is a convex cone?
all slices are convex
polyhedron
set of points that satisfy many linear inequalities
intersection of many half spaces
if m >n, usually no solution. A is tall.
overdetermined
x*y^T
outer product, nxn matrix
a slice of a cone is
its intersection with a subspace
Dual
primal is a maximization, dual is a minimization
there is a dual for each primal constraint
there is a dual constraint for each primal variable
(any feasible primal point)
2-norm
minimize Euclidean norm
A vector-valued function F(x) is linear in x if
if there exists a
constant matrix A such that F(x) = Ax
L2 regularization
smoothing
Primal problem. What is dual?
max c^Tx
sub Ax =0
Dual. what is primal?
minimize b^T*lambda
subj A^Tλ >=c
λ >=0
convert min to max
take the negative min f (x) = − max (−f (x))
simplex algorithm
tranverse the surface of the feasible polyhedron looking for best vertex
if QCQP is positive semidefinite
then it is convex. Feasible set is convex, solution can be on boundary or in the interior, relatively easy to solve
The set of x satisfying x TQx ≤ 1 corresponds to the set of z satisfying λ1z 2 1 + · · · + λnz 2 n ≤ 1.
in the z coordinates, this is an ellipsoid (stretched by 1/sqrt(lamda)
in xi coordinates, this is a rotated ellipsoid
Standard form of linear equations
Maximize c^T*x
sub to: Ax =0
equalities to inequalities
double up
f (x) = 0 ⇐⇒ f (x) ≥ 0 and f (x) ≤ 0
if primal constraint is tight, then dual variable is
not zero
A function f (x1, . . . , xm) is linear if:
if there exist constants a1, . . . , am such that
f (x1, . . . , xm) = a1x1 + · · · + amxm = a^T*x
feasible set of QCQP
intersection of multiple ellipsoids
epigraph trick only works for:
convex functions
ball constraint
SOCP
new region is smaller, no longer a polyhedron, more robust to uncertain constraints
Chebyshev center
What is the largest sphere you can fit inside a polyhedron
want to maximize the smallest line from the center to the side
how to get ellipsoidal cone:
Ellipsoid x^TPx + q^T*x + r ≤ 0 where P is positive semi definite and x ∈ R^n
Complete the squar ||Ax + b||
halfspace
set of points that satisfy linear inequality
max flow primal
each edge of the network has a max capacity, pick how much commodity flows along each edge to maximize the total amount transported from the start node
partition of nodes into 2 subsets, with start node in one subset, end node in other
choose the partition that minimizes the sum of capcities of the dges that connect both subsets
if ellipsoid center is feasible, then
it is also the optimal point
QP
convex quadratic cost and linear constraints
hyperplane
The set of points x ∈ R^n that satisfies a linear equation
a1x1 + · · · + anxn = 0 (or a^T*x = 0)
optimization hierarchy
modeling languages > solvers > algorithms > models
bounded to nonnegative
shift the variable
p ≤ x ≤ q ⇐⇒ 0 ≤ (x −p) and (x −p) ≤ (q −p)
for quadratic constraints what is the set
x^TQx
if Q >0 the set x^TQx
what are the options for solutions in a LP?
infeasible, unbounded, on the boundary
if m
underdetermined
if P is positive semidefinite, then what kind of QP
convex QP. Feasible set is a polyhedron. solution can be on boundary or in the interior. relatively easy to solve.
adding linear terms to a degenerate ellipsoid produces
a paraboloid if the added term is in the degenerate direction