Artifical swarm optimization algorithm