Buildings.Controls.Predictors.BaseClasses
Package with base classes
Information
This package contains base classes that are used to construct the models in Buildings.Controls.Predictors.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
average | Average of past 10 days |
partialBaselinePrediction | Partial function for baseline load prediction |
sampleStart | Start time for sampling |
weatherRegression | Linear weather regression model |
Examples | Collection of models that illustrate model use and test models |
Buildings.Controls.Predictors.BaseClasses.average
Average of past 10 days
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.
Extends from partialBaselinePrediction (Partial function for baseline load prediction).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Power | P[:] | Vector of power consumed in each interval of the current time of day [W] | |
Integer | k | Number of history terms that have already been stored |
Outputs
Type | Name | Description |
---|---|---|
Power | y | Baseline power consumption [W] |
Modelica definition
Buildings.Controls.Predictors.BaseClasses.partialBaselinePrediction
Partial function for baseline load prediction
Information
Partial function that defines the input and output arguments for the base load predictions.
Inputs
Type | Name | Default | Description |
---|---|---|---|
Power | P[:] | Vector of power consumed in each interval of the current time of day [W] | |
Integer | k | Number of history terms that have already been stored |
Outputs
Type | Name | Description |
---|---|---|
Power | y | Baseline power consumption [W] |
Modelica definition
Buildings.Controls.Predictors.BaseClasses.sampleStart
Start time for sampling
Information
Function that returns the time at which the sampling needs to start.
This function takes as arguments the sampling interval and the current time. It returns the time at which the sampling will start. The start of the sampling will be such that a sample instant coincides with t=0.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Time | t | Simulation time [s] | |
Time | samplePeriod | Sample Period [s] |
Outputs
Type | Name | Description |
---|---|---|
Time | sampleStart | Time at which first sample happens [s] |
Modelica definition
Buildings.Controls.Predictors.BaseClasses.weatherRegression
Linear weather regression model
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.
Extends from partialBaselinePrediction (Partial function for baseline load prediction).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Power | P[:] | Vector of power consumed in each interval of the current time of day [W] | |
Integer | k | Number of history terms that have already been stored | |
Temperature | TCur | Current temperature [K] | |
Temperature | T[:] | Vector of temperatures of each interval of the current time of day [K] |
Outputs
Type | Name | Description |
---|---|---|
Power | y | Baseline power consumption [W] |