I want to minimize the travel time from known position A to known position B while the derivatives of path are below their maximum value.
I have:
v[t] <= vmax ... velocity
a[t] <= amax ... acceleration
j[t] <= jmax ... jerk
j2[t] <= j2max ... jounce
j2[t] is -j2max or 0 or j2max
This is the plot of all values:

I would need to find a method that works well on lots of path segments. I was thinking of some finite difference method or something similar. Any suggestions?