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에서 Direct Search에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!