I am trying to minimise a function. But I need to use a mapping function. Is there a method similar to FnMap argument of DEoptim in R for Python.