I think this is because of some "preload" happening either with MatPower or that Matlab uses. Basically, the first time the code is run there is a cost associated with reading the data and loading it. In the following runs, there is no such "preload" cost.
Shri On Sep 19, 2013, at 11:46 AM, Home Lin wrote: > Dear Dr. Zimmerman and Matpower users, > > I have a question about the running time of runpf and runopf. Say I start > matlab and then runopf(case30) or runpf(case30) continuously for 3 times and > their computation time is t1, t2, t3 > I find that t1 is significantly larger than t2, t3, while t2 is similar to > t3. > > Similar thing happens to larger cases, such as case300, case3120sp. > > Is it because of matlab itself? Does anyone know what is the reason? and > which running time correctly refelect the performance of the solver. > > > Thanks, > Best Regards, > Lin
