I am trying to do some maximum likelihood estimation. The optimizer I am using - NLPQN - is bombing out. I suspect there is a problem with my likelihood function where some particular parameter values are causing it to return missing values.

Is there a way to spit out the parameter vector and other information from inside the likelihood function i've coded as a module. When I try to, print output the optimizer also bombs out.

thanks.