Optimisation algorithm ga and fmincon
이전 댓글 표시
Hey
I have an optimisation problem and I solve it by using fmincon & ga but the results are different. Is it possible to get different results based on the function used? and if yes why?
댓글 수: 2
Athul Prakash
2020년 4월 3일
Hi Hebi,
These algorithms search the solution space in entirely different ways: fmincon is a gradient-based approach whereas ga uses ideas like mutation and crossover to find the optimum. In general, every optimization algorithm has its own unique approach which would lead to different results when you compare solutions found by different algorithms. Furthermore, how good each algorithm works for you and which one performs best overall depends mostly on the nature of your objective function.
Please have a look at this doc to see all the optimization algorthms you can deploy, and to better understand how they stack up against each other:
In your case, if the solutions found are very different, I suspect that one of the 2 algorithms you tried has found a local minimum and got stuck there (likely to be fmincon).
Good Luck
R Hebi
2020년 4월 6일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 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!

