48 std::vector<Short_vehicle>
50 std::vector<Short_vehicle> result;
60 std::vector<Solution_rt>
62 std::vector<Solution_rt> result;
69 auto data = v.get_postgres_result(i);
74 data[1].arrivalTime = data[1].operationTime;
75 data[0].waitDuration = data[1].waitDuration;
76 data[1].waitDuration = 0;
77 data[0].departureTime = data[0].arrivalTime + data[0].waitDuration;
80 result.insert(result.end(), data.begin(), data.end());
106 result.push_back(aggregates);
117 std::string str {
"\n" + title +
": " +
'\n'};
118 for (
const auto& v :
m_fleet) str += (
"\n" + v.tau());
217 std::tuple<int, int, size_t, TInterval, TInterval, TInterval>
227 for (
const auto& v :
m_fleet) {
228 total_duration += v.duration();
229 total_wait_time += v.total_wait_time();
230 total_twv += v.twvTot();
231 total_cv += v.cvTot();
232 total_tt += v.total_travel_time();
237 return std::make_tuple(
238 total_twv, total_cv,
m_fleet.size(),
239 total_wait_time, total_duration,
251 std::ostringstream log;
256 log << std::fixed << std::setprecision(4)
257 <<
"twv=" << std::get<0>(s_cost)
258 <<
" cv=" << std::get<1>(s_cost)
259 <<
" wait=" << std::get<3>(s_cost)
260 <<
" duration=" << std::get<4>(s_cost)
261 <<
" tt=" << std::get<5>(s_cost);
269 auto rhs(s_rhs.
cost());
274 if (std::get<0>(lhs) < std::get<0>(rhs))
276 if (std::get<0>(lhs) > std::get<0>(rhs))
282 if (std::get<1>(lhs) < std::get<1>(rhs))
284 if (std::get<1>(lhs) > std::get<1>(rhs))
290 if (std::get<2>(lhs) < std::get<2>(rhs))
292 if (std::get<2>(lhs) > std::get<2>(rhs))
298 if (std::get<3>(lhs) < std::get<3>(rhs))
300 if (std::get<3>(lhs) > std::get<3>(rhs))
306 if (std::get<4>(lhs) < std::get<4>(rhs))
308 if (std::get<4>(lhs) > std::get<4>(rhs))