On the Optimization of an Adaptive State Estimation of Dynamic Systems in the Presence of Time-varying Outliers