Duality Between Constrained Estimation and Control