...
- Mac users should use the "UNIX" files .tar.gz files.
- You only need to follow the sections labeled "Supported Platforms" and "Installation Instructions." The sections "Installing a CVX Professional License" and "Using CVX with Gurobi or MOSEK" are optional and not required for Software Tools Class . (See below for more details.)
- The instructions may suggest creating a "startup.m" file if you're on a UNIX system. (If you're on Windows, this may not happen.) This is a configuration file for MATLAB so that it will always know where to look for CVX functions. We also recommend adding one.
- Look in your "MATLAB" folder. It might be in a location like: "/Users/<your username>/Documents/MATLAB"
- If you already have a startup.m file, great! If not, create a blank document named startup.m in this location.
- Add the following code to your startup.m file
addpath <path to MATLAB cvx folder>/MATLAB/cvx
addpath <path to MATLAB cvx folder>/MATLAB/cvx/structures
addpath <path to MATLAB cvx folder>/MATLAB/cvx/lib
addpath <path to MATLAB cvx folder>/MATLAB/cvx/functions
addpath <path to MATLAB cvx folder>/MATLAB/cvx/commands
addpath <path to MATLAB cvx folder>/MATLAB/cvx/builtins
replacing < path to MATLAB cvx folder > as appropriate.
Connecting CVX to Gurobi
...
(Optional)
Connecting CVX to Gurobi is optional and will not be needed for our session. It is pretty easy to do, though, and if you plan on solving Integer Programs through Matlab, you SHOULD do it.
For now, consult the website for details. When I have time, I will add details hereTo be added.
Testing your installation instructions
...