Execution time variations in simulating same model repeatedely

조회 수: 1 (최근 30일)
Abhijit
Abhijit 2013년 11월 13일
댓글: Abhijit 2013년 11월 13일
When I simulate a model over and over again, why do I get different execution time. For example, in the following code I am grabbing the simulation time and for my model I see a wide variation of simulation executed time [ varies from 0.70 to 1.01 min]. I am trying to understand where the randomness / variations is coming from?
for i = 1:100
ts = tic;
sim(mymodel)
tf = toc(ts);
end
  댓글 수: 2
Doug Hull
Doug Hull 2013년 11월 13일
What is in the model? Any random variables, network dependencies? Why does this matter?
Abhijit
Abhijit 2013년 11월 13일
Its a deterministic model and without any network dependencies.
This matters when you are doing millions of simulation.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by