functioncardSatisfied

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

Extends from Modelica_Requirements.Interfaces.PropertyFunction (Icon for functions returning a variable of type Property).

Information

Syntax

nSatisfied = cardSatisfied(p);

Description

This function returns the number of Satisfied-elements of Property vector p.

Violated, Undecided, and Satisfied are elements of enumeration Property.

Example

This function is demonstrated with the following example calling the function as:

nSatisfied = cardSatisfied( p )
simulation result

Inputs

TypeNameDefaultDescription
Property[:]pProperty vector

Outputs

TypeNameDefaultDescription
IntegerresultNumber of Property.Satisfied entries