add local optimum analysis