Stability of the Tupike Phenomenon in Discrete-Time Optimal Control Problems