CVX Installation Instruction

CVX is Matlab-based modelling language, primarily for constructing and solving convex optimization problems. (See http://cvxr.com/cvx/ for more details.) Although installing CVX is fairly straightforward, this page summarizes the key steps. If you come across any problems or issues, please see "Questions, Comments and Common Problems" below.

Installing Matlab

If you already have MATLAB installed, you may skip this step.

Matlab is available for free for current students at MIT from IS&T.  Please follow the installation instructions from IS&T that can be found  here .  If you've never used MATLAB before, there are some beginner tutorials and other info .

Installing CVX

After installing Matlab and testing your installation, you are ready to install CVX. Follow the instructions available from CVX Research. Some notes:

addpath <path to MATLAB folder>/MATLAB/cvx
addpath <path to MATLAB folder>/MATLAB/cvx/structures
addpath <path to MATLAB folder>/MATLAB/cvx/lib
addpath <path to MATLAB folder>/MATLAB/cvx/functions
addpath <path to MATLAB folder>/MATLAB/cvx/commands
addpath <path to MATLAB folder>/MATLAB/cvx/builtins

replacing < path to MATLAB folder > as appropriate.

Connecting CVX to Gurobi

To be added.

Questions, Comments and Common Problems

If you come across an error in these installation instructions, please

  1. Email the session leader
  2. If you are certain about the correction, please edit this Wiki document appropriately. Remember to include all pertinent details including any OS or version info.
  3. If you are not certain about the correction, start a comment thread on this page to discuss.