sdu-cfei / modest-py

FMI-compliant Model Estimation in Python
BSD 2-Clause "Simplified" License
48 stars 11 forks source link

Catch an exception from FMU if solver failed and continue estimation #68

Open krzysztofarendt opened 3 years ago

krzysztofarendt commented 3 years ago

Currently, when the FMU solver fails the estimation stops. FMU solver sometimes fails only for certain sets of parameters . The estimation could discard these parameters and continue the estimation.

For this to work, we would have to add Exception handling to the optimization algorithms, e.g. https://github.com/krzysztofarendt/modestga

In addtion, this feature would depend on the correct elevation of FMU exceptions to Python in the FMU backend (currently FMPy).

krzysztofarendt commented 3 years ago

Related issue in ModestGA: https://github.com/krzysztofarendt/modestga/issues/39

krzysztofarendt commented 3 years ago

Issue solved in ModestGA. Ready for testing.

krzysztofarendt commented 3 years ago

FMU needs reinitialization after a failed simulation.

krzysztofarendt commented 3 years ago

This issue is being solved in branch: https://github.com/sdu-cfei/modest-py/tree/issue68/fmu-reinit

krzysztofarendt commented 3 years ago

Related PR: https://github.com/sdu-cfei/modest-py/pull/69