moved max iterations to nelder mead parameters