I'm interested to learn about how discrete/'event' based elements are incorporated into optimisation problems. Hopefully this is an interesting problem in its own regard, it's inspired by a daily occurrence in my life.
The problem stated in english is:
What is the optimal strategy to unlock my car with its remote, soonest, as I walk towards it?
The function that determines when the remote will be able to unlock the car is dependent on the battery voltage $V$ and the distance I am from the car $d$:
$$f(V,d) = \alpha \frac{V}{d^2}$$
- If this value goes over some threshold $\tau$, the car will unlock.
- $\alpha$ accounts for some fun (but unknown) stuff like the permeability of air and so on (let it be 1 if you like).
- I am walking towards the car at a constant velocity $u$, from an initial distance $D$.
- The car is not unlockable at $D$.
- The initial voltage $V_0$ is positive but unknown.
- After each attempt to unlock the car the remote the voltage $V$ is reduced by a multiplicative factor $\{\beta\in \mathbb{R}\mid 0 < \beta < 1\}$:
$$ V_{n+1} = \beta V_{n}$$
I think that's about it in terms of required information...
(please comment if not, thanks)
Can an optimal schedule (strategy over time) of unlocking attempts be defined, given no initial values?
In order to avoid making the question too broad, the following aren't specific questions, but 'discussion points' :)
- Obviously if we're given enough values we can figure out a $d$ and use one optimal attempt $(V = V_0)$, but it's more interesting having to account for the Voltage loss in an unknown setting (right?).
- In general, how are non-linear thresholds like $\tau$ and the event driven schedule of attempts dealt with in problems like this?
- Is there a difference if the problem states that the complete schedule must be derived prior to the 'walk'? ...That is, compared to adjusting the schedule dependent on new information such as 'the last attempt didn't work'?
Let's note $d_n$ the distance you are from you car at you $n$-th attempt. The voltage at the moment of the $n$-th attempt is $\beta^nV_0$. So if you want to suceed, there must be an $n$ such that
$$\alpha\dfrac{\beta^n V_0}{d_n^2} \geq \tau.$$ As you have no information at all on $V_0$ (which may be extremely small), we must choose a sequence of distances $(d_n)_{n \in \mathbb{N}}$ such that $$\dfrac{\beta^n}{d_n^2} \xrightarrow[n \to +\infty]{} +\infty.$$ Therefore we must have $$d_n = \beta^{n/2} \times D \times a_n$$ where $a_n \xrightarrow[n \to +\infty]{} 0$. Reciprocally, any $(d_n)_{n \in \mathbb{N}}$ that can be written that way ensures that your problem is solved, as long as the sequence $(d_n)$ is decreasing, which can be translated as $a_{n+1} > \dfrac{1}{\sqrt{\beta}} a_n$.
Let's note $C= D\sqrt{\dfrac{\tau}{\alpha V_0}}$ which is $>1$ by your assumption). The car opens when $a_n \leq \dfrac{1}{C}$. We must then choose the sequence $(a_n)$ such that $d_n$ is as big as possible for the first integer $n$ such that $a_n \leq \dfrac{1}{C}$. Therefore, when we open the car, $d_n \leq \beta^{n/2} D\dfrac{1}{C} \leq \dfrac{D}{C}$. Thus the best strategy (if it exists) will open the car at a distance $\dfrac{D}{C}$. More reasonably, as we have no reliable information on $C$, I can't imagine a strategy that can get it on the first try without any other information on $V_0$. Thus I expect an optimal strategy to open the car at a distance $\beta^{1/2}\dfrac{D}{C}$
$\rhd$ Here is a try to find a strategy which reach or at least approach this upper bound. Let $a_n = \dfrac{1}{q^n}$ for some $q >1$. The smallest $n$ such that $a_n \leq \dfrac{1}{C}$ is $n= \lceil \log_q(C)\rceil$. Then the distance at which we open the car is $$d_n = \beta^{(\lceil \log_q(C)\rceil )/2} \times D \times \dfrac{1}{q^{\lceil \log_q(C)\rceil}} $$ thus $$\beta^{(\lceil \log_q(C)\rceil )/2} \times D \times \dfrac{1}{C\times q} \leq d_n\leq \beta^{(\lceil \log_q(C)\rceil )/2} \times D \times \dfrac{1}{C} $$ Taking $q= C$, this gives $$\beta^{1/2} \dfrac{D}{C^2} \leq d_n \leq \beta^{1/2}\dfrac{D}{C} .$$ Of course, this is cheating as we don't have access to $C$ to build our strategy. If we have access to $C$, simply choosing $a_0=\dfrac{1}{C}$ solve the problem on the first attempt.
$\rhd$ Thus, without any additional information on $V_0$ (or more precisely on $C$), such that a probability distribution from which we could build a strategy that maximize the expected value for the distance from which we open the car, it is not possible to build an optimal strategy. Indeed, is $V_0$ is very small (the battery is almost depleted), it is much more strategic to approach the car quite a bit before our first attempt ; whereas if $V_0$ is quite big (we could open the car by getting just a little bit closer from the distance $D$), then it is much more strategic to try quickly some attempts.