ga output more solutions

Dear All,
I am using optimtool(ga) to optimize a function and I am wondering if there is an option to output not only the best solution (lowest fitness) but more than one with the lowest fitness.
Thanks, Chris

回答 (1 件)

Alan Weiss
Alan Weiss 2012 年 8 月 14 日

0 投票

You can report the fitness values at any number of points that GA examined by using an output function.
Alan Weiss
MATLAB mathematical toolbox documentation

1 件のコメント

Walter Roberson
Walter Roberson 2012 年 8 月 14 日
I think the question is about how to find additional locations at which the solution is also the minima... but I am not sure of that interpretation.
Depending on the shape of the function, it could be the case that while evaluating it will happen to find multiple locations that match the same minima (if the valleys are "close" together.) Or with other functions, the minima might be some distance apart, in which case it might be a matter of restarting the entire ga() with different initial random locations.

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

タグ

質問済み:

2012 年 8 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by