Text this: Optimizing strategy of computing off loading energy consumption based on Lagrangian method