|
|
@@ -78,14 +78,13 @@ int main(int argc, char const *argv[]) {
|
|
|
}
|
|
|
solution.precision(15);
|
|
|
|
|
|
- vector<string> all_benchmark_name = {"bio", "col", "fb", "inf",
|
|
|
- "int", "rec", "ret", "sci",
|
|
|
- "soc", "tec", "web"};
|
|
|
+ vector<string> all_benchmark_name = {"dimacs_color_test"};
|
|
|
|
|
|
for (auto benchmark_name : all_benchmark_name) {
|
|
|
cout << "**** " << benchmark_name << " ***" << endl;
|
|
|
|
|
|
- Director_entry benchmark(result_dir + "/" + benchmark_name);
|
|
|
+ benchmark_name = result_dir + "/" + benchmark_name;
|
|
|
+ Director_entry benchmark(benchmark_name);
|
|
|
for (auto instance_name : benchmark) {
|
|
|
cout << instance_name << endl;
|
|
|
|
|
|
@@ -99,13 +98,22 @@ int main(int argc, char const *argv[]) {
|
|
|
cout << "result file error" << endl;
|
|
|
return 1;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ string line;
|
|
|
+ // get last line
|
|
|
+ while (getline(result_file, line)) {
|
|
|
+ if (result_file.peek() == EOF) {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
result_file.close();
|
|
|
}
|
|
|
-
|
|
|
- solution << instance_name << endl;
|
|
|
+ solution << instance_name;
|
|
|
}
|
|
|
}
|
|
|
solution.close();
|
|
|
+
|
|
|
+ string cmd = "mv solution.xls " + result_dir;
|
|
|
+ system(cmd.c_str());
|
|
|
return 0;
|
|
|
}
|