why every time pso solution changes ??

조회 수: 10 (최근 30일)
haritha pindi
haritha pindi 2019년 6월 7일
답변: haritha pindi 2019년 6월 25일
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.

채택된 답변

Walter Roberson
Walter Roberson 2019년 6월 7일
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.

추가 답변 (1개)

haritha pindi
haritha pindi 2019년 6월 25일
Thank you.I will try.Thank you so much for ur help

카테고리

Help CenterFile Exchange에서 Particle Swarm에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by