filter_input_prices

Function filter_input_prices 

Source
fn filter_input_prices(
    input_prices: &CommodityPrices,
    markets_to_balance: &[(CommodityID, RegionID)],
) -> CommodityPrices
Expand description

Filter prices data to only include prices for markets not being balanced

Markets being balanced (i.e. with commodity balance constraints) will have prices calculated internally by the solver, so we need to remove them to prevent double-counting.