-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
passing varargs to my objective function? #85
Comments
Use a closure instead -- John
|
I think the docs call these "anonymous functions" rather than closures. If performance becomes a concern (which seems a bit unlikely, but who knows), see also FastAnonymous.jl. |
wouldn't have made it without the anonymous function pointer. thanks both!
|
can i just say that this is awesome? first time i see this. compared to R's |
Glad this helped. Closures are possible in R as well. The R community is just not very sophisticated about programming, so basic CS concepts tend not to talked about in public. |
is there a way to have an objective function
where
x
is the variable I want to minimize over, anda,b
are parameters that are set somewhere else in the program? asked differently: can we have?The text was updated successfully, but these errors were encountered: