Levels model
Requirements.Examples.Uncertainty.Levels
· source
Constant levels against 'u <= 8' with uncertainty intervals: certainly satisfied, certainly violated, in band on either side, asymmetric, zero width, no band
Extends Modelica.Icons.Example
Nine constant levels against u ≤ 8, each with an uncertainty interval [u − uL, u + uU], through
During with useUncertainty = true,
rhoLow = 8 − (u + uU) and rhoHigh = 8 − (u − uL):
| i | u | uL | uU | verdict | inBand | why |
|---|---|---|---|---|---|---|
| 1 | 6 | 1 | 1 | satisfied | false | 7 ≤ 8: certainly satisfied |
| 2 | 10 | 1 | 1 | violated | false | 9 > 8: certainly violated |
| 3 | 7.5 | 1 | 1 | satisfied | true | up to 8.5: could fail |
| 4 | 8.5 | 1 | 1 | violated | true | down to 7.5: could pass |
| 5 | 8 | 0 | 0 | satisfied | false | zero width on the limit: the closed boundary, certain |
| 6 | 7.5 | 0 | 0.4 | satisfied | false | up to 7.9 only (asymmetric) |
| 7 | 7.5 | 0 | 0.6 | satisfied | true | up to 8.1 |
| 8 | 8.5 | 0.4 | 0 | violated | false | down to 8.1 only |
| 9 | 8.5 | 0.6 | 0 | violated | true | down to 7.9 |
The verdicts, the bands and the unchanged margins (8 − u) are asserted. plain has
useUncertainty = false: no output inBand, and its verdict and margin are what they were before 0.19.0.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Parameters
| Name | Type | Description |
|---|---|---|
limit parameter | Real | The upper limit |
u[…] parameter | Real | The checked values (nominal) |
uL[…] parameter | Real | The lower half-widths of their intervals |
uU[…] parameter | Real | The upper half-widths |
satisfied[…] parameter | Boolean | The nominal verdicts |
band[…] parameter | Boolean | The expected bands |
Components and variables
| Name | Type | Description |
|---|---|---|
always | Requirements.Sources.BooleanConstant | Condition that is always true, so that the checks are active over the whole run |
check[…] | Requirements.ChecksInFixedWindow.During | u[i] <= 8 with the interval [u - uL, u + uU] |
plain | Requirements.ChecksInFixedWindow.During | useUncertainty = false: no output inBand, the block as before 0.19.0 |