i need to understand a point in optimization in PSO when updating position & velocity equation of PSO.
in case of i optimize my system according to the maximum of the objective function, and in each iteration i will update its value and update its position and velocity according to the equation. is it necessary for the objective function itself include this position or velocity variable? or i will take the position and velocity correspond to the optimized value of objective function?
i can not connect between them. i need to imagine the idea of code because some examples optimize a variable in fitness function and so the link between them is clear but in my case it is not clear.
i attached the file of equations.
thanks in advance
sorry for long question