otfmi.fmi.get_variability

get_variability(model)

Get the variability of the variables.

Parameters:

model : Pyfmi model object (pyfmi.fmi.FMUModelXXX) or path to an FMU.

Returns:

variability : list of int

FMI1: CONSTANT(0), PARAMETER(1), DISCRETE(2), CONTINUOUS(3), UNKNOWN(4)

FMI2: CONSTANT(0), FIXED(1), TUNABLE(2), DISCRETE(3), CONTINUOUS(4), UNKNOWN(5)