hmofrad / Cooperative-PSO-LA

A Robust Heuristic Algorithm for Cooperative Particle Swarm Optimizer: A Learning Automata Approach
1 stars 1 forks source link

How use this code for CPSO? #1

Closed mhosseini20 closed 2 years ago

mhosseini20 commented 2 years ago

Thanks much for share this code. But, How use this code for CPSO algorithm (A Cooperative Approach to Particle Swarm Optimization[1])?

hmofrad commented 2 years ago

You're welcome. Thank you for your interest. Please go to my other repository for Adaptive-CPSO where you can find a "body.m" bootstrap file, e.g., for CEC2005: https://github.com/hmofrad/Adaptive-CPSO/blob/master/CEC2005/body.m

The "body.m" is the entry point to a test suit. What you need to do is to, copy the "cpsoh.m" or "cpsos.h" to a test suite and modify its "body.m" to point to the "cpsoh" or "cpsos" methods . Those methods should work with the test suits reported in the paper. Hope this helps.

mhosseini20 commented 2 years ago

Thank you so much for your fast and useful help

You're welcome. Thank you for your interest. Please go to my other repository for Adaptive-CPSO where you can find a "body.m" bootstrap file, e.g., for CEC2005: https://github.com/hmofrad/Adaptive-CPSO/blob/master/CEC2005/body.m

The "body.m" is the entry point to a test suit. What you need to do is to, copy the "cpsoh.m" or "cpsos.h" to a test suite and modify its "body.m" to point to the "cpsoh" or "cpsos" methods . Those methods should work with the test suits reported in the paper. Hope this helps.