Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

What software for optimization surface of 4 parameters?

  1. Aug 12, 2015 #1

    I have data for optimization that contains different values of 4 different parameters, and the respective function value based on them. I want to find the maximum of this function, while making sure it's a "stable" maximum, i.e., for nearby parameters, the value of the function shouldn't change that much. My only question is what tool to use for this, since I have 60k values in total? I have experience in Matlab, can that be done in a reasonable amount of time there? I also have some basic knowledge of R, and can learn fast anyway, is this more suitable to do in R?

  2. jcsd
  3. Aug 13, 2015 #2
    I would definitely go with R, even (or I should say especially) with 60,000 values. Also, but depending on the context, I think the Nelder-Mead optimization method would be an interesting approach to try.

    I've used the neldermead package before and it served me well.

    More information here : https://cran.r-project.org/web/packages/neldermead/neldermead.pdf
  4. Aug 14, 2015 #3
    Thank you, will definitely look into that method in R.
  5. Aug 16, 2015 #4
    Ok, Nelder-mead won't work, because I don't have the function explicitly...
  6. Aug 17, 2015 #5
    The explicit form of the function is not necessary. The Nelder-Mead algorithm only requires function values.

    The algorithm is often called the "simplex" method, maybe you can find more information about it under that label. Also, many books cover the subject, e.g. Richard Brent's book Algorithms for Minimization Without Derivatives.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook