CommodityMultiSourceSink.from_label_and_id

classmethod CommodityMultiSourceSink.from_label_and_id(data) paminco.net.demand.CommodityMultiSourceSink[source]

Construct from fully specified data (labels and ids).

Parameters
datatuple of ndarray

(labels, ids, rate) where every element is ndarray of shape (N_tot, ).

Returns
CommodityMultiSourceSink

Commodity constructed from data.