Optimal Portfolio Analysis