-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From OpenModelica.jl to MTK.jl #32
Comments
Hi! ModelingToolkit is imported in the backend. (See MTK_Codegeneration.jl) Yes, the documentation is currently lacking, some basic options are provided in the readme. I have provided a script that shows how to do it, see: However, I discovered two bugs with this model (In the compiler). The first is that it seems that OMBackend does not handle start bindings for parameter variables. The second is that there seems to be an issue with reordering the state variables. I implemented my own solution for this, but for some reason, it is flaky in this example. I will make two separate issues trying to solve this Kind Regards, |
You are welcome to use this model as a test. It will open new horizons toward DAE economic systems and there would be many interesting examples/applications in Julia to follow. |
ModelA1.zip Based on a slightly modified variant of your previous model:
There seem to be an issue in MTK on how to represent the system where the result of a state variable is an algebraic variable. I will make an issue over there and check it out further. A new version of the backend supporting this model here will soon be added |
I saw your video about OpenModelica.jl, now OM.jl, and the conversion to MTK using OMBackend.jl. When I look at OMBackend here, I no longer see any mention of MTK.
I would like to convert economic models like this ModelA1.mo prototype
ModelA1.zip into MTK to continue investigations into the SciML ecosystem in Julia.
Please indicate the way to proceed.
The text was updated successfully, but these errors were encountered: