Function compute_demand_maps

Source
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 slices
  • demand - Total annual demand for combinations of commodity, region and year
  • slices - How annual demand is shared between time slices

§Returns

DemandMaps for combinations of region, year and time slice, grouped by the commodity to which the demand applies.