SlidingIncrease model
Requirements.Examples.Elementary.Margin.SlidingIncrease
ยท source
A ramp against MaxIncrease: the margin is upperLimit - increase, with increase = min(t, window) in closed form
Extends Modelica.Icons.Example
A ramp of 1 per second against MaxIncrease(window = 2, upperLimit = 3): the increase over the
window is t while the window still reaches back to the start (u(t − window) = u(0) there) and
2 from t = 2 s on, so the margin is 3 − min(t, 2), asserted to 1e-3 (the delayed signal is
interpolated). Satisfied throughout with one unit of headroom. The sliding-window checks with a buffer
(SlidingWindow.push) carry the same margin output; this example uses the one block of
the family that has no buffer (which was, until October 2026, the one OpenModelica built).
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Components and variables
| Name | Type | Description |
|---|---|---|
u | Modelica.Blocks.Sources.Ramp | u = 20 + t |
maxIncrease | Requirements.ChecksInSlidingWindow.MaxIncrease | In every 2 s window, the increase of u may be at most 3 |