Stochastic Dynamic Programming (SDP) is an optimization methodology that considers the variability of the system. SDP is studied …