why every time pso solution changes ??
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
haritha pindi
le 7 Juin 2019
Réponse apportée : haritha pindi
le 25 Juin 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.
0 commentaires
Réponse acceptée
Walter Roberson
le 7 Juin 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.
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Particle Swarm dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!