Cvx Lecture Slides
Cvx Lecture Slides
Stephen Boyd
Electrical Engineering Department
Stanford University
• modeling systems
• LP solvers
– many, open source and commercial
• cone solvers
– each handles combinations of a subset of LP, SOCP, SDP, EXP cones
– open source: SDPT3, SeDuMi, CVXOPT, CSDP, ECOS, SCS, . . .
– commercial: Mosek, Gurobi, Cplex, . . .
• you’ll write a basic cone solver later in the course
• uses DCP
• concave:
– min(1 + 2*u, 1 - max(2, v))
– sqrt(v) - 4.55*inv_pos(u - v)
• examples:
– semidefinite(n)
– nonnegative(n)
– simplex(n)
– lorentz(n)
• A*X*A’ - X == B*semidefinite(n)*B’
– means ∃ Z 0 so that AXAT − X = BZB T
• [X z; z’ t] == semidefinite(n+1)
X z
– means 0
zT t
• objective can be
– minimize(convex expression)
– maximize(concave expression)
– omitted (feasibility problem)
• constraints can be
– convex expression <= concave expression
– concave expression >= convex expression
– affine expression == affine expression
– omitted (unconstrained problem)
function y = deadzone(x)
y = max(abs(x) - 1, 0)
minimize f0(x, z)
subject to fi(x, z) ≤ 0, i = 1, . . . , m
A 1 x + A2 z = b
• φ is a convex function
• problem above sometimes called incompletely specified since x isn’t
(yet) given
• an incompletely specified concave maximization problem defines a
concave function
maximize t
subject to t+ + t1.5 2.5
+ + t+ ≤ y
• optimal value of LP
f (c) = inf{cT x | Ax b}
is concave function of c
f (c) = sup{−λT b | AT λ + c = 0, λ 0}