I have BPSO with function1 and dont know how to count value. I know how to update velocity. And know values of vector x. x[i] = 0 or 1. Thanks
I want to optimize function1. Single particle contains vectors: velocity[-Vmax,Vmax] and x[0 or 1]. First I initialize my particles with random numbers. Then I update velocities. Next step update x. Last step is to count function value and this is main problem. I don't know which values should I use to do this.