[Date Index] [Thread Index] [Author Index]
Re: FindMinimum of a compiled function??
I've played some of these games. Suggestions: (1) Have a normal function, which calls the compiled function. (2) If you can, take the derivatives and get the gradient, then compile the gradient functions and give them to FindMinimum in the same way. (3) Look at NonlinearFit in the Statistics package. (4) Set up the callable function to print out the parameters and return value each time (or each 10th time, or each 100th time) it is called. Watching these will give you a lot of info as to what is happening. To me, it's pretty amazing to realize that I'm (who me?) doing a calculation that takes at Pentium III at 350 MHz a whole day. Think of how much bit-moving is happening! Dave Golber