A Note on Optimal Open-Loop and Closed-Loop Control