exitFlag meaning in GA solver

15 ビュー (過去 30 日間)
Hoang Trinh
Hoang Trinh 2020 年 5 月 13 日
コメント済み: Dyuman Joshi 2023 年 12 月 26 日
Hello everyone,
I just wanna ask a question about the meaning of some extFlags in Genetic Algorithm solver. Not exactly the meaning, I know that it is written clearly in the documentation of this solver. But, which one of the exitFlag is the favorable one, indicating a good set of solutions? For example, when I run the same code 50 times, sometimes the exitFlag is 0, sometimes is -2.
Could someone please clarify this for me?
I would really appreciate your help. and thank you so much in advance.
Cheers,
Kim,

採用された回答

Gifari Zulkarnaen
Gifari Zulkarnaen 2020 年 5 月 13 日
As I know, good solution is when it converges, the change of few last iteration does not improves (exit flag 1, 3). Or when solution meets your specified value (exit flag 5).
And not so good solution is if it stops due to max time/iteration (exit flag 0, -4, -5), means it may not converge. It may gives better solution when you increase those limits. Or when the solution change is smaller than matlab capability (exit flag 4), this means you may need to improve your objective function.
Clearly bad solution is when no solution is found (exit flag -2).
  3 件のコメント
Hoang Trinh
Hoang Trinh 2020 年 5 月 16 日
Thank you so much for your answers. I have better understanding now ^^.
Dyuman Joshi
Dyuman Joshi 2023 年 12 月 26 日
Zhen Li comments
To the answer - "That makes sense"
To Walter's comments - "Concise and concise!"

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by