ContinuousWorst block

Requirements.Internal.ContinuousWorst  ยท source

Icon of ContinuousWorst

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

NameTypeDescription
decided inputBoolean= true while the property is Satisfied or Violated
violated inputBoolean= true while the property is Violated
episode inputIntegerNumber of violation episodes started; a change starts a new episode

Components and variables

NameTypeDescription
worstModelica.Blocks.Interfaces.RealOutputLeast margin over the decided phases (0 before the property is first decided)
tWorstModelica.Blocks.Interfaces.RealOutputInstant of worst
episodeWorstModelica.Blocks.Interfaces.RealOutputLeast margin of the current (or last) violation episode (0 before the first episode)
tEpisodeWorstModelica.Blocks.Interfaces.RealOutputInstant of episodeWorst