First, determining the energy particle for consumption of task, but for the search direction of energy consumption, this paper adopts is the gradient progressive method, namely the search direction according to the partial derivative in the direction of a search, i.e