AffineDemandFunction.get_source_sink_rate

AffineDemandFunction.get_source_sink_rate(param: float)[source]

Get indices of source and sink, and rates for all commodities.

Parameters
paramfloat

Scale rates by param.

Returns
source_indicesndarray

Indices of sources, ndarray (k’, ) of int, where k’ is the total amount of commodities making up this demand function. k’ is summed up over all demand vectors.

sink_indicesndarray

Indices of sinks, ndarray (k’, ) of int.

ratesndarray

Rates, ndarray (k’, ) of float.