Optimization_PE function

Perform the minimization of ML function