MaxIncrease model

Requirements.Examples.Elementary.ChecksInSlidingWindow.MaxIncrease  ยท source

Icon of MaxIncrease

Example for MaxIncrease (in every sliding time window, the increase of the input is limited)

Extends Modelica.Icons.Example

Using sliding time window check block MaxIncrease as

results in

simulation result

The signal is a piecewise linear table: 20 at 0 s, 22.5 at 4 s, 27 at 6 s and 28 from 8 s on. maxIncrease requires that the increase of the input within every sliding window of window = 2 s is at most upperLimit = 3. The slope between 4 s and 6 s (4.5 in 2 s) exceeds the limit, while the slopes before and after it stay below it.

Components and variables

NameTypeDescription
signalModelica.Blocks.Sources.CombiTimeTablePiecewise linear signal rising from 20 to 28 within 8 s
maxIncreaseRequirements.ChecksInSlidingWindow.MaxIncreaseIn every 2 s window, the increase of the signal may be at most 3