Could Simbiology simulations have a preload function?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Arthur Goldsipe
am 17 Aug. 2018
Bearbeitet: Arthur Goldsipe
am 17 Aug. 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
1 Kommentar
Siehe auch
Kategorien
Mehr zu Perform Sensitivity Analysis finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!