Receding horizon schemes for controls, estimations, and optimizations