mean-variance optimization method