functionweatherRegression

Linear weather regression model

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

Information

Function that predicts the current load using a linear regression model. The load is assumed to be linear in the temperature. The argument k determines how many data points will be used for the regression. 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
Modelica.Units.SI.TemperatureTCurCurrent temperature
Modelica.Units.SI.Temperature[:]TVector of temperatures of each interval of the current time of day

Outputs

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

Revisions

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