Optimal Portfolios under a Value at Risk Constraint