Combined time and energy optimal trajectory planning with quadratic drag for mixed discrete-continuous task planning. (2nd January 2019)