Can MultiStart be vectorized ?

 Risposta accettata

Walter Roberson
Walter Roberson il 21 Dic 2019

0 voti

No, but you can add the 'UseParallel', true option, which it will pass on the the solver. Some solvers can make use of that; for example, fmincon can do the finite differencing in parallel (but not much else)

4 Commenti

Thank you for your answer
I see that you unaccepted my answer on the grounds that it does not work. However I correctly identified the only available multiple computation option, https://www.mathworks.com/help/gads/example-parallel-multistart.html and I also correctly identified the limitations that the effects are determined by the individual solvers which will not necessarily do nearly as much as as one might hope with the option.
Could you explain further what more you need from the answer?
By the way, Mathworks staff are on record as indicating that parallel processing was partly written for ga() but was not completed and does not currently do anything. I was a bit surprised to see that as it looked pretty complete when I read through the code.
I wanted to know if there is any possible way to make multistart vectorized. A change in multistart code itself.is that possible?
The running of the solvers is done by constructing a number of starting points, and then calling fmultistart() passing in the problem description and cell arrays of starting points.
Unfortunately, fmultistart is toolbox/globaloptim/globaloptim/private/fmultistart.p -- that is, code is not available for it, so it cannot be modified.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by