Given a particle with a position $p_0$ and an initial velocity $\vec{v_0}$, what acceleration $\vec{a}$ do we need to reach point $p_1$ and how long until we have reached $p_1$? The magnitude of the acceleration must be $\leq A_{max}$, and the time to reach the $p_1$ should be minimal. The acceleration should be constant, i.e. the same acceleration vector should be used for the entire trip.
Our first attempt was to use the basic kinematics formula from Wikipedia, but because both $t$ and $A$ are unknown, this proved unfruitful.$$P_1=\frac12at^2+v_0t+P_0$$
Edit: Reformulation of problem in the form of projectile motion on slopes and attempt at solution using the link provided by sammy gerbil.
Problem: A projectile is launched up/down a slope from $O$ with velocity $\vec{u}$. The projectile lands at $P$. The angle between the slope and $\vec{u}$ is $\beta$. The force of gravity is $g$. What is the angle $\alpha$ (i.e. the angle between the slope and the horizontal) that minimizes the time required to reach $P$? In other words, in which direction should gravity be applied to minimize flight time?
Attempted solutions: We tried using the formula for range of flight from the link sammy provided $$T = \frac{2\|\vec{u}\|\sin\beta}{g\cos\alpha}$$ Our thought is that minimizing that function should do the trick. We don't really know how though.
We also tried to calculate $\alpha$ using the many different formulae on the same link, but there seems to be too many variables. For example, the formula for range of flight has both $\alpha$ and $2\theta - \alpha$ as unknowns.