The function v is called the value function of the problem and
represents the maximum performance that can be achieved.
Solving the optimal stopping problem is firstly to calculate the
value function, and secondly to find a stopping time t that
achieves this maximum. This stopping time is important from
the application point of view since it corresponds to the optimum
time for maintenance. In general, such an optimal stopping time