Pyomo Optimization Modeling in Python by Michael L. Bynum and team
Read
680 pages
English
PDF
4.8

Pyomo ― Optimization Modeling in Python

Mastering Mathematical Optimization with Python

Author: Michael L. Bynum, Gabriel A. Hackebeil, William E. Hart, Carl D. Laird, Bethany L. Nicholson, John D. Siirola, Jean-Paul Watson, David L. Woodruff

Year: 2023

Summary:

Introduction

This book provides a complete and comprehensive guide to Pyomo (Python Optimization Modeling Objects) for both beginner and advanced modelers, including undergraduate and graduate students, academic researchers, and industry practitioners. Through numerous practical examples, it clearly illustrates the breadth of modeling capabilities supported by Pyomo and its effective handling of complex real-world optimization problems.

What is Pyomo?

Pyomo is an open-source software package designed to formulate and solve large-scale optimization problems. It extends the algebraic modeling language (AML) approach used in modern optimization tools, offering a flexible, extensible, and portable framework embedded directly within Python. Python’s clean, readable syntax and dynamic nature make it an ideal environment for rapid prototyping and complex model development.

Key Features and Improvements in the Third Edition

The third edition of the book has been significantly updated, with a reorganized structure, new examples, and a dedicated chapter on improving model performance. A major change is the emphasis on concrete models—models that offer fewer restrictions in specification and usage, enabling greater freedom and flexibility when building Pyomo solutions. The authors have also updated the recommended method for importing Pyomo, improving usability and compatibility across environments.

Practical Applications and Usability

Pyomo can be used both via a command-line interface and within Python’s interactive environment, making it accessible for learning and real-time experimentation. It includes built-in Python classes for defining sparse sets, parameters, variables, and algebraic expressions—essential components for formulating objectives and constraints. This makes Pyomo a powerful tool for modeling in fields such as logistics, energy systems, economics, and engineering.

News