perform_agent_investment

Function perform_agent_investment 

Source
pub fn perform_agent_investment(
    model: &Model,
    year: u32,
    existing_assets: &[AssetRef],
    prices: &CommodityPrices,
    writer: &mut DataWriter,
) -> Result<Vec<AssetRef>>
Expand description

Perform agent investment to determine capacity investment of new assets for next milestone year.

§Arguments

  • model - The model
  • year - Current milestone year
  • existing_assets - The asset pool (commissioned and otherwise)
  • prices - Commodity prices calculated in the previous full system dispatch
  • writer - Data writer

§Returns

The assets selected (including retained commissioned assets) for the given planning year or an error.