GA model is not reproducible.
4 ビュー (過去 30 日間)
古いコメントを表示
I have a genetic algorithm model. It has set rng to default for reproducibility and records every generation it runs. The resulting output array, however, are always a little different every time. Why is that? What can I do to get the exact same output array every time? Thank you.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1163818/image.png)
0 件のコメント
回答 (1 件)
Alex Hanes
2022 年 10 月 24 日
Your function tolerance is smaller than numerical precision by 14-15 orders of magnitude. See eps function in MATLAB for double precision.
How different are the results? You should also work with data that has values on the order of unity so that round off errors are not as significant
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!