I retried the 2D models and it seems like the model will run 1/10 of the time but spit an error the rest of the time. When I do get an integration error, I get the message below. It gives this error when I run optimize_log, after I run make_extrap_log_func and perturb_params. Changing my upper/lower bounds don't seem to help. Is this just a starting seed problem and something I can ignore or does this reflect something about my data that I should try to troubleshoot?
popt_bgs = dadi.Inference.optimize_log(p0_bgs, fs, extrap_bgs, pts_range, lower_bound=lower, upper_bound=upper, verbose=1, maxiter=100)
File "/home/haekel/anaconda/lib/python2.7/site-packages/dadi-1.7.0-py2.7-linux-x86_64.egg/dadi/Inference.py", line 165, in optimize_log
File "/home/haekel/anaconda/lib/python2.7/site-packages/scipy/optimize/optimize.py", line 782, in fmin_bfgs
res = _minimize_bfgs(f, x0, args, fprime, callback=callback, **opts)
File "/home/haekel/anaconda/lib/python2.7/site-packages/scipy/optimize/optimize.py", line 855, in _minimize_bfgs
old_fval, old_old_fval)
File "/home/haekel/anaconda/lib/python2.7/site-packages/scipy/optimize/optimize.py", line 690, in _line_search_wolfe12
**kwargs)
File "/home/haekel/anaconda/lib/python2.7/site-packages/scipy/optimize/linesearch.py", line 96, in line_search_wolfe1
c1=c1, c2=c2, amax=amax, amin=amin, xtol=xtol)
File "/home/haekel/anaconda/lib/python2.7/site-packages/scipy/optimize/linesearch.py", line 167, in scalar_search_wolfe1
phi1 = phi(stp)
File "/home/haekel/anaconda/lib/python2.7/site-packages/scipy/optimize/linesearch.py", line 82, in phi
return f(xk + s*pk, *args)
File "/home/haekel/anaconda/lib/python2.7/site-packages/scipy/optimize/optimize.py", line 282, in function_wrapper
return function(*(wrapper_args + args))
File "/home/haekel/anaconda/lib/python2.7/site-packages/dadi-1.7.0-py2.7-linux-x86_64.egg/dadi/Inference.py", line 78, in _object_func_log
File "/home/haekel/anaconda/lib/python2.7/site-packages/dadi-1.7.0-py2.7-linux-x86_64.egg/dadi/Inference.py", line 52, in _object_func
File "/home/haekel/anaconda/lib/python2.7/site-packages/dadi-1.7.0-py2.7-linux-x86_64.egg/dadi/Numerics.py", line 261, in extrap_func
File "/home/haekel/anaconda/lib/python2.7/site-packages/dadi-1.7.0-py2.7-linux-x86_64.egg/dadi/Demographics2D.py", line 57, in bottlegrowth_split
File "/home/haekel/anaconda/lib/python2.7/site-packages/dadi-1.7.0-py2.7-linux-x86_64.egg/dadi/Demographics2D.py", line 83, in bottlegrowth_split_mig
File "/home/haekel/anaconda/lib/python2.7/site-packages/dadi-1.7.0-py2.7-linux-x86_64.egg/dadi/Integration.py", line 166, in one_pop
ValueError: Final integration time T (-0.833182) is less than intial_time (0.000000). Integration cannot be run backwards.