GA duplicate data points in the same solution of the population of matlab

2 ビュー (過去 30 日間)
Mohammad Al ja'idi
Mohammad Al ja'idi 2019 年 7 月 1 日
回答済み: Star Strider 2019 年 7 月 1 日
Hello all,
After running the Genetic Algorithm I got the final x values with duplicate data points as shown below:
Optimization terminated: maximum number of generations exceeded.
x =
5 5 5
fval =
6
how can i configure the genetic Algorithm to remove the duplication in the data points of the final solution x, knowing that I set the initial population as shown below:
initial_pop= [1 2 3
1 2 4
1 2 5
1 3 4
1 3 5
1 4 5
2 3 4
2 3 5
2 4 5
3 4 5];
your help is highly appreciated

回答 (1 件)

Star Strider
Star Strider 2019 年 7 月 1 日
The result depends on your fitness function, and any constraints you have. Since you did not post your fitness function or your ga call, we cannot determine if there are problems.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by