Optimal Consumption and Portfolio Selection with Portfolio Constraints