select_assets_for_single_market

Function select_assets_for_single_market 

Source
fn select_assets_for_single_market(
    model: &Model,
    commodity_id: &CommodityID,
    region_id: &RegionID,
    year: u32,
    demand: &IndexMap<(CommodityID, RegionID, TimeSliceID), Flow>,
    existing_assets: &[AssetRef],
    prices: &CommodityPrices,
    writer: &mut DataWriter,
) -> Result<Vec<AssetRef>>
Expand description

Select assets for a single market in a given year

Returns a list of assets that are selected for investment for this market in this year.