Stochastic Optimal Control Based on Monte Carlo Simulation and Least-Squares Regressiond