calculate_prices

Function calculate_prices 

Source
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 model
  • solution - Solution to dispatch optimisation
  • year - 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.