-
Filter by Topic
Most Popular
All Topics
- List all discussions
How to keep Matlab function going on after non-convergence?
|
Thread index | Previous thread | Next thread | Start a new discussion |
December 15, 2011 12:49pm UTC
How to keep Matlab function going on after non-convergence?
I'm using Matlab to run a series of automated simulations. Each simulation has a slightly different geometry (there is no topological change). Some of these simulations don't converge, which is fine. The problem is that when one of them don't converge the function stops and all following simulations are not executed.
I want the Matlab function to continue, even if one of the simulations stops. For example: let's say I have the simulations A, B, C and D to run. I create a Matlab function that runs all of them, one at a time in the alphabetical order. But if B doesn't converge the function stops, C and D are not calculated. I want it to just save B as it is (with the error) and go on to simulate C and D.
Does someone know how to avoid the Matlab function to stop when the model doesn't reach convergence?
Reply | Reply with Quote | Send private message | Report Abuse
Rules and guidelines

