fn compute_demand_maps(
time_slice_info: &TimeSliceInfo,
demand: &HashMap<(CommodityID, RegionID, u32), (TimeSliceLevel, Flow)>,
slices: &HashMap<(CommodityID, RegionID, TimeSliceSelection), Dimensionless>,
) -> HashMap<CommodityID, DemandMap>
Expand description
Calculate the demand for each combination of commodity, region, year and time slice.
§Arguments
time_slice_info
- Information about time slicesdemand
- Total annual demand for combinations of commodity, region and yearslices
- How annual demand is shared between time slices
§Returns
DemandMap
s for combinations of region, year and time slice, grouped by the commodity to
which the demand applies.