pyomo
The Pyomo optimization modeling framework
Decision gist · record as of 2026-08-14
Yes. Pyomo is production-stable, actively maintained, permissively licensed, and has no install friction. It is the standard choice for optimization modeling in Python when you need flexibility across problem types and solvers. Install it if you are solving any optimization problem and want to work in Python; the main gotcha is that you must separately install or configure a solver backend.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an external solver (e.g., ipopt, glpk, cplex) to be installed separately; Pyomo itself is a modeling layer only.
- Low friction installation via pip; actively maintained with recent releases and 2505 GitHub stars.
- Tested on CPython 3.10–3.14 and PyPy 3.11, with no runtime dependencies to manage.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; attribution and license inclusion required.
last release 2026-06-04 (71 days) · last repo commit 2026-08-13 · 2,505 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,423,318 downloads/mo, #3,921 on PyPI
Alternatives
Verify before relying
pip install pyomo
from pyomo.environ import ConcreteModel, Var, Objective, Constraint, SolverFactory
model = ConcreteModel()
model.x = Var(bounds=(0, 10))
model.obj = Objective(expr=model.x**2)
solver = SolverFactory('ipopt')
results = solver.solve(model)- Whether specific solvers (ipopt, glpk, cplex, gurobi, etc.) are pre-packaged or must be installed separately.
- Performance characteristics for large-scale problems (model size limits, solve time expectations).
- Availability of GPU acceleration or parallel solving capabilities.
What it is and what it does
Pyomo is a Python-based optimization modeling framework that lets you define mathematical optimization problems symbolically and solve them using external solvers. It abstracts away the low-level details of problem formulation, allowing you to write optimization models in readable Python code rather than solver-specific syntax. The framework supports a wide range of problem types—from simple linear programs to complex mixed-integer stochastic programs and differential algebraic equations—making it suitable for research, prototyping, and production optimization workflows.
You use Pyomo to build a model object, define variables and constraints, specify an objective function, and then pass the model to a solver of your choice. The package itself contains no solver; it is a modeling and scripting layer that translates your Python code into solver input formats. This design allows you to switch solvers without rewriting your model, and to leverage Python's full programming capabilities—loops, conditionals, data structures—within your optimization workflow.
Use it for
- Formulate and solve linear or mixed-integer programming problems for supply chain, scheduling, or resource allocation.
- Build stochastic optimization models for decision-making under uncertainty in energy, finance, or operations.
- Prototype nonlinear optimization problems in research or engineering without learning solver-specific languages.
- Develop high-level optimization tools or frameworks that abstract Pyomo's modeling layer for domain-specific users.
- Combine optimization with Python data analysis (pandas, numpy) in a single workflow for end-to-end decision support.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Pyomo is production-stable, actively maintained, permissively licensed, and has no install friction. It is the standard choice for optimization modeling in Python when you need flexibility across problem types and solvers. Install it if you are solving any optimization problem and want to work in Python; the main gotcha is that you must separately install or configure a solver backend.
Install
pyomo on PyPI
Before you install
Low friction installation via pip; actively maintained with recent releases and 2505 GitHub stars. Tested on CPython 3.10–3.14 and PyPy 3.11, with no runtime dependencies to manage.
Requires an external solver (e.g., ipopt, glpk, cplex) to be installed separately; Pyomo itself is a modeling layer only.
License in practice
BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; attribution and license inclusion required.
Quickstart
pip install pyomo
from pyomo.environ import ConcreteModel, Var, Objective, Constraint, SolverFactory
model = ConcreteModel()
model.x = Var(bounds=(0, 10))
model.obj = Objective(expr=model.x**2)
solver = SolverFactory('ipopt')
results = solver.solve(model)
Verify before relying
- Whether specific solvers (ipopt, glpk, cplex, gurobi, etc.) are pre-packaged or must be installed separately.
- Performance characteristics for large-scale problems (model size limits, solve time expectations).
- Availability of GPU acceleration or parallel solving capabilities.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 71 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,423,318 / month, #3,921 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/StableIntended Audience :: End Users/DesktopIntended Audience :: Science/ResearchNatural Language :: EnglishOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Scientific/Engineering :: MathematicsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pyomo-6.10.1-py3-none-any.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 › “optimization modeling framework”
- pyomoPyomo is a Python framework for formulating and solving optimization…
- accelforgeAccelForge models, designs, and explores tensor algebra accelerators…
- google-meridianMeridian is a Bayesian marketing mix modeling (MMM) framework that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also cvxpy · gekko · cvxopt · optlang · cobra · mip · docplex · xpress · ortools · aimmspy