In PSO, the potential solutions, called particles, are initialized at random positions, and then move within the parameter search space...">
Home » Source Code » Particle Swarm Optimization algorithm (C++ version vs2013) Particle Swarm Optimization

Particle Swarm Optimization algorithm (C++ version vs2013) Particle Swarm Optimization

liqingchao
2016-06-15 23:20:54
The author
View(s):
Download(s): 0
Point (s): 1 

Description

family:Arial;font-size:14px;background-color:#FFFFFF;">  In PSO, the potential solutions, called particles, are initialized at random positions, and then move within the parameter search space. The particles are subject to three forces as they move:

1.Spring force towards the personal best position, p, ever achieved by that individual particle

2.Spring force towards the global best position, g, ever achieved by any particle.

3.A frictional force, proportional to the velocity.

 

The algorithm then follows these steps

1.Set the number of particles N and initialize the positions x

2.Evaluate figures of merit (FOM) and find p and g

3.Calculate the new velocities v for each particle based on the forces applied to the particle

      (1)

4.Update the positions x of each particle based on the velocity

        (2)

5.Repeat from step 2 until convergence is achieved

 

In Eq. (1), t is the iteration counter; c1 and c2 are the cognitive and social factors, respectively; ω is called the inertial weight; and η1 and η2 are random number between 0 and 1. Lumerical's PSO implementation uses default values of c1, c2 and ω that have shown to converge well in many test optimization problems for photonic design problems. A detailed description of the algorithm and the difference coefficients can be found in Refs. [1] or [2].


Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
0.00 B
Sponsored links

Comments

(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
veileno
2017-02-21

仿真需要,用来测试一下速度如何。这个是C++写的吧。

我也叫豆豆0
2017-03-26

萌新求教,最近比赛需要尝试使用,先下载下来看看

  • 1
  • Page 1
  • Total 1

Particle Swarm Optimization algorithm (C++ version vs2013) Particle Swarm Optimization (31.00 kB)

Need 1 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D