Error miscalculation in GA model.

I have a genetic algorithm model. It records the optimized variables in every iteration and stores in an array. The array also contains the calculated error for every iteration. Most of the errors match their corresponding variable values, but there are always a few that do not. Why is that? How can I fix it? I have set rng to default for reproducibility. Thank you.

1 件のコメント

Walter Roberson
Walter Roberson 2022 年 10 月 21 日
The values might not match if there is a constraint violation.

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

回答 (0 件)

カテゴリ

製品

リリース

R2022a

質問済み:

2022 年 10 月 20 日

コメント済み:

2022 年 10 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by