사용자 도구

사이트 도구


particle_swarm_optimization

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
particle_swarm_optimization [2019/11/21 17:18] – 만듦 rex8312particle_swarm_optimization [2024/03/23 02:38] (현재) – 바깥 편집 127.0.0.1
줄 59: 줄 59:
         to_particle_best = theta_p * r_p * (self.particle_best - self.particles)         to_particle_best = theta_p * r_p * (self.particle_best - self.particles)
         # 군집이 찾은 최적해에 끌리는 힘         # 군집이 찾은 최적해에 끌리는 힘
-        to_swarm_best = theta_g * r_g * (self.particle_best - self.particles)+        to_swarm_best = theta_g * r_g * (self.swarm_best - self.particles)
         # 속도 갱신         # 속도 갱신
         self.velocity = intertia + to_particle_best + to_swarm_best         self.velocity = intertia + to_particle_best + to_swarm_best
particle_swarm_optimization.1574356689.txt.gz · 마지막으로 수정됨: 2024/03/23 02:37 (바깥 편집)