Skip to content

Commit

Permalink
Cite this repository
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyongkang2000 committed Feb 26, 2024
1 parent 17df1e3 commit 8b77158
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,16 @@ To learn how to use and for more details about the framework, please refer to th
+ [Chinese Documentation](./doc/User_Guide_Chinese.md)
+ [English Documentation](./doc/User_Guide.md)

### Cite this repository
If you use this software in your work, please cite it as below.

```bibtex
@software{Yongkang_SEvoBench_A_C_Framework_2024,
author = {Yongkang, Yang},
month = feb,
title = {{SEvoBench:A C++ Framework for Evolutionary Single-Objective Optimization Benchmarking}},
url = {https://github.com/yangyongkang2000/SEvoBench},
version = {1.0.0},
year = {2024}
}
```
5 changes: 2 additions & 3 deletions include/SEvoBench/parallel_algorithm_benchmark.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,14 @@ class benchmark_result {
fs::create_directory(dir);
}
if (!graph_data.empty()) {
auto len = graph_data.size() / size;
for (int i = 0; i < size; i++) {
auto file_path =
dir / (std::string(algname) + "_" + std::to_string(pop) + "_" +
std::string(proname) + "_F" + std::to_string(i + 1) + "_" +
std::to_string(dim) + "_curve.txt");
std::ofstream os(file_path.string());
for (int j = 0; j < len; j++)
os << graph_data[i * len + j] << '\n';
for (int j = 0; j < 2*max; j++)
os << graph_data[2*i * max + j] << '\n';
}
}
}
Expand Down

0 comments on commit 8b77158

Please sign in to comment.