ReasonelmIntroductions to decision-intelligence and decision-support software

Optimization and solvers

What is Pyomo? An introduction to Pyomo's Python-based optimization modeling language

By the Reasonelm editorial team · Published · Updated

Pyomo is a Python-based, open-source optimization modeling language. It is used to formulate, solve and analyze optimization models, covering linear, nonlinear and mixed-integer programming. Models are defined symbolically in Python and then handed to separate commercial or open-source solvers.

Tool
Pyomo
Made by
Pyomo (Sandia/community)
Official site
pyomo.org
Category
Optimization and solvers

Who makes Pyomo

Pyomo is developed by the Pyomo project, which combines its Sandia origins with a wider community. It was originally developed at Sandia National Laboratories and is a COIN-OR project. It was formerly released as the Coopr software library.

The official website is linked below this page.

Official website: pyomo.org

What Pyomo is for

Pyomo is for writing down an optimization problem in a structured, symbolic form and then solving it. A user defines a symbolic problem, creates instances of it, and solves those instances with commercial and open-source solvers. The same workflow also supports analyzing the results of an optimization model.

Researchers use Pyomo to solve complex real-world applications. Because it supports iterative analysis and scripting, a model can be run, inspected and adjusted as part of a larger program rather than as a one-off calculation.

Who Pyomo is for

The audience stated for Pyomo is researchers and developers of optimization and analysis tools. Using it means working in Python, so it suits people who are comfortable writing code and who want optimization models to sit inside a general-purpose programming environment.

Pyomo is installed with pip. It does not include solving engines of its own, so users need access to separate optimization solvers.

Notable capabilities

Pyomo's main characteristic is that its modeling objects live inside a full programming language. The capabilities below follow from that design and from the range of problem types it supports.

  • Broad problem coverage: Pyomo supports linear, nonlinear and mixed-integer programming, including MILP, MIQP, MINLP, generalized disjunctive programming, differential algebraic equations and MPECs.
  • Embedding in a programming language: because modeling objects are embedded in a full programming language, Pyomo differs from other algebraic modeling languages.
  • Iterative analysis and scripting: models can be built, solved and revisited from Python scripts.
  • Transparent parallelization: embedding in Python allows subproblems to be parallelized transparently.
  • Stochastic programming: the PySP package built on Pyomo provides generic solvers for stochastic programming.
  • Differential and algebraic equations: Pyomo.DAE provides modeling and automatic discretization for optimization with differential and algebraic equations.
  • Solver flexibility: instances can be solved with both commercial and open-source solvers.

How Pyomo fits optimization and solvers

In the optimization and solvers category, Pyomo sits on the modeling side. It describes the problem and prepares instances, while separate solvers do the numerical solving. That division means the same model can be paired with different solvers.

For decision intelligence, decision support and decision analytics, optimization models are one way to turn a decision into explicit variables, constraints and objectives. Pyomo is a toolkit for building such models in code, which makes it relevant to teams that develop their own analysis tools rather than adopt a packaged application.

Learning material is available online. Documentation and examples are published, Pyomo is described in books and journal publications, and a Pyomo book (Third Edition) describes the capabilities of the Pyomo 6.x series. Users and developers also provide help through StackExchange and the Pyomo Forum.

Frequently asked questions

What is Pyomo used for?

Pyomo is used to formulate, solve and analyze optimization models. It defines symbolic problems, creates instances, and solves them with commercial and open-source solvers.

Who develops Pyomo?

Pyomo was originally developed at Sandia National Laboratories and is a COIN-OR project. It was formerly released as the Coopr software library.

Does Pyomo include its own solvers?

No. Pyomo is installed with pip and needs access to separate optimization solvers, which can be commercial or open source.

Which problem types does Pyomo support?

Pyomo supports linear, nonlinear and mixed-integer programming, including MILP, MIQP, MINLP, generalized disjunctive programming, differential algebraic equations and MPECs.

Does Pyomo support stochastic programming?

Yes. The PySP package built on Pyomo provides generic solvers for stochastic programming.

Sources. This introduction is based on the vendor's official pages, checked on 21 November 2026 (Asia/Dhaka):

Reasonelm is independent and is not affiliated with Pyomo (Sandia/community). Product names belong to their owners. Features change; confirm details on the official website.