GreaterEqual block

Requirements.ChecksInFixedWindow.GreaterEqual  ยท source

Icon of GreaterEqual

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

NameTypeDescription
delayTime parameterSI.TimeTime after each rising edge of condition before the check applies (to skip a start-up transient)

Components and variables

NameTypeDescription
u_maxModelica.Blocks.Interfaces.RealInputQuantity that must be the greater one
u_minModelica.Blocks.Interfaces.RealInputQuantity that must be the smaller one