Skip to content

Commit 8b77158

Browse files
Cite this repository
1 parent 17df1e3 commit 8b77158

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,16 @@ To learn how to use and for more details about the framework, please refer to th
1818
+ [Chinese Documentation](./doc/User_Guide_Chinese.md)
1919
+ [English Documentation](./doc/User_Guide.md)
2020

21+
### Cite this repository
22+
If you use this software in your work, please cite it as below.
23+
24+
```bibtex
25+
@software{Yongkang_SEvoBench_A_C_Framework_2024,
26+
author = {Yongkang, Yang},
27+
month = feb,
28+
title = {{SEvoBench:A C++ Framework for Evolutionary Single-Objective Optimization Benchmarking}},
29+
url = {https://github.com/yangyongkang2000/SEvoBench},
30+
version = {1.0.0},
31+
year = {2024}
32+
}
33+
```

include/SEvoBench/parallel_algorithm_benchmark.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,14 @@ class benchmark_result {
157157
fs::create_directory(dir);
158158
}
159159
if (!graph_data.empty()) {
160-
auto len = graph_data.size() / size;
161160
for (int i = 0; i < size; i++) {
162161
auto file_path =
163162
dir / (std::string(algname) + "_" + std::to_string(pop) + "_" +
164163
std::string(proname) + "_F" + std::to_string(i + 1) + "_" +
165164
std::to_string(dim) + "_curve.txt");
166165
std::ofstream os(file_path.string());
167-
for (int j = 0; j < len; j++)
168-
os << graph_data[i * len + j] << '\n';
166+
for (int j = 0; j < 2*max; j++)
167+
os << graph_data[2*i * max + j] << '\n';
169168
}
170169
}
171170
}

0 commit comments

Comments
 (0)