Getting Started with pyomo.contrib.simplemodel¶
The pyomo.contrib.simplemodel package is software for modeling and solving optimization problems. This package is derived from Pyomo, and it defines the class SimpleModel that illustrates how Pyomo can be used in a simple, less object-oriented manner. Specifically, this class mimics the modeling style supported by PuLP:
The following sections illustrate similarities and differences between SimpleModel, PuLP and regular Pyomo models. First, the knapsack problem is used to illustrate that these packages can be used in a similar manner on simple applications. Next, the soda can problem illustrates that SimpleModel can represent nonlinear problems that cannot be modeled with PuLP. Finally, the newvendor problem is used to illustrate three different modeling representations: unstructured models, structured models and hierarchical models. SimpleModel and PuLP have unstructured models, while Pyomo supports all three modeling representations.
- Comparing SimpleModel, PuLP and Pyomo
- Modeling Nonlinear Problems
- Unstructured, Structured and Block Formulations
- Source Documentation
Indices and tables¶
This software was supported in part by Sandia National Laboratories. Sandia National Laboratories is a multi-program laboratory managed and operated by Sandia Corporation, a wholly owned subsidiary of Lockheed Martin Corporation, for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-AC04-94AL85000.