RatchetWorst block
Requirements.Internal.RatchetWorst
ยท source
Worst margin over the decided phases and over the current violation episode, at every new low by more than resolution (used by Verify.ViolationStatistics)
Extends Modelica.Blocks.Icons.Block
The worst margin for Verify.ViolationStatistics with
method = Ratchet: a state event only when the margin falls more than resolution below the least
value found so far (over the decided phases, and over the current violation episode). The value kept is within
resolution of the true minimum; the number of events is bounded by the depth of the descent divided by
resolution, however often the margin oscillates. The outputs include the running value between events,
as in ContinuousWorst.
Parameters
| Name | Type | Description |
|---|---|---|
resolution parameter | Real | Resolution of the worst margin, in margin units (tolerances) |
Inputs
| Name | Type | Description |
|---|---|---|
decided input | Boolean | = true while the property is Satisfied or Violated |
violated input | Boolean | = true while the property is Violated |
episode input | Integer | Number of violation episodes started; a change starts a new episode |
Components and variables
| Name | Type | Description |
|---|---|---|
u | Modelica.Blocks.Interfaces.RealInput | Margin |
worst | Modelica.Blocks.Interfaces.RealOutput | Least margin over the decided phases (0 before the property is first decided) |
tWorst | Modelica.Blocks.Interfaces.RealOutput | Instant of worst |
episodeWorst | Modelica.Blocks.Interfaces.RealOutput | Least margin of the current (or last) violation episode (0 before the first episode) |
tEpisodeWorst | Modelica.Blocks.Interfaces.RealOutput | Instant of episodeWorst |