functionweatherRegression

Linear weather regression model

Extends from partialBaselinePrediction.

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.TemperatureTCurCurrent temperature
Modelica.Units.SI.Temperature[:]TVector of temperatures of each interval of the current time of day

Revisions

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