cardUndefined function

Requirements.LogicalFunctions.cardUndefined  · source

Icon of cardUndefined

Returns the number of elements of a Property vector that are Undefined

Extends Requirements.Interfaces.PropertyFunction

Syntax

nUndefined = cardUndefined(p);

Description

This function returns the number of Undefined-elements of Property vector p (the elements that are not applicable). Violated, Undecided, Satisfied and Undefined are elements of enumeration Property. The reduction is written over the indices 1:size(p,1) like the other card functions, the form Modelon Impact scalarizes.

Revisions

DateDescription
Sept. 15, 2026Added with the fourth value Undefined (H. Tummescheit, Model Based Innovation LLC)

Inputs

NameTypeDescription
p[…] inputPropertyProperty vector

Outputs

NameTypeDescription
result outputIntegerNumber of Property.Undefined entries