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.

 Respuesta aceptada

Steven Lord
Steven Lord el 19 de Sept. de 2019

0 votos

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

4 comentarios

shane watson
shane watson el 20 de Sept. de 2019
@Steven it doesnot show any controlling factor of the the aglorithm instead only shows how to generate random values.
Walter Roberson
Walter Roberson el 20 de Sept. de 2019
Expand the "Define generator parameters" section to find
rng Control random number generation
Stephen23
Stephen23 el 20 de Sept. de 2019
Editada: Stephen23 el 20 de Sept. de 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:

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Versión

R2018b

Etiquetas

Preguntada:

el 19 de Sept. de 2019

Comentada:

el 7 de Oct. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by