Could Simbiology simulations have a preload function?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
In Simulink, one can write preload scripts that run upon opening a model or upon any number of other actions.
In Simbiology we have the option to have many tasks associated with a model, but (to my knowledge) we do not have preload functions. We DO have variants that we can apply to a Simulation, but Variants cannot turn rules on or off.
This is a huge gap. If I have a model that I run under two scenarios (for example, autonomous/ODE-calculated blood sugar, and blood sugar that is forced to follow a dataset, perhaps using splines) and those two scenarios are determined by rules (either the ODE rule is active and the forced rule is inactive, or vice versa), and I want to compare runs under both scenarios, I have to manually switch the flags on the model. And if I forget, the model results are wrong - with no error flag.
I'd very much like to see either Variants have control over rules being active AND/OR simulation tasks having a preload function (a postload wouldn't be bad either, to allow plotting of values calculated outside of the model).
Any plans for these functions? Or are they in the app, and I'm just missing them.
0 Commenti
Risposte (1)
Arthur Goldsipe
il 17 Ago 2018
Modificato: Arthur Goldsipe
il 17 Ago 2018
Hi Jim,
You're not overlooking any functionality. I agree that these would be useful enhancements. I work primarily from functions and scripts at the command line. I had the same challenges remembering to activate and deactivate rules when running different scenarios for the insulin demo I created.
Rest assured that this is on the team's radar. I don't know how soon you will see a solution though. Would you consider this one of the highest priorities for you? Or are there other things you can think of that would be a higher priority?
-Arthur
Vedere anche
Categorie
Scopri di più su Perform Sensitivity Analysis in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!