fn add_scarcity_adjusted_prices<'a, I>(
activity_duals: I,
shadow_prices: &CommodityPrices,
existing_prices: &mut CommodityPrices,
markets_to_price: &HashSet<(CommodityID, RegionID)>,
)Expand description
Calculate scarcity-adjusted prices for a set of commodities and add to an existing prices map.
ยงArguments
activity_duals- Iterator over activity duals from optimisation solutionshadow_prices- Shadow prices for all commoditiesexisting_prices- Existing prices map to extend with scarcity-adjusted pricesmarkets_to_price- Set of markets to calculate scarcity-adjusted prices for