An Introduction to Applied Optimal Control