Skip to main content

calculate_prices

Function calculate_prices 

Source
pub fn calculate_prices(
    model: &Model,
    solution_without_candidates: &Solution<'_>,
    solution_with_candidates: &Solution<'_>,
    year: u32,
) -> Result<Prices>
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_without_candidates - Solution to dispatch optimisation without candidates
  • solution_with_candidates - Solution to dispatch optimisation with candidates
  • year - The year for which prices are being calculated

§Returns

Market prices for commodities as well as shadow prices.