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

[BUG]: Function 14 from CEC2014 #15

Closed
mrsonandrade opened this issue Aug 29, 2023 · 2 comments
Closed

[BUG]: Function 14 from CEC2014 #15

mrsonandrade opened this issue Aug 29, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mrsonandrade
Copy link

Description of the bug

Hi! I was using function 14 (F14: Shifted and Rotated HGBat Function) from CEC2014 and found that evaluating the x_global gives a different result from what is expected. So, this gives a False output when we use problem.is_succeed(problem.x_global).

The expected value of problem.evaluate(problem.x_global) is 1400 (based on the document from CEC2014), but it is giving 1400.5, which explains the abovementioned issue.

Steps To Reproduce

import opfunu

problem = opfunu.cec_based.F142014(ndim=10)
problem.evaluate(problem.x_global) # expected to be 1400.0
problem.is_succeed(problem.x_global) # expected to be True

Additional Information

No response

@mrsonandrade mrsonandrade added the bug Something isn't working label Aug 29, 2023
@thieu1995
Copy link
Owner

Hi @mrsonandrade,

Indeed, some functions from CEC functions, they don't have exactly global optimum, it is just near global optimum. Even in the original PDF paper, they still have some bugs and writing issues. So I think you shouldn't use is_succeed() function. Because you know the global optimum value, for example that function is 1400. So you can compare with the results of other models. Which model give nearest to 1400, that model is the best.

@mrsonandrade
Copy link
Author

Oh! Great! Thank you for the explanation @thieu1995 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants