interface

Utility functions and a utility class for interfacing Pyomo components with useful graph algorithms.

Classes

IncidenceGraphInterface([model, active, ...])

An interface for applying graph algorithms to Pyomo variables and constraints

Functions

extract_bipartite_subgraph(graph, nodes0, nodes1)

Return the bipartite subgraph of a graph.

get_bipartite_incidence_graph(variables, ...)

Return the bipartite incidence graph of Pyomo variables and constraints.

get_incidence_graph(variables, constraints, ...)

get_numeric_incidence_matrix(variables, ...)

Return the "numeric incidence matrix" (Jacobian) of Pyomo variables and constraints.

get_structural_incidence_matrix(variables, ...)

Return the incidence matrix of Pyomo constraints and variables