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
| Type | Name | Default | Description |
|---|---|---|---|
| Property[:] | p | Property vector |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | result | Number of Property.Satisfied entries |
