Thank you for your interest in contributing! We welcome contributions of all kinds.
- Fork and clone the repository
git clone https://github.com/ak-rahul/optimization-benchmarks.git
cd optimization-benchmarks
- Install in development mode
pip install -e ".[dev]"
- Create a branch
git checkout -b feature/your-feature-name
Add your function to optimization_benchmarks/functions.py:
def your_function(x: np.ndarray) -> float:
"""
Your Function Name.
Domain: |x_i| ≤ 10.
Dimension: n.
Global minimum: f(x*) = value at x = location.
References:
Author, Title, Year.
"""
x = np.asarray(x, dtype=float)
# Your implementation
return result
Add it to __init__.py exports and write tests in tests/test_functions.py.
- Run
black optimization_benchmarks/before committing - Use type hints
- Follow NumPy docstring style
- Ensure all tests pass
- Update documentation if needed
- Push your branch and create a PR
- Respond to review comments
Open an issue or contact the maintainers.
By contributing, you agree your contributions will be licensed under the MIT License.
Thank you for making optimization-benchmarks better! 🚀