Skip to content

[BUG]: Got value below global minimum for opfunu.cec_based.F142013 #40

Description

@mlojek

Description of the bug

I found that for function 14 of CEC2013 benchmark there are points in the search range that have values below global minimum. Similar issue can also be found for function 15, 22, 23, 24, 26, 28.

Steps To Reproduce

  1. import opfunu
  2. from opfunu.cec_based import F142013
  3. fun = F142013(dim=10)
  4. fun.evaluate(fun.x_global)
  5. you should get -100 in 4
  6. fun.f_global
  7. you should get -100 in 4
  8. fun.evaluate([-82.1329371, 6.52854211, 47.31195851, 70.16835564, -14.57431125, -40.47929051, 61.4423116, 14.46334738, 93.69871427, -33.37875619])
  9. you should get -107
  10. fun.bounds
  11. You should get [[-100, 100] * 10] in 10

Additional Information

EDIT: downgrade to opfunu 1.0.0 alleviated the error

My pip freeze:

alabaster==1.0.0
astroid==3.3.6
attrs==24.2.0
babel==2.16.0
black==24.10.0
CEC2017 @ git+https://github.com/tilleyd/cec2017-py@931eb3b992a2f8898e550b6ede602760723a643b
certifi==2024.8.30
cfgv==3.4.0
charset-normalizer==3.4.0
click==8.1.7
cma==4.0.0
contourpy==1.3.1
cycler==0.12.1
dill==0.3.9
distlib==0.3.9
docutils==0.21.2
filelock==3.16.1
fonttools==4.55.3
identify==2.6.3
idna==3.10
imagesize==1.4.1
iniconfig==2.0.0
isort==5.13.2
Jinja2==3.1.4
joblib==1.4.2
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
kiwisolver==1.4.7
MarkupSafe==3.0.2
matplotlib==3.9.2
mccabe==0.7.0
mypy==1.13.0
mypy-extensions==1.0.0
nodeenv==1.9.1
numpy==2.1.3
opfunu==1.0.1
-e git+https://github.com/mlojek/optilab@912fb003df8b7583939bff750df4d3e254c2c51c#egg=optilab
packaging==24.2
pandas==2.2.3
pathspec==0.12.1
pillow==11.0.0
platformdirs==4.3.6
pluggy==1.5.0
pre_commit==4.0.1
Pygments==2.18.0
pylint==3.3.2
pyparsing==3.2.0
pytest==8.3.4
python-dateutil==2.9.0.post0
pytz==2024.2
PyYAML==6.0.2
referencing==0.35.1
requests==2.32.3
rpds-py==0.22.3
scikit-learn==1.5.2
scipy==1.14.1
setuptools==75.8.0
shapely==2.0.6
six==1.17.0
snowballstemmer==2.2.0
Sphinx==8.1.3
sphinx-rtd-theme==3.0.2
sphinxcontrib-applehelp==2.0.0
sphinxcontrib-devhelp==2.0.0
sphinxcontrib-htmlhelp==2.1.0
sphinxcontrib-jquery==4.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
tabulate==0.9.0
threadpoolctl==3.5.0
tomlkit==0.13.2
tqdm==4.67.1
typing==3.7.4.3
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.2.3
virtualenv==20.28.0

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions