RatchetWorst block

Requirements.Internal.RatchetWorst  ยท source

Icon of RatchetWorst

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

NameTypeDescription
resolution parameterRealResolution of the worst margin, in margin units (tolerances)

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
uModelica.Blocks.Interfaces.RealInputMargin
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