fn get_candidate_assets<'a>(
demand: &'a DemandMap,
agent: &'a Agent,
region_id: &'a RegionID,
commodity: &'a Commodity,
year: u32,
capacity_tranche_fraction: Dimensionless,
) -> impl Iterator<Item = AssetRef> + 'aExpand description
Get candidate assets which produce a particular commodity for a given agent
Each candidate represents one investment tranche with a defined capacity.
- For processes with a defined
tranche_size, the capacity is set totranche_size. - For processes without a defined
tranche_size, the capacity is calculated based on the total demand for the commodity and the asset’s maximum annual production per unit capacity (seecalculate_candidate_asset_capacity_scale), then multiplied bycapacity_tranche_fractionto infer the tranche size.