How to Find Multiple Minima of Objective Function from Genetic Algorithm?

1 回表示 (過去 30 日間)
Dario Miric
Dario Miric 2022 年 2 月 8 日
編集済み: Matt J 2022 年 2 月 9 日
When using genetic algorithm to find global minimum of objective function, algorithm gives only the best result (smallest value of objective function it found). Is it possible for genetic algorithm to give multiple best local minima it found? In my problem, I would like to get approximately best 100 results and to sort them by the value of objective function.

回答 (1 件)

Matt J
Matt J 2022 年 2 月 9 日
編集済み: Matt J 2022 年 2 月 9 日
You can call ga() with more output arguments to obtain the final population and their scores,
[x,fval,exitflag,output,population,scores] = ga(___)

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by