A TRANSFORMATION METHOD FOR SOLVING THE HAMILTON–JACOBI–BELLMAN EQUATION FOR A CONSTRAINED DYNAMIC STOCHASTIC OPTIMAL ALLOCATION PROBLEM