Why does GlobalSearch return different solutions each run?
3 次查看(过去 30 天)
显示 更早的评论
When running the GlobalSearch solver on a nonlinear constrained optimization problem I have, I often get very different solutions each run. For the cases that I have an analytical solution, the numerical results are less dispersed than the non-analytical cases but are still different each run. It would be nice to get the same results at least for these analytical cases so that I know the optimization routine is working properly. Is there a good explanation of this in the Global Optimization Toolbox User Guide that I missed?
Thanks!
0 个评论
回答(1 个)
Matt J
2014-6-11
编辑:Matt J
2014-6-11
It says here that GlobalSearch uses a scatter search mechanism to generate search points. Based on this link, this process appears to involve random number selection. So, I'm guessing the results are not repeatable due to this randomness and the fact that you have lots of capture basins. You could try using the rng command to seed the random number generator in the same way between runs to see if you get repeatability then. Repeatability does not mean, of course, that you are successfully finding the global solution. There is never any way of guaranteeing of that.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Global or Multiple Starting Point Search 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!