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