ContinuousWorst block
Requirements.Internal.ContinuousWorst
ยท source
Worst margin over the decided phases and over the current violation episode, at the local extrema of the margin (used by Verify.ViolationStatistics)
Extends Modelica.Blocks.Math.ContinuousSignalExtrema
The worst margin for Verify.ViolationStatistics with
method = Continuous. It extends
Modelica.Blocks.Math.ContinuousSignalExtrema and
reuses its derivative filter (time constant T, set by ViolationStatistics, default 0.01 s instead of
the base block's 1 µs, see there): a state event at every local extremum of the margin u, without sampling. At
these events, and at every change of the property, it keeps the least margin over the phases in which the property is
decided (worst, tWorst) and over the current violation episode (episodeWorst,
tEpisodeWorst, reset when episode changes). The inherited y_min / y_max
are those of the raw margin, provisional values included.
Unlike the base block, the outputs include the running value between events, so the last value of a run that ends on a
descent counts without terminal().
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 |
|---|---|---|
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 |