Wednesday, June 19, 2013

Multiplier fields

The next article will outline some possible constraints and how those constraints would be formulated as multiplier fields. But before that: What do I mean by multiplier field? Let $M(\vec x) : \mathbb R^3 \rightarrow \mathbb R$. During a search, we find transitions, such as $(s \rightarrow t)$ in the diagram below.


For each such transition, we calculate a multiplier, which we use to re-weight the original graph, which is based on Euclidean distances. The reasoning behind this is that, for any constant multiplier field $M(\vec x) = m$, the path cost minimization (Dijkstra's or A*) will return the same resulting path. (Note that adding an additional cost to each transition means that replacing a graph edge with two graph edges along the same path changes the total cost for that transition.)

Thus, we model the new cost over a path $P$ as a path integral:
$$C(P) = \int_P {M(\vec x) d \vec x}$$
which, for constant $M$, reduces to $C(P) = m \norm P$, satisfying the condition mentioned above.

Currently, we approximate the multiplier for a single transition $P = (s \rightarrow t)$ by calculating the value of the multiplier field at the midpoint and multiplying it by the length of the transition:
$$C(s \rightarrow t) = M\left(\frac{\vec s + \vec t}{2}\right) \norm{\vec t - \vec s}$$

No comments:

Post a Comment