using MaximumWallClock in a loop
2 次查看(过去 30 天)
显示 更早的评论
I run many simulations in a loop (global sensitivity analysis) and would like to terminate stuck simulations by setting 'MaximumWallClock' (there parameter sets which make a model stiff and difficult to solve).
Is there a build in way to flag simulations terminated in such way?
The reason for this is that I need to discard those results because it would falsify the analysis outcome.
0 个评论
采纳的回答
Sietse Braakman
2020-2-25
There is no built-in flag but you could exclude any simulation for which the final time step does not equal your stop-time. Let me know if that answers your question.
更多回答(1 个)
Sietse Braakman
2020-2-26
I am not sure I understand what you mean by "EndTime". There are two things we need to separate here: the wall clock time (the actual time it takes to simulate your model) and the simulation time (the virtual time you would like to simulate your model for, e.g. 14 days with daily dosing). With StopTime, I meant the StopTime in the configuration set that determines the simulation time, (and not the wall clock time). What I think is happening, is that you reduced the StopTime, which reduces the time it takes to simulate your model to less than the MaximumWallClock time.
社区
更多回答在 SimBiology Community
另请参阅
类别
在 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!