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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Power[:] | P (from partialBaselinePrediction) | Vector of power consumed in each interval of the current time of day | |
| Integer | k (from partialBaselinePrediction) | Number of history terms that have already been stored | |
| Modelica.Units.SI.Temperature | TCur | Current temperature | |
| Modelica.Units.SI.Temperature[:] | T | Vector of temperatures of each interval of the current time of day |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Power | y (from partialBaselinePrediction) | Baseline power consumption |
Revisions
-
March 21, 2014 by Michael Wetter:
First implementation.