📜 ⬆️ ⬇️

Delivery: we solve the problem of optimizing the ways and open the "left"

image
An example of a map from a GIS system, on which delivery zones are marked, is a different color for different machines.

A hundred couriers from the point of view of a manager are such a branch of hell with short-term planning . This formulation, of course, does not convey the sensation of the Ryazan Highway, which has firmly risen, a jumper on the roads to Novokuznetsk and a girl-operator who sent the car to Zelenograd instead of Moscow. Well, to the heap - an accident with a truck, carrying urgent goods.

From the client’s point of view, even being 5 minutes late turns into a tragedy. And this, by the way, is correct and understandable. From a marketing point of view, every slip of a courier is a lost customer. But from the point of view of the part of the drivers, automation is a clear evil . Because even gasoline does not allow to merge at your pleasure. In reality, we met with real riots of drivers against the introduction of IT-systems.
')
So, for companies whose main part of traffic is intracity delivery, the issue of route planning is strictly enough. The key feature is taking into account the transport conditions of the city. That is, the system should be able to count traffic using all types of transport, take into account problems on the road and at the same time optimize resources.

"Levaki" and riots drivers


Even in our practice for large retail, it quickly became clear that the system reveals just a huge number of violations that were allowed by drivers. Petrol is drained, not so drive, a lot of things. And IT tools make this whole feeder transparent. It is logical that not only the usual resistance to new processes arises, but also the desire to hide behind and return everything as it was. We once stumbled upon such a situation: in fact, the movement, according to the rules, took half of the earnings from the drivers - its “shadow” part.

Who needs automation and when?


One of the most interesting tasks solved in this regard is the optimization of cash collection for ATMs (here’s a separate topic ).

It is clear that when a company is small, usually everything is decided through Yandex.Maps routes and a leaflet with a pen.

What are the features?



Two major systems: TMS and GIS


As you can see, for the right plan you need to have two main systems. The first is TMS , which makes route distribution graphs by points. Here information is collected, on the basis of which this optimal graph is built. Usually it is taken from reference books within the system: for example, the coordinates of points for detour or the presence of vehicles in the company.

At the same time, traffic jams in Russia change everything in such a way that it is already problematic to plan for more than 12 hours according to general statistics. As you probably know, delivery may be delayed and more, especially during the holidays, on the spikes. That is, here we need a picture that is updated at least once an hour - and here TMS requests GIS modules. Plus, it is checked that not just the car went on such a path, but added restrictions. This car went along such a path with such a load and such a set of documents. And it is necessary, for example, to write out to the driver a power of attorney to receive the cargo, plus give a pass.

TMS simple task example


You have three couriers: the foot Vasya, the motorcyclist Ivan and the driver of the gazelle Peter. And 20 orders in the electrical store. TMS determines how to quickly dissolve everything you need, using the known parameters of couriers and points. For example, if we have two orders at the 80th and 90th kilometers of the Moscow Ring Road, one of them is a box of perforators, and the second is a screwdriver, Peter will go there for a gazelle. In this case, the "greedy" algorithm would suggest that it is not very logical to carry a screwdriver by car, but the ordering arrangement helped optimization. Further, in the city you need to calculate where Vasya will go, and where Ivan will go. Two graphs will be built: for the motorcycle and for the pedestrian (taking into account the carrying capacity and movement possibilities of each). After evaluating the points, such options will be selected that fit into all restrictions and allow you to quickly and simply dilute orders. It may also turn out that one of the orders came with a high urgency - the system uses this condition as a constraint and puts it at the beginning of the route.

Why then GIS?


Everything would be great if it were not for traffic jams. Our TMS-system considers the time of the route, for example, based on an average speed of 80 km / h on one of the roads. If we are talking about improving the accuracy of the planning procedure, and using data from the GIS system, then this rule is to take information on the distance and time of movement from the external system. That is, when weighting the vertices of the graph with the route elements, we will use the most recent data.

What algorithms are used?


Habitual for solving the traveling salesman problem. As a rule, we are talking about a complex of algorithms for a task: for example, on highly loaded systems with the impossibility of complete enumeration in more than 90% of cases, solutions are deployed on a fairly good hardware, therefore it is often considered either brute forcefully or by the branch and bound method.

Monitoring module


Another important task is control. If we are talking about delivery, as in the palm of your hand, it is not only planning for traffic, but also monitoring. When the car is equipped with GPS equipment or the courier has a corporate tablet or smartphone, or a tracker. Based on GPS data, it is, firstly, it is possible to visualize the location of each vehicle on the map, and secondly, to register events occurring with this vehicle.

Events are usually divided into two types. These are force majeure and scheduled events. A delay of 10 minutes to deliver the goods to their points is a frequent event and generally uncritical and not in need of a special alert. But if the car turned off the route and went to Ryazan - this is a reason for notification.

There are also more complex options, this is when the sensor is integrated into the car's CAN-bus and you can record, for example, the fuel level, temperature. By the way, probably, the best example of temperature control is not even frozen vegetables, but laboratory tests. For example, if a blood test is frozen in a refrigerator, it can already give false negative results for a number of infections.

Reverse flow


To deal with operational situations one of the most convenient solutions is when drivers are put in mobile terminals and, in fact, they receive tasks in the online mode. And share some of the data for customers, for example, about exactly where their goods. Accordingly, it becomes important to make a simple web-interface, understandable to the person "from the street." This is important because the TMS-system often becomes the only source of truth for all participants in the logistics process.

If an expensive or fragile cargo is busy, the customer usually insists on being included in such a system, by the way.

Analytics


3-4 years ago, everyone liked to put a big screen in the office and look at their cars and people on the map. Now this is not enough, we also need an analyst. For example, a forecast on where the risk of being late is possible, where it is inappropriate to drive transport instead of on foot couriers and so on. When forming a deviation, the attention of the dispatcher is drawn to it.

There are recommendations from him - to call someone, to warn. This is important for those who care about the client: for example, you can send an SMS machine gun 15 minutes before the courier arrives, or report the delivery status in real time.

In the TMS system, you can configure different reactions to the triggers. The first thing that is configured is deviations with alerts for the responsible persons, and only later - different statuses for clients.

Then automatic responses are planned. An example is route re-planning, recalculation of time on arrival of a car at subsequent points of the route. And the most difficult reaction is, for example, the search for a new resource, in the case of transportation, the search for a new car.
The driver calls or on the monitoring you can see the accident. The system on the basis of GPS data checks the nearest resources, checks through TMS the load and the possibility of "maneuver", and redirects it to this point. For example - there is a truck, which has a free half-body. He goes to a point with an accident, takes the goods, his route is further rescheduled, all participants in the chain are warned about the new timekeeping.

What is the struggle for?


It is clear that not a single normal person will want to get involved in the introduction of another IT system, which is all across the throat, if there is no substantial profit. So, these systems give:

Recently came across a study on the US market, in which they said that leaders are ahead of outsiders in terms of the quality of their products and delivery on time by 70%. But outsiders are not puzzled by this task, because they are outsiders.

Payback


On average from a year. But it depends, of course, on a lot. First of all, from what is most critical for the company and for what the struggle is going on, these are all the points above. And, of course, also on the size of the company, the number of orders per day, on the complexity of the infrastructure of the city, which transports, etc.

Screenshots


image
An example of the order form for the delivery of goods - all details are recorded - the time interval for loading and delivery, all addresses, the quantity and weight of the goods, etc.

image
An example of the form of viewing routes with detail. The right shows the details of the route highlighted on the left. Lilac indicates what has already been done. Exclamation marks are alerts. A green check mark is a completely spent route.

image
And one more screenshot from GIS. This is a map at the stage of building routes, so we can control that one machine does not cut circles, but moves consistently. Icons with three cubes - are not yet covered points, which also need to deliver the goods.

Ready to answer your questions in the comments or by mail AlIsaev@croc.ru.

Source: https://habr.com/ru/post/206614/


All Articles