Resource Inference for Task Migration in Challenged Edge Networks with RITMO