Title: A Unified Computational Approach to Optimal Control Problems