CommoditySingleSourceSink.from_tuple

classmethod CommoditySingleSourceSink.from_tuple(t, **kwargs) paminco.net.demand.CommoditySingleSourceSink[source]

Construct from tuple (source, sink, rate).

Parameters
ttuple

(source, sink, rate): Raw commodity data.

kwargskeyword arguments, optional

Further keyword arguments passed to CommoditySingleSourceSink constructor.

Returns
CommoditySingleSourceSink

Commodity object created from t.