I would like to find the minimum of a likelihood function using minlbfgs_numdiff (numerical differentiation) in alglib. Clearly, my function depends on an array of data (vvv). I do not understand why it ends up in an infinite "nan" loop. Here is the driver I have created.
Have you got any suggestions, please?