CVX: Matlab Software for Disciplined Convex Programming
Example library
Each of the examples listed in the tree below links to
a dedicated page that includes the full source code,
followed by a listing of the output generated by MATLAB when that code is run.
Entries listed as “utilities” are functions used to support the examples
that precede them, and are not given dedicated pages.
Clicking on the corresponding “(.m)” link after each title retrieves
just the source code itself.
Of course, to run any examples yourself, you will need to have
CVX installed; so if necessary, please proceed to the
CVX download page to
get it. The package
includes a complete copy of these examples—including this
web page, which can then be browsed off-line.
These examples are public domain. You are free to use them in
any way you wish; but when you do, we request that you give
appropriate credit to the authors. A number of people have
contributed to the examples in this library, including
Lieven Vandenberghe,
Joƫlle Skaf,
Argyris Zymnis,
Almir Mutapcic,
Michael Grant, and
Stephen Boyd.
The list below is dynamic.
Clicking on the 
icons will expand/collapse directories to reveal/hide their contents.
Expand all
Collapse all
Antenna array design
Circuit design
Figures, examples, and exercises from the book Convex Optimization
Chapter 4: Convex optimization problems
Chapter 5: Duality
Chapter 6: Approximation and fitting
Chapter 7: Statistical estimation
Chapter 8: Geometric problems
Chapter 11: Interior-point methods
Filter design
Examples from A Tutorial on Geometric Programming
Graph Laplacian eigenvalue optimization
Examples employing logarithms, exponentials, and entropy functions
Sparse solution heuristics
Example from Trend Filtering
Miscellaneous examples
|