Joint optimization of mean and standard