Dynamic portfolio choice: a simulation-and-regression approach