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 modelyear- Current milestone yearexisting_assets- The asset pool (commissioned and otherwise)prices- Commodity prices calculated in the previous full system dispatchwriter- Data writer
§Returns
The assets selected (including retained commissioned assets) for the given planning year or an
error.