Can MultiStart be modified to be vectorized like GeneticAlgorithm?

 채택된 답변

Walter Roberson
Walter Roberson 2019년 12월 21일

0 개 추천

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

mahmoud tarek
mahmoud tarek 2019년 12월 21일
Thank you for your answer
Walter Roberson
Walter Roberson 2019년 12월 21일
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 2019년 12월 22일
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 2019년 12월 22일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

카테고리

질문:

2019년 12월 21일

답변:

2019년 12월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by