Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: computation time of function lsqnonlin
Replies: 12   Last Post: Sep 17, 2013 5:24 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Toan Cao

Posts: 53
Registered: 10/15/10
computation time of function lsqnonlin
Posted: Sep 12, 2013 11:38 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,
I write an objective function in both m-file (fileA1.m) and C mex file (fileA2.c). Given an input to this objective function, computation time in C mex file is 15 times faster than that of m- file. However, when i use the objective function in function lsqnonlin of Matlab, computation time which lsqnonlin gets a optimal solution is almost the same for both files (~101 minutes for C mex file and ~104 minutes for m-file).
I hope when i use C mex file, i will save more time for optimization process, but it is not.
Can you help me explain why lsqnonlin spends almost the same computation time?
I would like to understand more how lsqnonlin of Matlab works to reduce its time?
Thanks in advance!

Toan



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.