controllab / fmi-export-20sim

FMI export code generation template for 20-sim
GNU General Public License v3.0
3 stars 4 forks source link

Initial equations cannot influence initial states. #32

Closed LordTy closed 7 years ago

LordTy commented 7 years ago

As the initial states of a model ar set in the ModelInitialize function, which is called before initialEquations, it is not possible to influence a model by changing the parameters via FMI, as this would invalidate the initial state.

A possible fix would be to set the initial states again after the initialEquations have been executed.