I would like to find an optimal path through an area with hills, i.e. the flattest trajectory. I would like to model this as an optimal control problem, and was wondering if I could base it on fuel consumption problem for lunar landers. In such problems the system is defined like,
$$ h'(t) = v(t) $$
$$ v'(t) = -g -k(\frac{u(t)}{m(t)}) $$
$$ m'(t) = u(t) $$
$h$ is the height of the lander, $v$ velocity, and $u$ outside control, the thrust whose value effects upward velocity and how much fuel is spent (the 2nd, and 3rd equations). The measure to be optimized is the fuel consumption
$$ J = - \int_{0}^{b} m'(t) dt $$
I was wondering if I could use a similar approach for hiking trajectory optimization. The elevation data (hills) will be available, say $E(x,y)$, the movement is obviously through 3D space.
The idea is seperating $v_x$, $v_y$, $v_z$.. and writing motion equations for each, for $z$ axis there would be $g$ to fight against, for $x,y$ there is friction $f$ (while walking). $u$ would also be three dimensioal, $u = (u_x,u_y,u_z)$. All these would subtract from a person's "fuel", that is decrease its $m$. The cost is like above, minimizing fuel which I am guessing would favor trajectories away from hills and try to make a path as short as possible.
Few differences, in my case fuel is consumed in proportion to $g \cdot \partial E / \partial z$ for vertical and $f \cdot x'(t)$, $f \cdot y'(t)$ for horizontal.
My constraint is little different as well, there is a set end-point, $x(b),y(b),z(b) = x_f,y_f,z_f$, $(x_f,y_f,z_f)$, the goal. Time can be free, or constrained, I believe they would both work. Lunar lander constrains for $v(b)=0$ meaning soft landing.
How would I model such a problem, using a seperate variables for each, like above, or using vectors?
It seems like I can put together a functional, use Lagrange multipliers creating a combined results, use Euler-Lagrange on it and solve the resulting ODE numerically. Does this approach make sense? Any advice on the formulation of the problem, or pointers to a similary finished system?
Note: I left $E(x,y)$ undefined, just indicated it is differentiable. I have a model for $E$, "the hills" using RBF, which is
$$ E(\bar{x}) = \sum_{n=1}^N \exp (-\gamma || \bar{x}-x_n ||^2 ) $$
For details see here.
Some other problems that might be useful as a starting point and solved with Optimal Control are:
1) This question models velocity with simple $v(x) = \sqrt{x^2+y^2}$. I would have to still have to model "multiple hills" effecting a certain location, so multiple parameterized $v_i$'s need to be added up.. Or inverting $E$ so higher elevation results in lower velocity? But the basic approach makes sense, defining a functional for time, which is effected by the velocity field, and integrating over it minimizing through Euler-Lagrange. I am not wedded to the fuel minimization angle for this problem.
2) A ship's optimal movements through a current field (can be different at each $x,y$) is shown in Bryon and Ho's book. Control parameter is $\theta$. My elevation field $E$ could be converted into "water currents" that are pushing out therefore discouraging certain locations is one idea. The gradient $\nabla E$ is an obvious choice.
3) Same book, now for wind, but using vector notation throughout.
4) Here is a gentleman HJ Westergard who uses PDEs and fast marching for "orienteering" purposes to solve the flattest path problem.
5) Another paper here talks about how a helicopter control can be modeled to avoid obstacle areas, take into account wind, through control theory.