I want to specify the epsfcn
value for the leastsq
option in lmfit
. Can the epsfcn
value be specified?
Let me answer my own question. The keyword argument espfcn
can be added to the minimize
function and is automatically passed on to the leastsq
function. I hadn't seen that in the documentation of the minimize
function. It works great.