Global Optimization Approaches for Optimal Trajectory Planning