The original cockroach swarm optimization (CSO) algorithm has long been criticized for the problems of "early mature". This paper described a new cockroach-inspired algorithm, which is
called CSO with global and local neighborhoods (CSOGL). In CSOGL, two kinds of neighborhood models are designedin order to increase the diversity of promising solution. Based on above two neighborhood models, two kinds of novel chase-swarming behaviors are proposed
and applied to CSOGL. The comparison results show that the CSOGL algorithm outperform the original CSO algorithms