Function calculate_prices_and_reduced_costs

Source
pub fn calculate_prices_and_reduced_costs(
    model: &Model,
    solution: &Solution<'_>,
    existing_assets: &[AssetRef],
    year: u32,
) -> (CommodityPrices, ReducedCosts)
Expand description

Calculate commodity prices and reduced costs for assets.

Note that the behaviour will be different depending on the PricingStrategy the user has selected.

ยงArguments

  • model - The model
  • solution - Solution to dispatch optimisation
  • existing_assets - Existing assets
  • year - Current milestone year