blockBaselinePrediction

Predicts the baseline consumption

Extends from Modelica.Blocks.Icons.DiscreteBlock (Graphical layout of discrete block component icon).

Information

Block that computes the baseline for a demand response client. This implementation computes the 10/10 average baseline. This baseline is the average of the consumed power of the previous 10 days for the same time interval. For example, if the base line is computed every 1 hour, then there are 24 baseline values for each day. Separate baselines are computed for any types of days. The type of day is an input signal received from the connector typeOfDay, and must be equal to any value defined in Buildings.Controls.Types.Day.

If a day is an event day, then any hour of this day after the event signal is received is excluded from the baseline computation. Storing history terms for the base line resumes at midnight.

If no history term is present for the current time interval and the current type of day, then the predicted power consumption PPre will be zero.

Parameters

TypeNameDefaultDescription
IntegernSamNumber of intervals in a day for which baseline is computed
IntegernPreNumber of intervals for which future load need to be predicted (set to one to only predict current time, or to nSam to predict one day)
Buildings.Controls.Predictors.Types.PredictionModelpredictionModelLoad prediction model
IntegernHis10Number of history terms to be stored

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputEConConsumed electrical energy
Modelica.Blocks.Interfaces.RealOutput[nPre]PPrePredicted power consumption for the current time interval
Modelica.Blocks.Interfaces.RealInput[nPre - 1]TOutFutFuture outside air temperatures
Modelica.Blocks.Interfaces.RealInputTOutOutside air temperature
Buildings.Controls.Interfaces.DayTypeInput[integer((nPre - 1)/nSam) + 2]typeOfDayType of day for the current and the future days for which a prediction is to be made. Typically, this has dimension 2 for predictions up to and including 24 hours, and 2+n for any additional day
Modelica.Blocks.Interfaces.BooleanInputisEventDayIf true, this day remains an event day until midnight

Revisions

  • March 29, 2024, by Michael Wetter:
    Refactored implementation to avoid an infinite event iteration in OpenModelica.
    This is for #3754.
  • March 20, 2014 by Michael Wetter:
    First implementation.