Skip to main content

Library for composite optimization in Python

Project description

Note: This package is no longer actively maintained. I won’t be actively responding to issues. If you’d like to volunteer to maintain it, please drop me a line at

copt: composite optimization in Python

copt is an optimization library for Python. Its goal is to provide a high quality implementation of classical optimization algorithms under a consistent API.

Docs | Examples


If you already have a working installation of numpy and scipy, the easiest way to install copt is using pip

pip install -U copt

Alternatively, you can install the latest development from github with the command:

pip install git+


If this software is useful for your research, please consider citing it as

  author       = {Fabian Pedregosa, Geoffrey Negiar, Gideon Dresdner},
  title        = {copt: composite optimization in Python},
  year         = 2020,
  DOI          = {10.5281/zenodo.1283339},


The recommended way to work on the development versionis the following:

  1. Clone locally the github repo. This can be done with the command:

    git clone

This will create a copt directory.

2. Link this directory to your Python interpreter. This can be done by running the following command from the copt directory created with the previous step:

python develop

Now you can run the tests with py.test tests/

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

copt-0.9.1.tar.gz (879.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page