MATLAB Answers

How to control the randomness of algorithm

3 views (last 30 days)
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.

  0 Comments

Sign in to comment.

Accepted Answer

Steven Lord
Steven Lord on 19 Sep 2019
See the three topics in the "Control Random Number Generation" section on this documentation page.

  4 Comments

Show 1 older comment
Walter Roberson
Walter Roberson on 20 Sep 2019
Expand the "Define generator parameters" section to find
rng Control random number generation
Stephen Cobeldick
Stephen Cobeldick on 20 Sep 2019
" 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:

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

Products


Release

R2018b