Hi, why are you using meta heuristic algorithms and not nonlinear programming softwares? Could you give us the formulation of your problem (cost function, constraints) ?
You may understand the basic and step by step procedure of PSO algorithm in a very simple manner through the following video. See and wait for my next update.