GreaterEqual block
Requirements.ChecksInFixedWindow.GreaterEqual
ยท source
In every true condition phase (after an optional delay), Real input u_max must be greater than or equal to Real input u_min
Extends Requirements.Interfaces.PartialCheck
Syntax
property = GreaterEqual(condition=..., u_max=..., u_min=..., delayTime=...).y;
Description
In every duration where the Boolean input condition is true, the Real input u_max must be greater than or equal to the Real input u_min. Both are signals, for example a supply temperature that must not fall below its set point. The check applies delayTime after each rising edge of condition (default 0: at once). While the check applies, property output y = Satisfied if u_max ≥ u_min and y = Violated otherwise. While condition is false, and during the delay, y = Undefined.
This is During with
check = u_max ≥ u_min and its margin, plus the delay. While the check does not apply,
u_max is compared with itself, so an inactive check generates no state events.
Margin
Output margin (present if computeMargin = true, the default) is (u_max - u_min)/scale:
margin ≥ 0 exactly when the check holds. While the check does not apply, the margin is 0; a consumer takes
the worst value over the applicable points only, as
Verify.ViolationStatistics does.
Example
Examples.Elementary.ChecksInFixedWindow.GreaterEqual and, with the margin asserted in closed form, Examples.Elementary.Margin.Gated.
Origin
Ported in version 0.13.0 from block Buildings_Requirements.GreaterEqual of
modelica-buildings-requirements
(M. Wetter, Lawrence Berkeley National Laboratory, 2024-2025), with the changes listed in
WithinBand.
Copyright (c) 1998-2024 Modelica Association, International Building Performance Simulation Association (IBPSA),
The Regents of the University of California, through Lawrence Berkeley National Laboratory, and contributors;
see UsersGuide.BuildingsLicense.
Copyright © 2026 Model Based Innovation LLC (the port). All rights reserved.
Parameters
| Name | Type | Description |
|---|---|---|
delayTime parameter | SI.Time | Time after each rising edge of condition before the check applies (to skip a start-up transient) |
Components and variables
| Name | Type | Description |
|---|---|---|
u_max | Modelica.Blocks.Interfaces.RealInput | Quantity that must be the greater one |
u_min | Modelica.Blocks.Interfaces.RealInput | Quantity that must be the smaller one |