CommoditySingleSourceSink.get_sparse_elements

CommoditySingleSourceSink.get_sparse_elements(col_number: int = 0)[source]

Extract commodity data for sparse demand matrix.

Parameters
col_numberint, default=0

Column indices of the matrix entries.

Returns
list

[source_id, sink_id]: Row indices of the matrix entries .

list

[col_number, col_number]: Column indices.

list

[-rate, rate]: Data.