parsim in parfor loop
조회 수: 5 (최근 30일)
이전 댓글 표시
I have to run thousands of simulations which base on the same simulink model and I'm trying to shorten the runtime. Some of them vary only in variable values, so I run them using parsim. Above it, there are two forloops, whose purpose is to change the model by commenting/uncommenting some blocks. A simplificatio of the concept in the picture.
Will it shorten the runtime if I use parfors instead of fors?
(Does a parfor over parsim change anything? Do I get parallelization on both levels? Or just once?)
for...
%commenting/uncommenting blocks
for...
%commenting/uncommenting blocks
parsim
end
end
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Run Multiple Simulations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!