What is an Ant colony optimization algorithm?

How do I implement particle swarm optimization, ant colony optimization and/or other data clustering algorithms on a 152*3 data matrix using MATLAB?

  • Answer:

    First of all, you are on the right track by choosing MATLAB owing to ready-to-use tools. For instance, http://www.mathworks.com/matlabcentral/fileexchange/46985-particle-swarm-optimization--vectorized-code- provides a vectorized PSO code which can be used in a 152*3 data matrix in a fairly trivial manner. Firstly you should identify the number of particles whose nominal value is around 50. The number of variables might be 3 in your case but double check it please.  Incorporating your cost function into the code might be more challenging, but  you should roughly insert your cost function to the corresponding cost function part of the code. You can adjust the other parameters like lower bound and upper bound of explosion etc manually. Then you are ready to execute the code with those parameters but in due course you might need to fine tune some parameters that I mentioned above.

Aykut Yildiz at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.