cplex
A Python interface to the CPLEX Callable Library, Community Edition.
Decision gist · record as of 2026-08-14
Yes, if you need CPLEX's solver from Python and accept the Community Edition's licensing terms and potential usage limits. The package is actively maintained, has no external dependencies, and installs cleanly on supported Python versions. However, verify that the Community Edition's restrictions (key limits, possible performance caps, commercial use terms) align with your project before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.10.
- Community Edition may have usage or performance restrictions; verify licensing terms before production deployment.
- Medium install friction due to pre-built wheels for specific Python versions and platforms.
License · maintenance · safety
Proprietary (unclear) — Licensed under IBM's proprietary International License Agreement for Non-Warranted Programs. Community Edition is free but subject to IBM's terms, including restrictions on reverse engineering, sublicensing, and key-based usage limits. Review the full license terms before deployment.
last release 2026-07-15 (30 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 83,199 downloads/mo, #14,094 on PyPI
Alternatives
Verify before relying
pip install cplex==22.2.0.1
import cplex
c = cplex.Cplex()
c.objective.sense = c.objective.sense.minimize- Whether Community Edition license permits commercial or production use without additional registration
- Performance characteristics and solver limits specific to the Community Edition
- Whether the package requires a separate CPLEX installation or is fully self-contained
- Exact Python version range supported (requires_python specifies >=3.10 but wheel evidence shows cp310–cp313)
What it is and what it does
cplex is a Python binding to IBM ILOG CPLEX Optimization Studio's Callable Library, specifically the free Community Edition. It lets you formulate and solve linear, quadratic, and mixed-integer optimization problems directly from Python, suitable for both interactive exploration and production scripts. The package ships as pre-built wheels for modern Python versions across macOS, Linux, and Windows, with no additional runtime dependencies.
The library is maintained actively and has been available since 2018. It is proprietary software under IBM's non-warranted license, which permits free use of the Community Edition but restricts reverse engineering, sublicensing, and imposes key-based usage limits. Developers should carefully review the license terms to confirm the edition meets their use case, as the Community Edition may have solver limits or restrictions on commercial deployment.
Use it for
- Solve linear programming problems like resource allocation, production planning, or network flow optimization.
- Formulate and solve mixed-integer programs for scheduling, routing, or combinatorial optimization tasks.
- Prototype optimization models interactively in Jupyter notebooks before moving to production solvers.
- Integrate optimization into larger Python applications that require mathematical programming capabilities.
- Benchmark or compare optimization approaches using CPLEX's solver engine from Python.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need CPLEX's solver from Python and accept the Community Edition's licensing terms and potential usage limits.
The package is actively maintained, has no external dependencies, and installs cleanly on supported Python versions. However, verify that the Community Edition's restrictions (key limits, possible performance caps, commercial use terms) align with your project before committing to production use.
Install
cplex on PyPI
Before you install
Medium install friction due to pre-built wheels for specific Python versions and platforms. Active maintenance with a release 30 days ago. No runtime dependencies to manage.
Requires Python >=3.10. Community Edition may have usage or performance restrictions; verify licensing terms before production deployment.
License in practice
Licensed under IBM's proprietary International License Agreement for Non-Warranted Programs. Community Edition is free but subject to IBM's terms, including restrictions on reverse engineering, sublicensing, and key-based usage limits. Review the full license terms before deployment.
Quickstart
pip install cplex==22.2.0.1
import cplex
c = cplex.Cplex()
c.objective.sense = c.objective.sense.minimize
Verify before relying
- Whether Community Edition license permits commercial or production use without additional registration
- Performance characteristics and solver limits specific to the Community Edition
- Whether the package requires a separate CPLEX installation or is fully self-contained
- Exact Python version range supported (requires_python specifies >=3.10 but wheel evidence shows cp310–cp313)
Package facts
| License | Proprietary unclear |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 30 days since the last release |
| First released | |
| Downloads | 83,199 / month, #14,094 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: cplex-22.2.0.1-cp310-cp310-macosx_11_0_arm64.whl; cplex-22.2.0.1-cp310-cp310-manylinux2014_aarch64.whl; cplex-22.2.0.1-cp310-cp310-manylinux2014_ppc64le.whl; cplex-22.2.0.1-cp310-cp310-manylinux2014_x86_64.whl; cplex-22.2.0.1-cp310-cp310-win_amd64.whl; cplex-22.2.0.1-cp311-cp311-macosx_11_0_arm64.whl; cplex-22.2.0.1-cp311-cp311-manylinux2014_aarch64.whl; cplex-22.2.0.1-cp311-cp311-manylinux2014_ppc64le.whl; cplex-22.2.0.1-cp311-cp311-manylinux2014_x86_64.whl; cplex-22.2.0.1-cp311-cp311-win_amd64.whl; cplex-22.2.0.1-cp312-cp312-macosx_11_0_arm64.whl; cplex-22.2.0.1-cp312-cp312-manylinux2014_aarch64.whl; cplex-22.2.0.1-cp312-cp312-manylinux2014_ppc64le.whl; cplex-22.2.0.1-cp312-cp312-manylinux2014_x86_64.whl; cplex-22.2.0.1-cp312-cp312-win_amd64.whl; cplex-22.2.0.1-cp313-cp313-macosx_11_0_arm64.whl; cplex-22.2.0.1-cp313-cp313-manylinux2014_aarch64.whl; cplex-22.2.0.1-cp313-cp313-manylinux2014_ppc64le.whl; cplex-22.2.0.1-cp313-cp313-manylinux2014_x86_64.whl; cplex-22.2.0.1-cp313-cp313-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “cplex python interface”
- cplexProvides a Python interface to IBM CPLEX's optimization solver,…
- docplexModeling library for building and solving mathematical optimization…
- optlangOptlang formulates and solves linear, mixed-integer, and quadratic…
Give your agent the search over MCP, or paste the wish link into any chat.
More Mathematics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.
Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.
onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.
Install it if you have ONNX models to run in production or development.
See also docplex · gurobipy · mip · optlang · PuLP · amplpy · daqp · Mosek · gekko · pyghidra