--- id: pyomo version: "6.10.1" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # pyomo — The Pyomo optimization modeling framework License: permissive · Maintenance: active · Downloads: 1.4M/mo ## 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 above — verify before relying. Pyomo is a Python framework for formulating and solving optimization problems, supporting linear, quadratic, nonlinear, mixed-integer, stochastic, and constraint programming models with external solvers. 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 pip install pyomo uv add pyomo poetry add pyomo ## Installing pyomo 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. 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) Requires an external solver (e.g., ipopt, glpk, cplex) to be installed separately; Pyomo itself is a modeling layer only. 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_current - Install friction: low - Maintenance: active - Downloads: 1.4M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags optimization modeling framework, linear programming python, mixed-integer programming, constraint programming solver, mathematical optimization library, stochastic programming, nonlinear optimization python, optimization, mathematical-programming, solver-agnostic [View on SkillFed](https://skillfed.io/packages/pyomo) · [View on PyPI](https://pypi.org/project/pyomo/)