Structured Modeling with Blocks

This chapter documents how to express hierarchically-structured models using Pyomo’s Block component. Many models contain significant hierarchical structure; that is, they are composed of repeated groups of conceptually related modeling components. Pyomo allows the modeler to define fundamental building blocks, and then construct the overall problem by connecting these building blocks together in an object-oriented manner. In this chapter, we describe the fundamental Block component along with common examples of its use, including repeated components and managing model scope.