Is paretosearch from the Global Optimization Toolbox deterministic?
Show older comments
Dear MATLAB Community,
I wonder if the paretosearch solver provided by the Global Optimization Toolbox is stochastic or deterministic. In simple words, can the results found with this method differ between different executions?
As far as I know, I would say that the method is deterministic, i.e., the same problem and method configuration return the same result every execution. I think that paretosearch relies on pattern search, which I belieive that is deterministic (please, correct me if I am wrong). Hence, I would say that it is. However, the first example in https://www.mathworks.com/help/gads/paretosearch.html#d126e62423 sets RNG (and says 'for reproducibility').
I have done the following test based on the first example in the referred link:
fun = @(x)[norm(x-[1,2])^2;norm(x+[2,1])^2];
rng default % For reproducibility
x1 = paretosearch(fun,2);
rng(1234);
x2 = paretosearch(fun,2);
rng(5678);
x3 = paretosearch(fun,2);
isequal(x1, x2)
isequal(x1, x3)
isequal(x2, x3)
So, it seems deterministc. Nonetheless, I could have been extremely lucky (or the problem might be too easy for the solver and it is converging perfectly). This is the reason I would like to know if paretosearch is formally deterministic or not.
Thank you very much in advance for your time!
Accepted Answer
More Answers (0)
Categories
Find more on Multiobjective Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!