Hello asbo. You're right about what you said. Attached is the modified Zip file that includes a published paper from where this algorithm comes from and the "Main.VI" contains some comments where I tried to explain what I'm doing and why.
Just for referance, the Model Function "Nelder-Mead" VI is correct. I've compared it against some previous script code and the results for chosen values of "n" and "k" were correct. Further more, this worked when I used the "Lev-Mar" fitting method (follow the lonk to the NI forum) but I had to abandon that algorithm since it depends on the gradiant or derivitive of the Model Function. In my case, this is not possible because my model function is based on Discrete values and no derivitive can be precisely found. As such, only the Simplex methodology is the option, where it does not depend on the derivitives.
Thank you
Kas