tokens: This joint learning and communication problem is formulated as an optimization problem whose goal is to minimize a weighted sum of the completion time of FL , local computation energy , and transmission energy of all users , that captures the tradeoff of latency and energy consumption for FL .