Skip to content

Commit ee2a0d5

Browse files
committed
add data-package
1 parent 7e3d006 commit ee2a0d5

29 files changed

+120
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# surfaces-cec-data
2+
3+
CEC benchmark data files for the [surfaces](https://github.com/SimonBlanke/Surfaces) library.
4+
5+
## Installation
6+
7+
This package is typically installed as a dependency of surfaces:
8+
9+
```bash
10+
pip install surfaces[cec]
11+
```
12+
13+
Or install directly:
14+
15+
```bash
16+
pip install surfaces-cec-data
17+
```
18+
19+
## Contents
20+
21+
This package provides rotation matrices, shift vectors, and shuffle indices
22+
for CEC (Congress on Evolutionary Computation) benchmark functions:
23+
24+
| Suite | Dimensions | Functions |
25+
|-------|------------|-----------|
26+
| CEC 2013 | 2, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 | F1-F28 |
27+
| CEC 2014 | 10, 20, 30, 50, 100 | F1-F30 |
28+
| CEC 2017 | 2, 10, 20, 30, 50, 100 | F1-F30 |
29+
30+
## Usage
31+
32+
Once installed, the surfaces library automatically detects and uses this package:
33+
34+
```python
35+
from surfaces.test_functions.cec.cec2017 import ShiftedRotatedBentCigar
36+
37+
func = ShiftedRotatedBentCigar(n_dim=10)
38+
result = func([0.0] * 10)
39+
```
40+
41+
## License
42+
43+
MIT License - See [LICENSE](https://github.com/SimonBlanke/Surfaces/blob/main/LICENSE).
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "surfaces-cec-data"
7+
version = "0.1.0"
8+
description = "CEC benchmark data files for the surfaces library"
9+
readme = "README.md"
10+
requires-python = ">=3.8"
11+
license = {text = "MIT"}
12+
keywords = ["optimization", "benchmarks", "CEC", "surfaces"]
13+
authors = [
14+
{name = "Simon Blanke", email = "[email protected]"}
15+
]
16+
classifiers = [
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3.8",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"License :: OSI Approved :: MIT License",
24+
"Operating System :: OS Independent",
25+
"Topic :: Scientific/Engineering :: Mathematics",
26+
"Intended Audience :: Science/Research",
27+
]
28+
29+
[project.urls]
30+
"Homepage" = "https://github.com/SimonBlanke/Surfaces"
31+
"Bug Reports" = "https://github.com/SimonBlanke/Surfaces/issues"
32+
33+
[tool.setuptools.packages.find]
34+
where = ["src"]
35+
36+
[tool.setuptools.package-data]
37+
surfaces_cec_data = ["**/*.npz"]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Author: Simon Blanke
2+
3+
# License: MIT License
4+
5+
"""CEC benchmark data files for the surfaces library.
6+
7+
This package provides rotation matrices, shift vectors, and other data
8+
required by CEC (Congress on Evolutionary Computation) benchmark functions.
9+
10+
Usage:
11+
This package is typically installed as a dependency of surfaces[cec]:
12+
13+
pip install surfaces[cec]
14+
15+
Or install directly:
16+
17+
pip install surfaces-cec-data
18+
19+
Contents:
20+
- cec2013: Dimensions 2, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
21+
- cec2014: Dimensions 10, 20, 30, 50, 100
22+
- cec2017: Dimensions 2, 10, 20, 30, 50, 100
23+
"""
24+
25+
__version__ = "0.1.0"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Author: Simon Blanke
2+
3+
# License: MIT License
4+
5+
"""CEC 2013 benchmark data files."""
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)