Introduction - If you have any usage issues, please Google them yourself
Particle swarm algorithm is applied to deal with the constrained problem. The penalty function is applied to deal with the constraint condition. The code is accompanied by Chinese annotation. The txstA.txt file is the matrix of the constraint function's coefficient.