linopy.constraints.Constraint.flat

Contents

linopy.constraints.Constraint.flat#

property Constraint.flat#

Convert the constraint to a pandas DataFrame.

The resulting DataFrame represents a long table format of the all non-masked constraints with non-zero coefficients. It contains the columns labels, coeffs, vars, rhs, sign.

Returns:

df (pandas.DataFrame)