Demand Vector (Abstract)

Class Description

class paminco.net.demand._DV(shared=None, dtype_int=None, dtype_float=None)[source]

Base class of a demand vector.

Methods

_DV.get_source_sink_rate([scale_by])

Return a source-sink-rate decomposition of this demand vector.

_DV.add_to_etree(root[, name])

Add demand data to xml.etree.ElementTree.Element.

_DV.from_npz(data[, shared, prefix])

Construct object from .npz file.

Attributes

_DV.k

Number of commodities in demand vector.

_DV.n

_DV.shared

Shared object for network objects.

_DV.dtype_int

_DV.dtype_float