- Function IdentifierDimension(identifierName)
IdentifierDimension
The function IdentifierDimension
returns the data dimension of
identifierName
.
IdentifierDimension(
identifierName) ! (input) scalar element parameter
Arguments
- identifierName
An element expression in the predefined set
AllIdentifiers
specifying the identifier for which the dimension should be obtained.
Return Value
This function returns a non-negative integer. If
identifierName
is not an identifier, an error message is issued. IfidentifierName
is not an indexed parameter, variable or constraint, a 0 is returned without further warning.
Note
This function replaces the deprecated suffix .dim.
See also
The functions
DomainIndex
andIndexRange
.Working with the Set AllIdentifiers of the Language Reference.
The common example in Listing 1.