Execution time variations in simulating same model repeatedely

1 Ansicht (letzte 30 Tage)
Abhijit
Abhijit am 13 Nov. 2013
Kommentiert: Abhijit am 13 Nov. 2013
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 Kommentare
Doug Hull
Doug Hull am 13 Nov. 2013
What is in the model? Any random variables, network dependencies? Why does this matter?
Abhijit
Abhijit am 13 Nov. 2013
Its a deterministic model and without any network dependencies.
This matters when you are doing millions of simulation.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Modeling 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!

Translated by