Text this: Trajectory-based methods for solving nonlinear and mixed integer nonlinear programming problems