How to control the randomness of algorithm

Currently, I'm working on algorithm (optimization), as such GA, AC are generating random values therefore, everytime when I see the results its different from the previous, is there any way to controll the randomness and I can get same reults as I run simulations.

 採用された回答

Steven Lord
Steven Lord 2019 年 9 月 19 日

0 投票

See the three topics in the "Control Random Number Generation" section on this documentation page.

4 件のコメント

shane watson
shane watson 2019 年 9 月 20 日
@Steven it doesnot show any controlling factor of the the aglorithm instead only shows how to generate random values.
Walter Roberson
Walter Roberson 2019 年 9 月 20 日
Expand the "Define generator parameters" section to find
rng Control random number generation
Stephen23
Stephen23 2019 年 9 月 20 日
編集済み: Stephen23 2019 年 9 月 20 日
" it doesnot show any controlling factor of the the aglorithm..."
Read the three linked pages in the "Control Random Number Generation" section, exactly as Steven Lord wrote. Here is that section of the page that Steven Lord referred you to:
shane watson
shane watson 2019 年 10 月 7 日

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

リリース

R2018b

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by