@@ -48,7 +48,8 @@ int main(int argc, char** argv) {
48
48
.contraction_coeff = 0.9 ,
49
49
};
50
50
51
- std::vector<std::string> methods = {" genetic" };
51
+ std::vector<std::string> methods = {" greedy" , " random+local" , " grasp" ,
52
+ " genetic" };
52
53
53
54
for (std::string method : methods) {
54
55
cda_rail::sim::ScoreHistoryCollection score_coll;
@@ -59,22 +60,22 @@ int main(int argc, char** argv) {
59
60
workers.push_back (std::thread{[&]() {
60
61
cda_rail::sim::RoutingSolver solver{instance};
61
62
62
- for (size_t sample = 0 ; sample < 3 ; sample++) {
63
+ for (size_t sample = 0 ; sample < 4 ; sample++) {
63
64
// Method here
64
65
65
66
std::tuple<std::optional<cda_rail::sim::SolverResult>,
66
67
cda_rail::sim::ScoreHistory>
67
68
res;
68
69
if (method == " random" ) {
69
- res = solver.random_search (std::chrono::seconds{300 }, {});
70
+ res = solver.random_search (std::chrono::seconds{200 }, {});
70
71
} else if (method == " greedy" ) {
71
- res = solver.greedy_search (std::chrono::seconds{300 }, {},
72
+ res = solver.greedy_search (std::chrono::seconds{200 }, {},
72
73
{std::chrono::milliseconds{50 }});
73
74
} else if (method == " random+local" ) {
74
- res = solver.random_local_search (std::chrono::seconds{300 },
75
+ res = solver.random_local_search (std::chrono::seconds{200 },
75
76
loc_params);
76
77
} else if (method == " grasp" ) {
77
- res = solver.grasp_search (std::chrono::seconds{300 },
78
+ res = solver.grasp_search (std::chrono::seconds{200 },
78
79
{std::chrono::milliseconds{50 }},
79
80
loc_params);
80
81
} else if (method == " genetic" ) {
0 commit comments