Skip to main content

get_candidate_assets

Function get_candidate_assets 

Source
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> + 'a
Expand 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 to tranche_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 (see calculate_candidate_asset_capacity_scale), then multiplied by capacity_tranche_fraction to infer the tranche size.