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
1
vote
1 answer

Particles in particle swarm optimization algorithm

I have a dataset consisting of matrices and I want to use them in the particle swarm optimization (PSO) algorithm, where each particle in the swarm, is represented by a matrix of size MxM. Can I represent a particles as a matrix of size MxM or I…
shdotcom
  • 125
  • 1
  • 1
  • 11
1
vote
1 answer

Particle swarm optimization and function with several parameters

I would like to optimize a function with several parameters using Particle swarm optimization. How can i do it? Everywhere I found this formula 1, but how can I understand this formula, I can optimize a function with only one variable. For example,…
user45245
  • 845
  • 1
  • 8
  • 18
1
vote
1 answer

Feature selection using Binary PSO (BPSO)

Hey I read about Feature selection using Binary PSO (BPSO) in paper titled "Face Recognition using Hough Transform based Feature Extraction" paper here. Can someone explain throughly to me how BPSO can be used for feauture selection? Thank You
1
vote
0 answers

How to create a multi objective particle swarm optimization in Matlab?

How can I write a multi objective cost function using two equations given below for particle swarm optimization X(n+1)=AY (n) + BU + I & Y(n)=0.5*(abs(X(n)+1)-abs(X(n)-1)) Where A & B are 3*3 matrices.
S.Ahmed
  • 13
  • 4
1
vote
2 answers

My Android UI doesn't run?

I implemented AsyncTask to execute results. Here is the error I get... FATAL EXCEPTION: AsyncTask #1 Process: ai69.psoui, PID: 3287 java.lang.RuntimeException: An error occurred while executing doInBackground() …
1
vote
2 answers

How do I get the result from a Java class to display in an Android activity?

I have a Java class that uses PSO to calculate the best global solution for the optimisation of services that a user inputs in the main activity of a UI. When I run my UI, I have printed the bit combination calculation in the terminal using…
Az Islam
  • 133
  • 11
1
vote
0 answers

Python code for PSO to optimise SVM parameters

I'm trying to implement Particle swarm optimization on support vector machine (SVM) to optimizing cost and gamma parameters (Radial basis function) to improve the accuracy.The SVM program is taking data from mysql db and is working fine.Now I need a…
1
vote
1 answer

Fitness function of PSO not working in my code?

I have an Android Studio project that optimises mobile resources using the swarm particle algorithm. I keep getting this error in my fitness function, my main activity never runs or shows me results because of this. This is my class that I keep…
Az Islam
  • 133
  • 11
1
vote
2 answers

How to assign an integer value to an ArrayList of String elements?

I have an ArrayList of string elements that the user enters in the MainActivity of my application (Android Studio). It is called ArrayList serviceNames. The service names can be anything like Facebook, Fitness App, Clock App etc. I want to…
Az Islam
  • 133
  • 11
1
vote
0 answers

How to store data from an Edit Text field, into an arraylist to be used for PSO algorithm test

I am currently working on the Particle Swarm Optimization algorithm (PSO). I have built a user interface on Android Studio that will be used for users to input their own test case scenarios to test this algorithm. This is the best way I can explain…
Az Islam
  • 133
  • 11
1
vote
1 answer

Generic parameters for Particle Swarm Optimization

I understand how Particle Swarm Optimization works in general and have read about it in several articles. It is noticeable that most writing about PSO focuses on optimizing single-equation functions. In Pedersen's Good Parameters for Particle Swarm…
Post169
  • 668
  • 8
  • 26
1
vote
1 answer

Is mixed integer linear programming used to implement optimization algorithms (e.g., genetic or particle swarm)

I am learning about optimization algorithms for automatic grouping of users. However, I am completely new to these algorithms and I have heard about them as I reviewed the related literature. And, differently, in one of the articles, the authors…
1
vote
0 answers

What are the Dynamic Resource Allocation Optimization algorithms ?

I have a resource which is totally random and it can be any number in time period. I want to know that which optimisation has better performance in these scenarios. Moreover, what should I do for multi-objective results? Best 
1
vote
1 answer

Appropriate encoding using Particle Swarm Optimization

The Problem I've been doing a bit of research on Particle Swarm Optimization, so I said I'd put it to the test. The problem I'm trying to solve is the Balanced Partition Problem - or reduced simply to the Subset Sum Problem (where the sum is half…
1
vote
0 answers

Can anyone suggest comparison criteria for various algorithms like ACO, ABC, PSO, BFO, FA, SSO,etc?

I want to compare these methods using matlab. So what can be the criteria for calculating the best method, although different methods are useful as per the applications. Can I use the the objective functions described in link below. Further which…