-
Notifications
You must be signed in to change notification settings - Fork 47
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
using f_data #7
Comments
I believe the idiomatic way is to wrap the objective function in a closure, e.g. |
Yeah that's what I figured, Unfortunately anonymous Julia functions are currently very slow (I believe due to poor type specialization). Hopefully this will get better in the future. |
Performance issues aside though, currying does make for an elegant interface. |
Yes, the void* stuff is just a hack for languages lacking lexical scoping and nested functions. |
(For people coming late to this issue, note that this is no longer true as of Julia 0.5.) |
Does the interface here provide a way to use the
void *f_data
argument to an objective function? I have an objective function that needs some other data besides the parameters.The text was updated successfully, but these errors were encountered: