functionaverage

Average of past 10 days

Extends from partialBaselinePrediction (Partial function for baseline load prediction).

Information

Function that predicts the current load using the average of the previous loads. The argument k determines how many data points will be used to compute the average. This is needed as during the start of the simulation, the complete history is not yet built up.

Inputs

TypeNameDefaultDescription
Modelica.Units.SI.Power[:]P (from partialBaselinePrediction)Vector of power consumed in each interval of the current time of day
Integerk (from partialBaselinePrediction)Number of history terms that have already been stored

Outputs

TypeNameDefaultDescription
Modelica.Units.SI.Powery (from partialBaselinePrediction)Baseline power consumption

Revisions

  • March 21, 2014 by Michael Wetter:
    First implementation.