functioncardViolated

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

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

Information

Syntax

nViolated = cardViolated(p);

Description

This function returns the number of Violated-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:

nViolated = cardViolated( p )
simulation result

Inputs

TypeNameDefaultDescription
Property[:]pProperty vector

Outputs

TypeNameDefaultDescription
IntegerresultNumber of Property.Violated entries