The mathematics of emergence is a recent topic of research in the modeling of population dynamics. Many scientists take this challenge and analyzed these phenomena in many contexts such as flocking, schooling, swarming... They have described the collective moves in groups by many continuous and discrete models in form of non linear discrete systems or differential equations. The model presented here gives a new idea of rules of self-organizing groups based on the local energy.