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

Error in convertToMinimization helpful? #106

Open
surmann opened this issue Aug 10, 2017 · 0 comments
Open

Error in convertToMinimization helpful? #106

surmann opened this issue Aug 10, 2017 · 0 comments

Comments

@surmann
Copy link
Contributor

surmann commented Aug 10, 2017

MWE:

packageVersion("smoof")
#[1] ‘1.5.1’
convertToMinimization(makeAlpine01Function(1))
#Error in convertProblemDirection(fn, minimize.after = TRUE) : Function should already be minimized.

Is it helpful to generate an error when using convertToMinimization on a function that is already minimised? I use this function in general on a bunch of test functions and get this error.
I'm aware of shouldBeMinimized but this makes my if-clause more complex.

I think convertToMinimization() should just return the function, if it is already to be minimised.

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

No branches or pull requests

1 participant