(function from pyomo.contrib.incidence_analysis.interface)
pyomo.contrib.incidence_analysis.interface
Return the incidence matrix of Pyomo constraints and variables
variables (List of Pyomo VarData objects)
constraints (List of Pyomo ConstraintData objects)
include_fixed (Bool) – Flag for whether fixed variables should be included in the matrix nonzeros
COO matrix. Rows are indices into the user-provided list of constraints, columns are indices into the user-provided list of variables. Entries are 1.0.
scipy.sparse.coo_matrix