Dynamic optimization of generalized least squares handover algorithms