prototype of ga+pso