worstMargin function
Requirements.LinearAnalysis.worstMargin
· source
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
| Name | Type | Description |
|---|---|---|
p[…] input | Property | The property per mode |
m[…] input | Real | The margin per mode |
Outputs
| Name | Type | Description |
|---|---|---|
worst output | Real | The least margin over the decided modes (0 if none is decided) |