Automatic generation of SimBiology code from GUI
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Abed Alnaif
el 24 de Jun. de 2022
Respondida: Arthur Goldsipe
el 27 de Jun. de 2022
Hello,
I have a structural model in the SimBiology GUI for which I'd like to use as a template to automate model development. I plan to do this by writing code that will build the model automatically, using functions such as addparameter, addreaction, etc. To help me do this, I was wondering whether there's a way to automatically generate this code, given that I already have a template model in the GUI?
Thank you,
Abed
2 comentarios
Sietse Braakman
el 24 de Jun. de 2022
Hi Abed,
Some of this functionality was added to 2022a, see the release notes. The model builder app is now able to generate code. However, this does require you to build the model from scratch while capturing the code.
Alternatively, you could write code that traverses your model object (i.e. go through every compartment, look at its children species/compartments etc, add all reactions and parameters) and creates each of those objects as code.
Best,
Sietse
Respuesta aceptada
Arthur Goldsipe
el 27 de Jun. de 2022
There is not currently any shipping functionality to do this. However, this is something we've been thinking about for a future release. I even have a working prototype that I'm trying to get feedback on. I'll reach out via email to see if that could help you.
0 comentarios
Más respuestas (0)
Comunidades de usuarios
Más respuestas en SimBiology Community
Ver también
Categorías
Más información sobre Perform Sensitivity Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!