This Page is still under Construction. Please check back again later. |
CVXOPT is a Python-based front-end to a variety of convex and conic optimization solvers. CVXOPT is less flexible, but more efficient than CVX. It also exposes an interface to customize the linear algebra routines used within the conic solvers so that one can create highly efficient, specialized interior point methods for certain problems. See their website for more details.
The standard installation comes with some open-source solvers. These open-source solvers will be sufficient for the Software Tools Class. Consult the CVXOPT documentation for instructions on adding additional solvers to your installation.
Linux users have separate (and simpler) instructions here.
CVXOPT requires Python 2.7 equipped with various packages for linear algebra, including Numpy and Scipy. If you know what you're doing and already have Python2.7 installed, you can skip this step.
Otherwise, we HIGHLY recommend installing EPD Python2.7, 32-bit. (Note this is different from the version of Python suggested in the "Modeling Linear Optimization Problems with PulP" session. This is a stable-version of Python that ships with lots and lots of packages already installed, including most numerical and scientific packages you'd ever want to use as a researcher. See http://www.enthought.com/products/epd.php for details. The total installation is a little large (because it has so many packages), but most of the stuff is pretty useful. It is also the simplest way to get all the dependencies right.
Warning On Windows and Mac OS X, the EPD installation has an annoying feature whereby it will change your system's default Python version to the version it installs. Many users don't like this. (I personally do not mind and have not bothered to change it back). If you do want restore the defaults, though, make a note of what your default python is before installing. For example, on Mac OSX you would, Open a Terminal and type:
$which python
Save the output for later. Close the terminal.
If you are on Windows, do nothing for now.
After that, to install EPD Python,
After you are finished, if you like, you can change back the default interpreter to the one it was before EPD was installed. If you're not bothered about this, skip this step. Otherwise, follow the appropriate instructions:
While it is possible to build CVXOPT from source, we have not yet tested/tried this. Any experience from users who are willing to try is welcome in the comments section.
Instead, please download and install from binary.
While it is possible to install CVXOPT from a binary as described above, we have not tested/tried this. Any experience from users who are willing to try are welcome in the comments section.
Otherwise, please build CVXOPT from source.
This should invoke the GCC compiler and build CVXOPT. Remember, you need to run this last command with EPD Python. Hence, if you were one of the people who changed their default version of python back to something that wasn't EPD, include the full-path to EPD n the last comand.
When it is complete, you can test your installation.
Don't forget to test your installation
If you come across an error in these installation instructions, please