Questions tagged [particle-swarm]

In computer science, particle swarm optimization (PSO) is a computational method that optimizes a problem by iteratively trying to improve a candidate solution with regard to a given measure of quality.

In computer science, particle swarm optimization (PSO) is a computational method that optimizes a problem by iteratively trying to improve a candidate solution with regard to a given measure of quality.

Algorithm:

Initialize all agents;
while (not maximum iterations nor minimum error )
{
    foreach(agent in agents) 
     {
        Calculate function value at agent position;
        If (value < best_value_in_history)
            best_value_in_history= value;
    }

    current_best_value= calculate best value of all current agents positions;

    foreach(agent in agents)
    { 
         agent current_velocity =
             w * current_velocity + 
             p * random_double() * (current_best_value.position - current_position) + 
             g * random_double * (best_value_in_history.position - current_position);
         update_agent_position(current_velocity);
    }

}

where w,p,g are selected by the practitioner and control the behaviour and efficacy of the PSO method.

Third party implementations:

  • RRSI is a C# project to simulate particle swarm optimization on communicating robots.
  • SwarmOps C# and ANSI C codes for several optimization methods, including a few global best PSO variants.
  • Java Based PSO Framework part of the open-source project CIlib (Computational Intelligence Library).
  • PSO visualisation applet randomly generated particle swarm of 12 particles attempts to find the "global maximum" on the landscape.
175 questions
0
votes
3 answers

How to fully use the CPU in Matlab [Improving performance of a repetitive, time-consuming program]

I'm working on an adaptive and Fully automatic segmentation algorithm under varying light condition , the core of this algorithm uses Particle swarm Optimization(PSO) to tune the fuzzy system and believe me it's very time consuming :| for only 5…
Amir
  • 155
  • 3
  • 16
0
votes
1 answer

Can one have a Variable Length Chromosome for Particle Swarm Optimization?

Can the particles have different lengths. For instance some have 10 genes and others have 20? And if so, how would one go about updating the velocity since the global beast, local best and current could all be of different length?
PotatoJam
  • 319
  • 1
  • 4
  • 13
0
votes
3 answers

Crossover function of two vector error

The Goal of my function is to use a 1 point crossover function between two Vector to get a new hybrid "Son" Vector having some element from the first Vector and some from the second one . public Vector crossover(int Sol1,int Sol2){ int size; …
Ghassen Bellagha
  • 249
  • 3
  • 5
  • 16
0
votes
3 answers

particle swarm optimization inertia factor

i am reading in soft computing algorithms ,currently in "Particle Swarm Optimization ",i understand the technique in general but ,i stopped at mathematical or physics part which i can't imagine or understand how it works or how it affect the…
HATEM EL-AZAB
  • 331
  • 1
  • 3
  • 11
0
votes
1 answer

What is the best strategy to save simulation data each iteration?

I have a Multiobjective Particle Swarm Optimization algorithm for a complex problem, it uses a big population (4000 particles) and is a time consuming simulation (4 - 6 hours of execution). As the algorithm keeps an archive, a repository of best…
Jon Cardoso-Silva
  • 991
  • 11
  • 25
-1
votes
1 answer

TypeError: '(slice(None, None, None), array([ True, False, ... True, True]))' is an invalid key

Trying to use BPSO for feature selection but getting a Type error: TypeError: '(slice(None, None, None), array([ True, False, False, True, False, False, False, True, True, False, True, False, False, False, False, True, False, True, True, …
-1
votes
1 answer

Can PSO work based on experimentel data with ODEs?

I would like to optimize a differential equation's parameters. I have a dataset, which contains the measured values, and I would like to get similar results with help of differential equations. When I read Python pyswarm module's documentation, I…
dev1
  • 49
  • 3
-1
votes
1 answer

Magic Square using Particle Swarm Optimization

I am given a n x n matrix where n ranges from 3 to 5. The matrix is then assigned random values from 1-n^2. Given the matrix I am to optimize the board such that I arrive to a solution of magic square. Random board example: n = 3 3 5 6 1 7…
Holmes
  • 53
  • 6
-2
votes
1 answer

similarities and differences between ACO and PSO and Genetic algorithms

Hi guys I want to know what is the main similarities and differences between Ant colony optimization algorithm and Particle swarm optimization and Genetic algorithm.
-2
votes
2 answers

How can I apply KMEANS algorithm with determined cluster position which has specified from PSO algorith?

How can I apply KMEANS algorithm with determined cluster position which has specified from PSO algorithm ??
1 2 3
11
12