Optimisation algorithm ga and fmincon
Show older comments
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 Comments
Athul Prakash
on 3 Apr 2020
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
on 6 Apr 2020
Accepted Answer
More Answers (0)
Categories
Find more on Global or Multiple Starting Point Search 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!
