Home

Awesome

CVX: A system for disciplined convex programming

Click here to download a bundle of this repository, including pre-compiled MEX files.

Important Update

This repository is in the process of becoming the official source for CVX. We will be updating the original site and its download page with links back to this site. When this work is complete, the CVX bundles hosted here will provide pre-compiled Matlab MEX files for Windows, Linux, macOS Intel, and macOS Apple Silicon. Furtherore, open versions of the Mosek and Gurobi solver shims will be available. Please stay tuned, here and on the web site, for further developments.

Introduction

CVX is a Matlab package for convex optimizaton. To learn more about what CVX is and how to use it, please visit our web site, read the users' guide, and browse the example library.

The best way to obtain CVX is to visit the Releases Page of this repository, and download either cvx.tgz or cvx.zip. These archives contain:

About this repository

For now, this is a filtered mirror of the main branch of our internal development repository. This internal repository includes code not ready or available for redistribution. Some of that code will was built strictly to support our dual-source approach, and is therefore no longer needed. There remains some additional code there, however, that would likely be valuable to users, and we intend to bring that here over time.

Support

There are four primary mechanisms for obtaining support for CVX:

Easily the most important page on the CVX Forum is the FAQ:

Why isn't CVX accepting my model? READ THIS FIRST!

Everyone who attempts to use CVX should read that page! It should save much frustration.

Supporting CVX users is a challenging exercise, because there are multiple categories of issues that occur when using the software; including, but not limited to:

  1. Generic challenges involving convex optimization, especially the challenge of determining whether or not a given model is convex. See the FAQ.
  2. Difficulties caused by the strictness imposed by the disciplined convex programming framwork. Once again, see the FAQ.
  3. Numerical issues caused by model scaling issues, or even bugs or limitations in the underling solver software. The forum can sometimes offer assistance here.
  4. Actual bugs caused by unintended behavior of the software.

Our experience is that the vast majority of user issues fall into one of the first three categories; a small fraction fall into category 4. In other words, most user issues are not bugs.

That does not mean CVX is bug-free! If you have truly eliminated issue categories 1-3 above from contention, including a thorough understanding of the FAQ, you may wish to submit a bug request to this repository's issue tracker.

Unfortunately, urgent attention to bugs cannot be promised, yet, but as the contributor community is cultivated, they will begin to be able to tackle issues and perhaps even offer new features. Furthermore, if we determine an issue is not a bug, it will be closed, often without a response. For this reason we truly commend users to the CVX Forum before considering filing an issue.

The original authors of this package are not available to assist directly. Support emails sent to the authors will go unanswered.

Citing CVX

Are you using CVX in research work to be published? If so, please include explicit mention of our work in your publication. We have provided example language, citation entries, and even BiBTeX citation code on the Citing CVX page of the documentation.

License

Most of the files in this repository are governed by the terms of our GPLv3-based CVX Standard License. Please see the files LICENSE.txt and GPL.txt, included with the distribution, for more details about the license.

The contents of the example library in the examples/ subdirectory are public domain. We do ask that if you use any of this content in your own work, that you acknowledge the source and any specific authors cited therein.

Thank you for your interest in CVX!
Michael Grant and Stephen Boyd