marginOr function
Requirements.LogicalFunctions.marginOr
· source
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
| Date | Description |
|---|---|
| Sept. 15, 2026 | Added with the margin outputs (H. Tummescheit, Model Based Innovation LLC) |
Inputs
| Name | Type | Description |
|---|---|---|
m[…] input | Real | Margins |
p[…] input | Property | The properties the margins belong to |
Outputs
| Name | Type | Description |
|---|---|---|
result output | Real | max of m[i] over i with p[i] <> Undefined; 0 when no element is applicable |