Research Article
Stochastic Constriction Cockroach Swarm Optimization for Multidimensional Space Function Problems
Algorithm 1
Stochastic constriction cockroach swarm optimization algorithm.
| INPUT: Fitness function: | | set parameters and generate an initial population of cockroach | | set | | for do | | if then | | | | end if | | end for | | for do | | for do | | for do | | if abs then | | | | end if | | end for | | if then | | | | else | | | | end if | | if then | | | | end if | | end for | | for do | | | | if then | | | | end if | | end for | | | | ; | | end for | | Check termination condition |
|