Skip to content
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

Raise exception when objective value is missing in objective function #4

Open
jpzk opened this issue Nov 21, 2013 · 2 comments
Open

Comments

@jpzk
Copy link
Contributor

jpzk commented Nov 21, 2013

I think it's useful to raise a exception when the user accidently forgets to return the objective value in the objective function 'f'. It just happened to me.

@renke
Copy link
Member

renke commented Nov 24, 2013

Mh, I am not sure if we should raise an exception to the user or just call on_error in the caller. I will think about a suitable solution to this problem. The former is probably better unless we expect objective function to return None for some arguments.

@jpzk
Copy link
Contributor Author

jpzk commented Nov 26, 2013

This sounds like a good solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants