Could Simbiology simulations have a preload function?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Arthur Goldsipe
2018-8-17
编辑:Arthur Goldsipe
2018-8-17
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Perform Sensitivity Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!