worstMargin function

Requirements.LinearAnalysis.worstMargin  · source

Icon of worstMargin

The least margin over the decided modes (-inf where a violated mode has none, 0 when no mode is decided)

Extends Modelica.Icons.Function

Returns the smallest margin m[k] over the modes whose property p[k] is decided (Satisfied or Violated); modes with an Undefined or Undecided property (outside the band, beyond the number of modes, below the effective-mass fraction) are ignored. If no mode is decided, the result is 0. A violated mode with no finite margin (-inf from marginPerMode) makes the result -inf. The check blocks EigenvalueCheck, EigenvaluesWithinRegion, ModeTableCheck and ModesWithinRegion divide the result by their scale to obtain the normalized margin output.

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Inputs

NameTypeDescription
p[…] inputPropertyThe property per mode
m[…] inputRealThe margin per mode

Outputs

NameTypeDescription
worst outputRealThe least margin over the decided modes (0 if none is decided)