In this paper, we propose an offloading method for edge computing that takes into account the energy consumption of task requests, constructs and analyzes a co-tracked multi-star structure, calculates the individual task delay and builds a multi-layer edge projection pursuit (MLEPP) model to calculate the optimal offloading location. The experimental results show that this method has lower average offloading delay and higher offloading efficiency.