Function perform_optimisation

Source
pub fn perform_optimisation(
    asset: &AssetRef,
    max_capacity: Option<Capacity>,
    commodity: &Commodity,
    coefficients: &CoefficientsMap,
    demand: &IndexMap<TimeSliceID, Flow>,
    time_slice_info: &TimeSliceInfo,
    sense: Sense,
) -> Result<ResultsMap>
Expand description

Performs optimisation for an asset, given the coefficients and demand.

Will either maximise or minimise the objective function, depending on the sense parameter.