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: Stop fsolve; keep result
Replies: 2   Last Post: Nov 20, 2012 2:22 PM

Advanced Search

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

Posts: 33
Registered: 10/4/11
Re: Stop fsolve; keep result
Posted: Nov 20, 2012 2:22 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thanks for the update. I figured it might not be possible, but wanted to check if there was some hope. It is, indeed, frustrating (official MATLAB people take note).


Alan_Weiss <aweiss@mathworks.com> wrote in message <k8gjkj$fsd$1@newscl01ah.mathworks.com>...
> On 11/20/2012 12:21 PM, Cory wrote:
> > Hi MATLABers,
> >
> > I'm running fsolve on a big problem with mixed results. After a week
> > or so of computation, I'd like to interrupt the code and just report
> > whatever results I have so far. However, I'm not sure how to stop
> > fsolve while maintaining access to the last point tried (e.g. by using
> > Ctrl+C). Is there a way to do this?
> >
> > Thanks,
> > Cory

> I am very sorry to say that I know of no way to do this. I know, it is
> frustrating.
> Next time, you can prepare for this before you call fsolve:
> * Have an output function checkpoint your intermediate results to a
> file, or to the workspace
> * Use a plot function to show some results, such as the current point
> (@optimplotx)
> Good luck,
> Alan Weiss
> MATLAB mathematical toolbox documentation

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

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.