ortools
Google OR-Tools python libraries and modules
Decision gist · record as of 2026-08-14
Yes. OR-Tools is a mature, actively maintained library from Google with no known vulnerabilities, permissive licensing, and broad platform support. Install friction is moderate due to compiled components, but pre-built wheels cover common Python versions and architectures. It is the right choice for operations research and combinatorial optimization work, especially when you need multiple solver types or want to compare commercial and open-source solvers.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; compiled wheels available for macOS (x86_64, arm64), Linux (x86_64, aarch64), and Windows (amd64).
- Medium install friction due to compiled C++ components across multiple Python versions and platforms.
- Active maintenance with recent commits and stable production status; 13896 repository stars indicate established community adoption.
License · maintenance · safety
Apache 2.0 (permissive) — Apache 2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most production and research applications.
last release 2026-01-14 (212 days) · last repo commit 2026-08-14 · 13,896 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,632,679 downloads/mo, #1,879 on PyPI
Alternatives
Verify before relying
pip install ortools
from ortools.linear_solver import pywraplp
solver = pywraplp.Solver.CreateSolver('GLOP')
if not solver:
print('Could not create solver')- Whether the package includes pre-built solvers (CBC, CLP, GLPK) or requires separate installation of commercial solvers like Gurobi or SCIP.
- Performance characteristics and scalability limits for large constraint programming or vehicle routing problems.
- Whether graph algorithm implementations are optimized for specific graph sizes or problem structures.
What it is and what it does
OR-Tools is Google's open-source operations research library that bundles multiple specialized solvers for combinatorial optimization problems. It includes constraint programming solvers (CP-SAT and original CP), linear and mixed-integer programming optimizers (Glop and MPSolver wrappers), a vehicle routing library, and graph algorithms for shortest paths, min-cost flows, and assignments. The package wraps C++ implementations with Python bindings and depends on numpy, pandas, protobuf, absl-py, typing-extensions, and immutabledict for data handling and type support.
Developers use OR-Tools to model and solve real-world scheduling, routing, assignment, and resource allocation problems. It's particularly suited for problems where you need to optimize an objective function subject to constraints—typical in logistics, manufacturing, workforce scheduling, and network optimization. The library supports both commercial solvers (Gurobi, SCIP) and open-source alternatives (CBC, CLP, GLPK) through its MPSolver wrapper, giving flexibility in solver choice and licensing.
Use it for
- Optimize vehicle routes for delivery or service networks with time windows and capacity constraints.
- Solve workforce scheduling problems to assign workers to shifts while respecting availability and skill requirements.
- Find optimal resource allocation in manufacturing or project management under budget and time constraints.
- Compute shortest paths, minimum-cost flows, or maximum flows in large graphs for network optimization.
- Model and solve bin packing, knapsack, or assignment problems in supply chain and logistics planning.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
OR-Tools is a mature, actively maintained library from Google with no known vulnerabilities, permissive licensing, and broad platform support. Install friction is moderate due to compiled components, but pre-built wheels cover common Python versions and architectures. It is the right choice for operations research and combinatorial optimization work, especially when you need multiple solver types or want to compare commercial and open-source solvers.
Install
ortools on PyPI
Before you install
Medium install friction due to compiled C++ components across multiple Python versions and platforms. Active maintenance with recent commits and stable production status; 13896 repository stars indicate established community adoption.
Requires Python 3.9 or later; compiled wheels available for macOS (x86_64, arm64), Linux (x86_64, aarch64), and Windows (amd64).
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most production and research applications.
Quickstart
pip install ortools
from ortools.linear_solver import pywraplp
solver = pywraplp.Solver.CreateSolver('GLOP')
if not solver:
print('Could not create solver')
Verify before relying
- Whether the package includes pre-built solvers (CBC, CLP, GLPK) or requires separate installation of commercial solvers like Gurobi or SCIP.
- Performance characteristics and scalability limits for large constraint programming or vehicle routing problems.
- Whether graph algorithm implementations are optimized for specific graph sizes or problem structures.
Package facts
| License | Apache 2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 6 packagesabsl-pynumpypandasprotobuftyping-extensionsimmutabledict |
| Maintenance | Actively maintained 212 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,632,679 / month, #1,879 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: BSD :: FreeBSDOperating System :: POSIX :: BSD :: NetBSDOperating System :: POSIX :: BSD :: OpenBSDOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: C++Programming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Office/Business :: SchedulingTopic :: Scientific/EngineeringTopic :: Scientific/Engineering :: MathematicsTopic :: Software DevelopmentTopic :: Software Development :: Libraries :: Python Modules |
Evidence: ortools-9.15.6755-cp310-cp310-macosx_10_15_x86_64.whl; ortools-9.15.6755-cp310-cp310-macosx_11_0_arm64.whl; ortools-9.15.6755-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; ortools-9.15.6755-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; ortools-9.15.6755-cp310-cp310-win_amd64.whl; ortools-9.15.6755-cp311-cp311-macosx_10_15_x86_64.whl; ortools-9.15.6755-cp311-cp311-macosx_11_0_arm64.whl; ortools-9.15.6755-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; ortools-9.15.6755-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; ortools-9.15.6755-cp311-cp311-win_amd64.whl; ortools-9.15.6755-cp312-cp312-macosx_10_15_x86_64.whl; ortools-9.15.6755-cp312-cp312-macosx_11_0_arm64.whl; ortools-9.15.6755-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; ortools-9.15.6755-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; ortools-9.15.6755-cp312-cp312-win_amd64.whl; ortools-9.15.6755-cp313-cp313-macosx_10_15_x86_64.whl; ortools-9.15.6755-cp313-cp313-macosx_11_0_arm64.whl; ortools-9.15.6755-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; ortools-9.15.6755-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; ortools-9.15.6755-cp313-cp313t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.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 › “constraint programming solver”
- ortoolsOR-Tools provides constraint programming, linear and mixed-integer…
- clingoClingo is a Python binding to the clingo Answer Set Programming…
- mipPython MIP models and solves mixed-integer linear programs (MIPs)…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also PuLP · optlang · mip · pyomo · POT · lapx · python-constraint · cylp · osqp · linopy