cvxopt: Python software for convex optimization


CVXOPT is a free software package for convex optimization based on the Python programming language. It can be used with the interactive Python interpreter, on the command line by executing Python scripts, or integrated in other software via Python extension modules. Its main purpose is to make the development of software for convex optimization applications straightforward by building on Python’s extensive standard library and on the strengths of Python as a high-level programming language.

Upstream Contact


GPLv3 or later. Includes parts under GPLv2, GNU Lesser General Public License, v2.1. See src/LICENSE for more details. (Sage-compatible)


  • GNU patch

  • GSL

  • GLPK

Special Update/Build Instructions

  • cvxopt.h.patch: Fix building with GCC on Solaris.

  • look for libraries and includes in $SAGE_LOCAL instead of /usr. Add fortran, blas,… libraries if needed. Build with GSL and GLPK support.

  • remove doc/html/, as it can be rebuild by invoking ‘sage -sh’ and running ‘make html’ in doc/

  • TODO: Add more tests in spkg-check

  • TODO: one might want to enhance the code to allow other Sage random sources, at the moment only GSL is used in CVXOPT-1.1.3 spkg, apparently it will need an unclear to me “with seed(..)” construct.



Version Information




cvxopt >=1.2.5

Equivalent System Packages


$ conda install cvxopt


$ sudo pkg install math/py-cvxopt

macports: install the following packages: py-cvxopt


However, these system packages will not be used for building Sage because using Python site-packages is not supported by the Sage distribution; see trac ticket #29023