Introduction - If you have any usage issues, please Google them yourself
With CPSO algorithm for solving constrained function optimization problems. The objective function f = (x (3)+2)* x (2)* x (1) ^ 2, find the minimum value constraint g (1) = 1-x (2) ^ 3* x (3)/(71785* x (1) ^ 4) g (2) = (4* x (2) ^ 2-x (1)* x (2))/(12566* (x (2)* x (1 ) ^ 3-x (1) ^ 4))+1/(5108* x (1) ^ 2)-1 g (3) = 1-140.45* x (1)/(x (2) ^ 2* x (3)) g (4) = (x (1)+x (2))/1.5-1 decision variable ranges: x1-[0.05,2], x2-[0.25,1.3], x3-[ 2,15]