Path: news.mathworks.com!not-for-mail
From: "Toan Cao" <toancv3010@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: computation time of function lsqnonlin
Date: Mon, 16 Sep 2013 16:52:06 +0000 (UTC)
Organization: &#50872;&#49328;&#45824;&#54617;&#44368;
Lines: 24
Message-ID: <l17cvm$558$1@newscl01ah.mathworks.com>
References: <l0u1au$ei4$1@newscl01ah.mathworks.com> <l0v783$po$1@newscl01ah.mathworks.com> <l0v8n7$so5$1@newscl01ah.mathworks.com> <l0vn9q$8pp$1@newscl01ah.mathworks.com> <l0vnuf$kp5$1@newscl01ah.mathworks.com> <l11tt6$c0q$1@newscl01ah.mathworks.com> <l17906$ac5$1@newscl01ah.mathworks.com>
Reply-To: "Toan Cao" <toancv3010@gmail.com>
NNTP-Posting-Host: rubyext-01-ls.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1379350326 5288 172.20.102.177 (16 Sep 2013 16:52:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 16 Sep 2013 16:52:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2244433
Xref: news.mathworks.com comp.soft-sys.matlab:802512

"Eric Sampson" wrote in message <l17906$ac5$1@newscl01ah.mathworks.com>...
> "Toan Cao" <toancv3010@gmail.com> wrote in message <l11tt6$c0q$1@newscl01ah.mathworks.com>...
> > > 
> > > What about the profiler report? Can you post the profiler report for top 10 self-time for functions and how many times they are called? 
> > 
> > Hi Rakesh,
> > Here my profiler when i run two optimization processes, where testCM is m-file storing program of optimization, the object function in m-file is MydeformfuncSub7Ext, and in C mex file is MydeformfuncSub7ExtC.
> > Profiler of optimzation using m-file: 
> > http://i906.photobucket.com/albums/ac264/toancv3010/Mtime_zps92ae907a.jpg
> > Profiler of optimzation using C mexfile: 
> > http://i906.photobucket.com/albums/ac264/toancv3010/Ctime_zpsbbbc5fb3.jpg
> > As seen, subfunction LevenbergMarquardt  consumes almost time of optimization process.
> > Is there any solution to reduce computation time for LevenbergMarquardt ?
> > 
> > Toan
> 
> Can you post some more images from clicking on the Profiler report for the LevenbergMarquardt.m function, and its slowest lines/function calls/etc? Maybe there is a way to speed it up.

Hi Eric Sampson,
here is spending time of levenberg-marquardt function:
http://i906.photobucket.com/albums/ac264/toancv3010/levenbergTime_zps2f500238.jpg
I hope to receive some comments from you. Thank you.

Toan