marginOr function

Requirements.LogicalFunctions.marginOr  · source

Icon of marginOr

Margin of a disjunction: the maximum of the margins whose property is applicable (not Undefined)

Extends Modelica.Icons.Function

Syntax

result = marginOr(m, p);

Description

The margin of or4All(p): the maximum of the margins m[i] over the elements whose property p[i] is applicable (not Undefined) -- disjunction is the maximum in the robustness semantics; see marginAnd. When no element is applicable the result is 0 (the combined property is Undefined then, and a consumer masks the margin with it); no NaN is produced.

Revisions

DateDescription
Sept. 15, 2026Added with the margin outputs (H. Tummescheit, Model Based Innovation LLC)

Inputs

NameTypeDescription
m[…] inputRealMargins
p[…] inputPropertyThe properties the margins belong to

Outputs

NameTypeDescription
result outputRealmax of m[i] over i with p[i] <> Undefined; 0 when no element is applicable