blockConstraintViolation

Block that outputs the fraction of time when a constraint is violated

Information

Block that outputs the running fractional time during which any element ui of the input signal is not within umin ≤ ui ≤ umax.

Parameters

TypeNameDefaultDescription
RealuMinMinimum value for input
RealuMaxMaximum value for input
Integernu0Number of input connections

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInput[nu]uVariables of interest
Buildings.Controls.OBC.CDL.Interfaces.RealOutputyFraction of time when the constraint is violated

Components

TypeNameDefaultDescription
Modelica.Units.SI.TimetIntegral of violated time

Revisions

  • January 12, 2020, by Michael Wetter:
    Added documentation.