Particle Swarm Optimization algorithm
Particle Swarm Optimization algorithm was developed by Dr. Kennedy and Dr. Eberhart. I think they have provided the C source code in their website:
http://www.swarmintelligence.org/SIBook/SI.php#Download
suggestion for optimization from IUCAA workshop participant - method does not get stuck in local minimu