# cvxpy/cvxpy

A Python-embedded modeling language for convex optimization problems.

Repository: https://github.com/cvxpy/cvxpy
Canonical: https://ross.abutalabs.com/products/cvxpy
Homepage: https://www.cvxpy.org
Language: C++
License: Apache-2.0
License Family: permissive
Topics: python, cvxpy, optimization, modeling-language, convex-optimization, mathematical-optimization, optimization-modeling, numerical-optimization
Last push: 2026-08-25T03:11:04+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 4811, "days_push": 8, "days_rel": 25, "gap_med": 28.5, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6309, forks 1204 (observed 2026-08-28T04:09:41.649794+00:00)

## What it is
CVXPY is a Python-embedded modeling language for expressing and solving convex optimization problems in natural mathematical syntax. It canonicalizes problems and dispatches them to backend solvers such as Clarabel, SCS, OSQP, and HiGHS.

## Use cases
- solve convex optimization problems in python
- model least-squares with constraints
- formulate mixed-integer convex programs
- express geometric programs in python
- solve parametric optimization problems efficiently
- compute lagrange dual values for constraints
- model portfolio or control optimization problems

## When to choose
- you want to write optimization problems following the math rather than solver standard forms
- you need disciplined convex programming with automatic problem verification (DCP)
- you want solver-agnostic modeling that can swap between open-source and commercial solvers
- you need parametrized problems for fast re-solving with changing data

## When to avoid
- your problem is nonconvex and outside DNLP's supported smooth nonlinear class
- you need raw solver performance without modeling overhead
- you are not working in Python

## Facets
- artifact type: library
- maturity: stable
- function: math, sdk, developer-tools
- domain: mathematics, data-science, performance
- platform: python, windows, cross-platform
- tags: convex-optimization, modeling-language, optimization-solvers, dcp, mixed-integer-programming, geometric-programming, scientific-computing, algorithms, linux, macos

## Member repositories
- cvxpy/cvxpy (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:41.649794+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:46:13.610403+00:00, confidence not recorded.
  - readme: https://github.com/cvxpy/cvxpy (fetched 2026-08-28T04:09:41.649794+00:00, sha afe1e36c31c4)
  - homepage: https://www.cvxpy.org (fetched 2026-08-29T08:42:44.187061+00:00, sha 96b2b89050a3)
  - site_page: https://www.cvxpy.org/install/index.html (fetched 2026-08-29T08:42:44.196127+00:00, sha 6bf79d569f9f)
  - site_page: https://www.cvxpy.org/api_reference/cvxpy.html (fetched 2026-08-29T08:42:44.198127+00:00, sha 8cfea53586e5)
  - site_page: https://www.cvxpy.org/updates/index.html (fetched 2026-08-29T08:42:44.199834+00:00, sha 8d373b5123b6)
  - site_page: https://www.cvxpy.org/faq/index.html (fetched 2026-08-29T08:42:44.202275+00:00, sha b5d0ce7df327)
- Data as of 2026-08-30T08:39:29.467469+00:00.
