I’m currently looking for a lua alternative to the R programming languages; optim() function, if anyone knows how to deal with this?
I’m currently looking for a lua alternative to the R programming languages; optim() function,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://numlua.luaforge.net/ looks interesting but doesn’t seem to have minimization. The most promising lead seems to be a Lua wrapper for GSL, which has a variety of multidimensional minimization algorithms included.
With derivatives
– BFGS (
method="BFGS"inoptim) and two conjugate gradient methods (Fletcher-Reeves and Polak-Ribiere) which are two of the three options available formethod="CG"inoptim.Without derivatives
– the Nelder-Mead simplex (
method="Nelder-Mead", the default inoptim).More specifically, see here for the Lua shell documentation covering minimization.
I agree with @Zack that you should try to use existing implementations if at all possible, and that you might need a little bit more background knowledge to know which algorithms will be useful for your particular problems …