Pheromone particle swarm optimization of stochastic systems