The HJB equation is usually solved backwards in time, starting from t = T and ending at t = 0.
When solved over the whole of state space, the HJB equation is a necessary and sufficient condition for an optimum [REF].