Mean Variance Optimization of Non-Linear Systems and Worst-case Analysis