Version 2.1, June 2014, Build 1085

Are you feeeling adventurous?: CVX 3.0 is in beta. If you’re in the middle of important work, you should stick with CVX 2.1. But if you want to try it, click here to go to the beta page.

Important note: CVX is not compatible with Octave. Please do not try to install it—you will waste your time! But read this post for some good news.

Full: bundles including Gurobi and/or MOSEK
Linux 32-bit mexglx cvx-glx.zip cvx-glx.tar.gz N/A
64-bit mexa64 cvx-a64.zip cvx-a64.tar.gz
Mac 32-bit mexmaci cvx-maci.zip cvx-maci.tar.gz N/A N/A
64-bit mexmaci64 cvx-maci64.zip cvx-maci64.tar.gz
Windows 32-bit mexw32 cvx-w32.zip cvx-w32.tar.gz
64-bit mexw64 cvx-w64.zip cvx-w64.tar.gz
Bring-your-own-solver (BYOS): connect to your own Gurobi/MOSEK installations
All platforms cvx.zip cvx.tar.gz
Redistributable: free solvers only
All platforms cvx-rd.zip cvx-rd.tar.gz
All platforms (v1.22) cvx-1.22.zip cvx-1.22.tar.gz

For most users, a Full package will be the right choice. These include all of the supported solvers available for your platform.

To help ensure that you download the correct version of your platform, you can type the command mexext at the MATLAB prompt, and match it with the value given in the table above. Since Gurobi is not available for 32-bit Mac or Linux, and MOSEK is not available for 32-bit Mac, we recommend the use of 64-bit MATLAB on these platforms.

The BYOS package provides a more compact download option for users who intend to supply their own Gurobi and/or MOSEK installations.

The Redistributable packages are appropriate if you do not intend to use a commercial solver, or if you wish to distribute CVX with your application, under the CVX Standard License (v2.0) or the GPLv2 (v1.22).

Please note that the use of Gurobi and MOSEK require a CVX Professional license key. In addition, Gurobi requires a separate license key obtained directly from Gurobi Optimization. Without these licenses, the Full package still provides full functionality with the free solvers SeDuMi and SDPT3, so there is no harm in downloading the Full package even if you do not intend to use the commercial solvers.

### Installation instructions

For most platforms, installation is relatively simple: unpack the distribution to an empty directory, and then run cvx_setup from the MATLAB command line. Do not add CVX to your path yourself; let cvx_setup do it for you. Full instructions can be found in the Installation section of the users’ guide, found here online or included with the distribution in the doc/ subdirectory.

We have created two separate sections in the users’ guide for using CVX with Gurobi and MOSEK. These sections include special instructions for connecting external installations of Gurobi and MOSEK to CVX, and instructions on licenses.

### Licensing and redistribution

CVX is free for use in both academic or commercial applications when paired with one of the free bundled free solvers, SDPT3 or SeDuMi. A CVX Professional license is required to use CVX with the commercial solvers Gurobi and MOSEK. Academic users can obtain a license key at no charge. For more information, visit the Licensing page. The use of Gurobi also requires a license key from Gurobi as well; again, academic users can obtain such a key free of charge.

Each of the packages above come with different licensing conditions; please see the license page of the documentation
for more details. A brief summary:

• The Full and BYOS packages may not be redistributed without the advance written permission of CVX Research, Inc.
• The Redistributable packages for version 2.x are subject to the terms of the CVX Standard License, which is a minor
modification of the GNU General Public License, Version 3.