blockMaxIncrease
In every sliding time window, the increase of the input is limited
Information
Syntax
increaseLimited = MaxIncrease(window=..., upperLimit=...).y;
Description
In any (sliding) time window of length window, the increase of input u is limited by parameter upperLimit, that is
increase(t) = u(t) - u(t-window)
y(t) = increase(t) ≤ upperLimit
Whenever this property is fulfilled, Boolean output y = true, otherwise y = false:
Hereby it is assumed that u(t-window) = u(t0) for t0 ≤ t < t0 + window, where t0 is the start time of the simulation.
Example
The property is demonstrated with the following example calling the block as:
results in
![]() |
|
| simulation result |
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | window | Length of sliding time window (> 0) | |
| Real | upperLimit | In sliding time window, increase <= upperLimit of input u required |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanOutput | y | = true if increase <= upperLimit | |
| Modelica.Blocks.Interfaces.RealOutput | increase | Increase of the input signal in the sliding time window | |
| Modelica.Blocks.Interfaces.RealInput | u | Real input signal |
