why every time pso solution changes ??

4 visualizaciones (últimos 30 días)
haritha pindi
haritha pindi el 7 de Jun. de 2019
Respondida: haritha pindi el 25 de Jun. de 2019
Why every time pso solution change ?
I did a program using pso inbuilt code once it wil converge to optimum solution if i run again i wont converge.Based on what parameters its converging how to fix that converging solution using optimoptions.Can any one help me out ?
Even Ga also also iam getting same.

Respuesta aceptada

Walter Roberson
Walter Roberson el 7 de Jun. de 2019
particleswarm and ga both generate locations at random. It is expected that they would produce different answers if you run them twice with the same inputs.
If you need to repeat the exact same result, then use rng() to set the random number seed to the same value before each run.

Más respuestas (1)

haritha pindi
haritha pindi el 25 de Jun. de 2019
Thank you.I will try.Thank you so much for ur help

Categorías

Más información sobre Particle Swarm en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by