pub fn calculate_prices(
model: &Model,
solution: &Solution<'_>,
year: u32,
) -> Result<CommodityPrices>Expand description
Calculate commodity prices.
Calculate prices for each commodity/region/time-slice according to the commodity’s configured
PricingStrategy.
§Arguments
model- The modelsolution- Solution to dispatch optimisationyear- The year for which prices are being calculated
§Returns
A CommodityPrices mapping (commodity, region, time_slice) to MoneyPerFlow representing
endogenous prices computed from the optimisation solution.