Existence of optimal consumption and portfolio rules with portfolio constraints and stochastic income, durability and habit formation