DemandVector.to_single_pairs

DemandVector.to_single_pairs(as_label: bool = True)[source]

Decompose all CommodityMultiSourceSink.

Parameters
as_labelbool, default=True

If True decomposed commodites are set up by labels, else by id.

Returns
DemandVectorSP

Demand vector with single commodities only.