필터 지우기
필터 지우기

GA model is not reproducible.

조회 수: 3 (최근 30일)
Yuandong Wang
Yuandong Wang 2022년 10월 20일
답변: Alex Hanes 2022년 10월 24일
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.

답변 (1개)

Alex Hanes
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

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by