optimalPortfolio function

Optimal portfolio