Jump to content

Downhill Simplex Problem


Recommended Posts

Found the Attached solution. I made it much easier to follow and run the attached VI. However, this simplex method keeps giving me the "maximum Iteration exeeded" error. I choose the initial values quite close to the original.

One main thing that I am not sure about this algorithm is that how would the algorithm know if the 2 variables are the correct values. On the Lev-Mar algorithm, you have a dependant input of "Y" at which the 2 variables are compared against the f(x) which is Y. but I don't see this input in Simplex algorithm.

Kas

Link to comment

Even with the linked NI thread, you're going to need to explain a lot more about what you're doing or break a simpler example before people start diving into help. I understand that you're heavily invested in this problem, but even people with the know how to help aren't getting paid and have no vested interested to spend time on this. In the first ZIP, at least, I don't remember seeing much in the way of commenting.

Link to comment

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.