Applied Optimal Control