Akzeptierte Antwort

Walter Roberson
Walter Roberson am 21 Dez. 2019

0 Stimmen

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 Kommentare

mahmoud tarek
mahmoud tarek am 21 Dez. 2019
Thank you for your answer
Walter Roberson
Walter Roberson am 21 Dez. 2019
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.
mahmoud tarek
mahmoud tarek am 22 Dez. 2019
I wanted to know if there is any possible way to make multistart vectorized. A change in multistart code itself.is that possible?
Walter Roberson
Walter Roberson am 22 Dez. 2019
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Community Treasure Hunt

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

Start Hunting!

Translated by