MATLAB Answers

0

How to control the randomness of algorithm

Asked by shane watson on 19 Sep 2019 at 7:26
Latest activity Commented on by shane watson on 7 Oct 2019 at 9:36
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.

Tags

Products


Release

R2018b

1 Answer

Answer by Steven Lord
on 19 Sep 2019 at 14:03
 Accepted Answer

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

  4 Comments

Show 1 older comment
Expand the "Define generator parameters" section to find
rng Control random number generation
" 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.