I was wondering if there is a way to pass data through the optim function 
using the nelder_mead algorithm. As far as I can tell, the only way to fit 
a model to data is to declare the data as a global variable. I suspect this 
results in poor performance. 

Reply via email to