appears to work with NR and Nelder-Mead optimizer....why not BFGS?