Open lhdp0110 opened 1 year ago
I don't know exactly what's causing it, since that get really deep into how the BFGS minimizer works. I do know that fitting ODEs can be very difficult, since they tend to be annoyingly sensitive to parameters. You can usually help things along by picking better initial guesses.
I should add to this that symfit
is a wrapper around scipy
's LBFGSB, which has documentation here. So you might find something over there, or by googling for this error in combination with scipy
.
Just glossing at your code, I agree with @pckroon that this is probably a difficult ODE to solve, especially given that the amount of datapoints only marginally outweighs the amount of parameters in the problem. Is this your real data, or just an example? More data would probably improve the reliability of the fit.
I get the following output:
My code is as follows. What does "ABNORMAL_TERMINATION_IN_LNSRCH" mean and what could be causing it? Thank you