Dynamic Resource Optimization for Adaptive Federated Learning at the Wireless Network Edge