Skip to main content

collect_preset_demands_for_year

Function collect_preset_demands_for_year 

Source
pub fn collect_preset_demands_for_year(
    commodities: &CommodityMap,
    year: u32,
) -> AllDemandMap
Expand description

Collect the preset commodity demands for a given year into a map of commodity, region and time slice selection to demand.

Demand for each commodity is stored at its natural time-slice selection level, matching the balance level at which the investment appraisal operates.