muse2::simulation::optimisation

Function perform_dispatch_optimisation

Source
pub fn perform_dispatch_optimisation(
    model: &Model,
    assets: &AssetPool,
    year: u32,
) -> Solution
Expand description

Perform the dispatch optimisation.

For a detailed description, please see the dispatch optimisation formulation.

§Arguments

  • model - The model
  • assets - The asset pool
  • year - Current milestone year

§Returns

A solution containing new commodity flows for assets and prices for (some) commodities.