How to speed up or parallelise multiple calls to lsqcurvefit

9 vues (au cours des 30 derniers jours)
Nathan Bush
Nathan Bush le 21 Juin 2019
Commenté : Nathan Bush le 21 Juin 2019
I have some code that has to run lsqcurvefit multiple times on different datasets. Typically I have around 20,000-50,000 datasets that all require independant fitting. Is there any way to speed the process up by e.g. splitting the work across multiple threads?
I've tried the basic tools in the parallelisation toolbox but did not notice any speed difference.
  4 commentaires
Matt J
Matt J le 21 Juin 2019
And how does that utiltization change when you use Parallel Computing Toolbox? And how were you using the toolbox? With parfor?
Nathan Bush
Nathan Bush le 21 Juin 2019
Thanks for the help. The utilisation was pretty much the same, an the execution time was only a few % better. Yes - it was a simple parfor execution, and I didn't change any of the settings. I checked in preferences that Matlab was using the correct number of workers (8) and it seemed ok.

Connectez-vous pour commenter.

Réponses (1)

Matt J
Matt J le 21 Juin 2019

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by