55 msg.
log <<
"trying all \n";
56 for (
int i = 1; i < 7; ++i) {
58 msg.
log <<
"solution " << i <<
"\n" << initial_sols.back().tau();
60 msg.
log <<
"Initial solution " << i
61 <<
" duration: " << initial_sols.back().duration();
68 <<
" duration: " << initial_sols[0].duration();
76 std::sort(initial_sols.begin(), initial_sols.end(), []
93 std::vector< General_vehicle_orders_t >
95 auto result =
solutions.back().get_postgres_result();
116 result.push_back(aggregates);
136 const std::vector<PickDeliveryOrders_t> &pd_orders,
137 const std::vector<Vehicle_t> &vehicles,
143 m_initial_id(initial),
144 m_max_cycles(p_max_cycles),
146 m_cost_matrix(cost_matrix),
148 m_trucks(vehicles, factor) {
168 msg.
log <<
"\n Checking fleet ...";
192 msg.
log <<
"\n Checking orders";
195 msg.
error <<
"Order not feasible on any truck was found";
198 <<
" is not feasible on any truck";
203 if (old_speed == t.speed())
continue;
204 old_speed = t.speed();
205 msg.
log <<
"****** With speed: " << t.speed() <<
"\n";
206 msg.
log << t.start_site() <<
"\n";
207 msg.
log << o.pickup() <<
"\n";
208 msg.
log <<
"travel time to "
209 << t.start_site().travel_time_to(
210 o.pickup(), t.speed()) <<
"\n";
212 msg.
log << o.delivery() <<
"\n";
213 msg.
log << t.end_site() <<
"\n";
214 msg.
log <<
"travel time to "
215 << t.start_site().travel_time_to(
216 o.delivery(), t.speed())
224 msg.
log <<
"orders OK \n";