MATLAB desktop freezes while parallel computing

2 views (last 30 days)
I'm running an optimization algorithm that takes quite some time to run (about 24 hours). The algorithm runs about 10000 iterations in parallel (7 workers on a quad-core multi-thread CPU) and prints out the results before repeating the process for the next generation.
Sometimes the algorithm runs smoothly and I can scroll up/down to check its progress along the generations and sometimes MATLAB's desktop freezes and I can't interact with it at all. The code is still running as it keeps printing out results after each generation, I just can't interact with the MATLAB desktop.
My solution for it so far has been killing one of the parallel processes from Window's task manager. This way MATLAB loses connection to one of the workers and becomes responsive again. I have no idea why this happens. What could be causing it?
My code is very long to post here but if you point me in the right direction I could post some relevant excerpts.

Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!