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: MATLAB R2011a code for LineSearch
Replies: 3   Last Post: Jul 16, 2013 5:14 PM

Advanced Search

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

Posts: 5
Registered: 7/15/13
MATLAB R2011a code for LineSearch
Posted: Jul 15, 2013 10:43 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I need to see the code of matlab built in function named lineSearch. I know for sure it was accessible in 2011 version but has been hidden (into a .p file which is probably compiled as i only see strange characters in it).

I need this file because i am running an experiment, in which this function is called a few thousand times from fminunc(). Rarely this function fails with the error that search direction does not reduce the function value and after raising an exception the execution stops. So i edited the code to not raise an exception but return the exitflag as -2. I mean what the exit flag is for if exceptions are being raised? I cannot afford a halt of execution. Please help. I want to copy paste that code, into a linesearch_editted().



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.