simplified optimizer for 4 stocks portfolio