Skip to content

Conversation

@ZohaibHassan16
Copy link

Description

This PR adds the Shekel function to the library's collection of standard algebraic test functions.

Related Issues

issue #10

Type of Change

  • [ x] [ENH] - New feature (non-breaking change adding functionality))

How was this solved?

Implementation: Created shekel_function.py inside src/surfaces/test_functions/algebraic/standard/test_functions_nd/.

Registration: Updated the following init.py files to ensure the function is properly exported and accessible via the library's API:

src/surfaces/test_functions/algebraic/init.py

src/surfaces/test_functions/algebraic/standard/init.py

src/surfaces/test_functions/algebraic/standard/test_functions_nd/init.py

Checklist

Required

  • [x ] PR title includes appropriate tag: [BUG], [ENH], [DOC] or [MNT]
  • [x ] Code passes make check (lint, format, isort)

Tests

  • [x ] Tests added/updated for changes

Documentation

  • [ x] Documentation added/updated (docstrings, user guide, examples)

Note: New features ([ENH]) typically require both tests and documentation.
Bug fixes ([BUG]) should include a regression test when possible.

Testing

It can be verified by instantiating it through the standard algebraic interface:

from surfaces.test_functions.algebraic import ShekelFunction

func = ShekelFunction()
print(func.search_space)

Additional Notes

This is a fresh Pull Request intended to replace previous one that was "accidentally" combined with the other one

@ZohaibHassan16 ZohaibHassan16 mentioned this pull request Jan 18, 2026
5 tasks
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

Successfully merging this pull request may close these issues.

1 participant