generate_subsystem_blocks

(function from pyomo.util.subsystems)

pyomo.util.subsystems.generate_subsystem_blocks(subsystems, include_fixed=False)[source]

Generates blocks that contain subsystems of variables and constraints.

Parameters:
  • subsystems (List of tuples) – Each tuple is a list of constraints then a list of variables that will define a subsystem.

  • include_fixed (Bool) – Indicates whether to add already fixed variables to the generated subsystem blocks.

Yields:
  • “Subsystem blocks” containing the variables and constraints specified

  • by each entry in subsystems. Variables in the constraints that are

  • not specified are contained in the input_vars component.