System.set_var_arrays#

System.set_var_arrays(models, inplace=True, alloc=True)[source]#

Set arrays (v and e) for internal variables to access dae arrays in place.

This function needs to be called after de-serializing a System object, where the internal variables are incorrectly assigned new memory.

Parameters
modelsOrderedDict, list, Model, optional

Models to execute.

inplacebool

True to retrieve arrays that share memory with dae

allocbool

True to allocate for arrays internally