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 modelsolution_without_candidates- Solution to dispatch optimisation without candidatessolution_with_candidates- Solution to dispatch optimisation with candidatesyear- The year for which prices are being calculated
§Returns
Market prices for commodities as well as shadow prices.