Disclosure of Invention
The invention provides a method and a device for real-time drug delivery and a computer readable storage medium, and mainly aims to solve the problems that the type of a delivery vehicle is single and the real-time planning of a delivery path is poor in the current real-time drug delivery.
In order to achieve the above object, the present invention provides a method for real-time delivery of medicines, comprising:
acquiring order information of a delivery order, and confirming a delivery center according to the order information, wherein the order information comprises: z medicines, the quantity of each medicine, the distribution terminal point and remark information for judging whether a distribution order is an emergency order, wherein Z is an integer greater than or equal to one, and the distribution center contains various medicines meeting the order requirement and various vehicles meeting the distribution requirement;
Obtaining a road network of a distribution area, wherein a plurality of roads meeting the path planning are arranged in the distribution area, the distribution area comprises a distribution starting point and a distribution ending point, the roads in the distribution area are divided into intersections and road sections, n road sections meeting the path planning and m road sections are obtained, n is an integer greater than or equal to one, m is an integer greater than or equal to zero, and the intersections are of different types;
constructing a shortest relation of the delivery time by utilizing road sections and intersections meeting the path planning based on a preset shortest delivery time principle, and constructing a lowest relation of the delivery cost based on a preset lowest delivery cost principle;
the method for constructing the shortest relation of the delivery time by utilizing the road sections and the intersections meeting the path planning based on the shortest delivery time principle comprises the following steps:
acquiring theoretical traffic capacity of one lane in a road section i, and constructing a road section traffic relation by utilizing the theoretical traffic capacity, wherein the road section i is a road section meeting the path planning;
acquiring an ideal delivery speed of a drug delivery vehicle running on a road section i, and constructing a road section congestion relation by using the ideal delivery speed;
obtaining the average speed of a drug delivery vehicle passing through an intersection p, obtaining the intersection running speed, and constructing an intersection passing relation by using the intersection running speed;
Constructing a shortest distribution time relation based on the road section traffic relation and the road section congestion relation and the intersection traffic relation;
the road section traffic relation is as follows:
wherein (1)>For road section traffic relation->For the theoretical traffic capacity of the j-th lane in road section i,/th lane>For road section->Length of->Whether or not the vehicle is passing through the road section->If the road section is passed +.>Then->Taking 1, otherwise taking 0,>for the lane reduction factor +.>For the crossing reduction factor, < >>For the lane width reduction factor, +.>An average travel speed of the drug delivery vehicle on road section i;
the road section congestion relation is as follows:
wherein (1)>Representing road congestion relations->For the actual vehicle flow of the drug delivery vehicle through section i,/->For the daily congestion factor of road section i, +.>Is an ideal dispensing speed;
the intersection passing relation is as follows:
wherein (1)>Is crossing traffic relation->Indicating crossing->Coefficient of passage of->For the vehicle flow in the road section i to reach the next road section through the intersection pAverage arrival rate at time,/>For the distance traveled by a drug delivery vehicle from road section i through intersection p to the next road section, +.>Crossing for drug delivery vehicle>Average speed of >Judging parameters for judging whether the drug delivery vehicle passes through the intersection p, if so, the drug delivery vehicle is +.>Taking 1, otherwise taking 0;
the shortest relation of the delivery time is as follows:
wherein (1)>For the shortest distribution time, +.>Judging parameters of the traffic control for the road section i, if the road section i is under the traffic control, the road section i is under the traffic control +.>Get->Otherwise, taking 0;
the lowest relation of the distribution cost is as follows:
wherein (1)>Representing the lowest relation of distribution cost->Representing drug delivery vehicle fixed delegation costs, +.>Representing cost per unit distance of drug delivery vehicle, < >>The distance to be travelled for the drug delivery vehicle to complete the drug delivery is +.>Representing cost per unit time of drug delivery vehicle, < >>The time required to complete the drug delivery for the drug delivery vehicle;
calculating the medicine dispensing volume of the medicine required in the dispensing order by using a preset volume formula, wherein the volume formula is as follows:
wherein (1)>Representing the volume of drug dispensed, +.>Is a medicine->Is a medicine box length->Is a medicine->Is a medicine box width->Is used as a medicineArticle->Is a medicine box height->Is a medicine->Is the number of (3);
judging whether the distribution order is an emergency order or not according to the remark information;
if the delivery order is an emergency order, confirming a drug delivery vehicle from various vehicles meeting the delivery requirement according to the drug delivery volume, wherein the delivery time of the drug delivery vehicle meets the shortest delivery time relation;
If the delivery order is not an emergency order, confirming a drug delivery vehicle from various vehicles meeting delivery requirements according to the drug delivery volume, wherein the delivery cost of the drug delivery vehicle meets the lowest delivery cost relation;
determining a delivery path according to the delivery end point and the delivery start point, acquiring real-time road conditions of the delivery path, obtaining initial road conditions, and planning the delivery path by utilizing the initial road conditions to obtain the initial path;
driving a drug delivery vehicle to go to a delivery end point according to the initial path, detecting the position information of the drug delivery vehicle in real time, acquiring real-time road conditions based on the position information of the drug delivery vehicle, obtaining analysis road conditions, and judging whether the road conditions of the delivery path change or not according to the analysis road conditions and the initial road conditions;
if the road condition of the distribution path is not changed, prompting the vehicle to distribute according to the initial path;
if the road condition of the delivery path changes, planning the delivery path by utilizing the analysis road condition to obtain a target path, and prompting the drug delivery vehicle to deliver the drug according to the target path.
Optionally, the road network for obtaining a preset distribution area, where there are multiple roads meeting the path plan in the distribution area, the distribution area includes a distribution start point and a distribution end point, the roads in the distribution area are divided into intersections and road segments, and n road segments and m intersections meeting the path plan are obtained, including:
Dividing roads in a distribution area into intersections and road sections, and judging whether a distribution starting point and a distribution terminal point are positioned on the same road section or not;
if the distribution starting point and the distribution ending point are positioned on the same road section, the minimum road section number meeting the path planning is one, the minimum road junction number is zero, wherein x lanes are arranged in the road section, x is an integer greater than or equal to one, and the divided road section is also marked as a road section when the divided road section is not a complete road section;
and if the distribution starting point and the distribution ending point are positioned on different road sections, obtaining n road sections and m intersections meeting the path planning.
Optionally, the acquiring the real-time road condition based on the position information of the drug delivery vehicle to obtain the analysis road condition includes:
detecting the position of the drug delivery vehicle to obtain position information, and acquiring real-time road conditions by utilizing preset ITS based on the position information to obtain analysis road conditions.
In order to solve the above problems, the present invention also provides a real-time drug delivery device, the device comprising:
the drug order receiving module is used for acquiring order information of a delivery order and confirming a delivery center according to the order information, wherein the order information comprises: z medicines, the quantity of each medicine, the distribution terminal point and remark information for judging whether a distribution order is an emergency order, wherein Z is an integer greater than or equal to one, and the distribution center contains various medicines meeting the order requirement and various vehicles meeting the distribution requirement;
The drug delivery standard construction module is used for acquiring a road network of a delivery area, wherein a plurality of roads meeting the path planning are arranged in the delivery area, the delivery area comprises a delivery starting point and a delivery ending point, the roads in the delivery area are divided into intersections and road sections, n road sections and m intersections meeting the path planning are obtained, n is an integer greater than or equal to one, m is an integer greater than or equal to zero, and the intersections are of different types; constructing a shortest relation of the delivery time by utilizing road sections and intersections meeting the path planning based on a preset shortest delivery time principle, and constructing a lowest relation of the delivery cost based on a preset lowest delivery cost principle;
the method for constructing the shortest relation of the delivery time by utilizing the road sections and the intersections meeting the path planning based on the shortest delivery time principle comprises the following steps:
acquiring theoretical traffic capacity of one lane in a road section i, and constructing a road section traffic relation by utilizing the theoretical traffic capacity, wherein the road section i is a road section meeting the path planning;
acquiring an ideal delivery speed of a drug delivery vehicle running on a road section i, and constructing a road section congestion relation by using the ideal delivery speed;
obtaining the average speed of a drug delivery vehicle passing through an intersection p, obtaining the intersection running speed, and constructing an intersection passing relation by using the intersection running speed;
Constructing a shortest distribution time relation based on the road section traffic relation and the road section congestion relation and the intersection traffic relation;
the road section traffic relation is as follows:
wherein (1)>For road section traffic relation->For the theoretical traffic capacity of the j-th lane in road section i,/th lane>For road section->Length of->Whether or not the vehicle is passing through the road section->If the road section is passed +.>Then->Taking 1, otherwise taking 0,>for the lane reduction factor +.>For the crossing reduction factor, < >>For the lane width reduction factor, +.>An average travel speed of the drug delivery vehicle on road section i;
the road section congestion relation is as follows:
wherein (1)>Representing road congestion relations->For the actual vehicle flow of the drug delivery vehicle through section i,/->For the daily congestion factor of road section i, +.>Is an ideal dispensing speed;
the intersection passing relation is as follows:
wherein (1)>Is crossing traffic relation->Indicating crossing->Coefficient of passage of->For the average arrival rate of the vehicle flow in road section i when it reaches the next road section through intersection p,/>For the distance traveled by a drug delivery vehicle from road section i through intersection p to the next road section, +.>Crossing for drug delivery vehicle>Average speed of >Judging parameters for judging whether the drug delivery vehicle passes through the intersection p, if so, the drug delivery vehicle is +.>Taking 1, otherwise taking 0;
the shortest relation of the delivery time is as follows:
wherein (1)>For the shortest distribution time, +.>Judging parameters of traffic control for road section i, if the road sectioni traffic control, then->Get->Otherwise, taking 0;
the lowest relation of the distribution cost is as follows:
wherein (1)>Representing the lowest relation of distribution cost->Representing drug delivery vehicle fixed delegation costs, +.>Representing cost per unit distance of drug delivery vehicle, < >>The distance to be travelled for the drug delivery vehicle to complete the drug delivery is +.>Representing cost per unit time of drug delivery vehicle, < >>The time required to complete the drug delivery for the drug delivery vehicle;
the medicine order processing module is used for calculating the medicine delivery volume of the medicine required in the delivery order by using a preset volume formula, and the volume formula is as follows:
wherein (1)>Representing the volume of drug dispensed, +.>Is a medicine->Is a medicine box length->Is a medicine->Is a medicine box width->Is a medicine->Is a medicine box height->Is a medicine->Is the number of (3); judging whether the distribution order is an emergency order or not according to the remark information; if the delivery order is an emergency order, confirming a drug delivery vehicle from various vehicles meeting the delivery requirement according to the drug delivery volume, wherein the delivery time of the drug delivery vehicle meets the shortest delivery time relation; if the delivery order is not an emergency order, confirming a drug delivery vehicle from various vehicles meeting delivery requirements according to the drug delivery volume, wherein the delivery cost of the drug delivery vehicle meets the lowest delivery cost relation;
The drug order delivery module is used for determining a delivery path according to the delivery end point and the delivery start point, acquiring real-time road conditions of the delivery path, obtaining initial road conditions, and planning the delivery path by utilizing the initial road conditions to obtain the initial path; driving a drug delivery vehicle to go to a delivery end point according to the initial path, detecting the position information of the drug delivery vehicle in real time, acquiring real-time road conditions based on the position information of the drug delivery vehicle, obtaining analysis road conditions, and judging whether the road conditions of the delivery path change or not according to the analysis road conditions and the initial road conditions; if the road condition of the distribution path is not changed, prompting the vehicle to distribute according to the initial path; if the road condition of the delivery path changes, planning the delivery path by utilizing the analysis road condition to obtain a target path, and prompting the drug delivery vehicle to deliver the drug according to the target path.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
a memory storing at least one instruction; a kind of electronic device with high-pressure air-conditioning system
And the processor executes the instructions stored in the memory to realize the medicine real-time distribution method based on the big data combined with the Internet of things.
In order to solve the above problems, the present invention further provides a computer readable storage medium, where at least one instruction is stored, where the at least one instruction is executed by a processor in an electronic device to implement the above-mentioned real-time drug delivery method based on big data combined with internet of things.
To solve the problems described in the background art. The embodiment of the invention obtains the order information of the delivery order, and confirms the delivery center according to the order information, wherein the order information comprises the following steps: z medicines, the quantity of each medicine, a delivery terminal and remark information for judging whether the delivery order is an emergency order, the delivery center contains various medicines meeting the order requirement and various vehicles meeting the delivery requirement, and the medicine delivery volume of the medicines required in the delivery order is calculated by utilizing a preset volume formula. Therefore, the medicine real-time distribution method, the device, the electronic equipment and the computer readable storage medium based on the big data combined Internet of things can solve the problems that the current medicine real-time distribution has single distribution vehicle category and poor real-time planning performance on distribution paths.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a real-time drug delivery method based on big data combined with the Internet of things. The execution main body of the medicine real-time distribution method based on big data combined with the Internet of things comprises at least one of electronic equipment, such as a server side, a terminal and the like, which can be configured to execute the method provided by the embodiment of the application. In other words, the big data combined internet of things-based medicine real-time delivery method can be executed by software or hardware installed in a terminal device or a server device, and the software can be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Referring to fig. 1, a flow chart of a real-time drug delivery method based on big data combined with internet of things according to an embodiment of the present invention is shown. In this embodiment, the method for real-time drug delivery based on big data combined with internet of things includes:
s1, acquiring order information of a delivery order, and confirming a delivery center according to the order information, wherein the order information comprises: z medicines, the quantity of each medicine, the distribution terminal point and remark information for judging whether a distribution order is an emergency order, wherein Z is an integer greater than or equal to one, and the distribution center contains various medicines meeting the order requirement and various vehicles meeting the distribution requirement.
It should be explained that the order information of the delivery order is generally obtained from the e-commerce platform. In addition, the distribution center is used as a starting point of drug distribution, all distribution vehicles meeting the distribution requirement need to return to the distribution center after completing order distribution, and diseases are predicted and timely updated or replaced according to the geographic position of the distribution center and the combination of local environment, climate, eating habits, epidemic virus high-incidence period and the like.
Further, various vehicles meeting the delivery requirements are provided with the function of storing and transporting medicines, and in addition, the only criterion for measuring the medicine loading capacity is the medicine delivery volume, the maximum speed of different types of vehicles meeting the delivery requirements is generally different, and the various vehicles meeting the delivery requirements are all provided with GPS (global positioning system) for acquiring the positions of the vehicles.
It will be appreciated that the dispensing endpoint is a medication dispensing address reserved by the customer at the time of purchase of the medication.
The method comprises the steps of taking a box of medicine A from an electronic commerce platform, remarking that the order is an emergency delivery order, and requiring the medicine A to be delivered to a Z region, wherein the medicine A needs to be stored at a low temperature, calculating the volume of the box of medicine A, optimizing according to the shortest delivery time principle according to the volume and the order as the emergency order, and returning a medicine delivery vehicle to a delivery center after the medicine A is delivered to the Z region.
S2, obtaining a road network of a distribution area, wherein a plurality of roads meeting the path planning are arranged in the distribution area, the distribution area comprises a distribution starting point and a distribution end point, the roads in the distribution area are divided into intersections and road sections, n road sections and m intersections meeting the path planning are obtained, n is an integer greater than or equal to one, m is an integer greater than or equal to zero, and the intersections are of different types.
Further, the road network is a road which is formed by various roads and is mutually connected and interweaved into a net distribution in a certain area.
It is understood that the delivery area is an area including a delivery start point and a delivery end point, and the delivery path is not unique.
It is to be explained that the roads in the distribution area are divided into intersections and road sections, and whether the distribution start point and the distribution end point are positioned on the same road section is judged;
if the distribution starting point and the distribution ending point are positioned on the same road section, the minimum road section number meeting the path planning is one, the minimum road junction number is zero, wherein x lanes are arranged in the road section, x is an integer greater than or equal to one, and the divided road section is also marked as a road section when the divided road section is not a complete road section;
and if the distribution starting point and the distribution ending point are positioned on different road sections, obtaining n road sections and m intersections meeting the path planning.
Further, intersections can be geometrically divided into: cross-shaped intersections, circular intersections, X-shaped intersections, T-shaped intersections, Y-shaped intersections, staggered intersections and multi-way intersections.
And S3, constructing a shortest relation of the delivery time by utilizing a road section and an intersection meeting the path planning based on a preset shortest delivery time principle, and constructing a lowest relation of the delivery cost based on a preset lowest delivery cost principle.
It will be appreciated that the meaning of constructing the shortest relationship for delivery time cannot be measured in terms of money when the customer specifies the medication required for his or her condition.
Further, the theoretical traffic capacity of one lane in the road section i is obtained, a road section traffic relation is built by utilizing the theoretical traffic capacity, wherein the road section i is a road section meeting the path planning, the ideal delivery speed of the drug delivery vehicle on the road section i is obtained, the road section congestion relation is built by utilizing the ideal delivery speed, the average speed of the drug delivery vehicle passing through the road junction p is obtained, the road junction running speed is obtained, the road junction traffic relation is built by utilizing the road junction running speed, and the shortest delivery time relation is built on the basis of the road section traffic relation, the road section congestion relation and the road junction traffic relation.
It can be understood that the road section traffic relation is:
wherein (1)>For road section traffic relation->For the theoretical traffic capacity of the j-th lane in road section i,/th lane>For road section->Length of->Whether or not the vehicle is passing through the road section->If the road section is passed +.>Then->Taking 1, otherwise taking 0,>for the lane reduction factor +.>For the crossing reduction factor, < >>For the lane width reduction factor, +.>The average travel speed of the drug delivery vehicle over road segment i.
Further, the road section congestion relation is:
wherein, the liquid crystal display device comprises a liquid crystal display device,representing road congestion relations- >For the actual vehicle flow of the drug delivery vehicle through section i,/->For the daily congestion factor of road section i, +.>Is the ideal dispensing speed.
It can be understood that the road congestion relation establishes that the road is subjected to factors such as weather, traffic light waiting time, traffic flow and the like, so that the running time of the drug delivery vehicle is prolonged.
It is understood that drug delivery vehicles are also unable to avoid encountering road congestion based on the time-minimization principle. Illustratively, based on the shortest delivery time principle, delivery of the drug may be accomplished when the drug delivery vehicle passes through the congested road segment I. At this time, the delivery path I is planned to obtain the delivery path I, and the time required for driving the drug delivery vehicle according to the delivery path I is much longer than the time required for the drug delivery vehicle to pass through the congestion section I. Therefore, the drug delivery vehicle cannot avoid traveling through the congested road segment based on the shortest delivery time principle.
It should be explained that the intersection traffic relation is:
wherein (1)>Is crossing traffic relation->Indicating crossing->Coefficient of passage of->For the average arrival rate of the vehicle flow in road section i when it reaches the next road section through intersection p,/>For the distance traveled by a drug delivery vehicle from road section i through intersection p to the next road section, +. >Crossing for drug delivery vehicle>Average speed of>Judging parameters for judging whether the drug delivery vehicle passes through the intersection p, if so, the drug delivery vehicle is +.>Taking 1, otherwise taking 0.
It should be explained that the intersection passing relation establishes that the average arrival rate of the vehicles at different types of road intersections, intersection lengths and vehicle flows can influence the intersection passing time of the vehicles when the drug delivery vehicles pass through different types of intersection relations. Therefore, the traffic at the intersection cannot simply construct a relation according to the traffic at the road section. Further, the shortest relation of the delivery time is:
wherein (1)>For the shortest distribution time, +.>Judging parameters of the traffic control for the road section i, if the road section i is under the traffic control, the road section i is under the traffic control +.>Get->Otherwise, take 0.
It is understood that traffic control is a control measure for the passage of vehicles and people over part or all of a traffic segment for some safety reason.
It should be explained that the lowest relation of the distribution cost is:
wherein (1)>Representing the lowest relation of distribution cost->Representing drug delivery vehicle fixed delegation costs, +.>Representing cost per unit distance of drug delivery vehicle, < >>The distance to be travelled for the drug delivery vehicle to complete the drug delivery is +. >Representing cost per unit time of drug delivery vehicle, < >>The time required to complete the drug delivery for the drug delivery vehicle.
Furthermore, the cost per unit time of the drug delivery vehicle is introduced when the lowest delivery cost relation is constructed, so that the drug delivery vehicle has certain timeliness while meeting the lowest delivery cost.
S4, calculating the medicine dispensing volume of the medicine required in the dispensing order by using a preset volume formula.
Further, the volume formula is:
wherein, the liquid crystal display device comprises a liquid crystal display device,representing the volume of drug dispensed, +.>Is a medicine->Is a medicine box length->Is a medicine->Is a medicine box width->Is a medicine->Is a medicine box height->Is a medicine->Is a number of (3).
It will be appreciated that the two major factors that measure the dispensing criteria are mass and volume, and that considering that the volume of a typical drug has a much greater effect on dispensing than mass, the drug dispensing volume is selected as the primary factor for identifying the drug dispensing vehicle.
S5, judging whether the delivery order is an emergency order or not according to the remark information.
In detail, if the delivery order is an emergency order, S6 is executed to confirm the drug delivery vehicle from among various vehicles satisfying the delivery demand according to the drug delivery volume, wherein the drug delivery vehicle satisfies the delivery time minimum principle.
If the delivery order is not an emergency order, S7 is executed, and the drug delivery vehicle is confirmed from various vehicles meeting the delivery requirement according to the drug delivery volume, wherein the drug delivery vehicle meets the delivery cost minimum principle.
And S8, determining a delivery path according to the delivery end point and the delivery start point, acquiring real-time road conditions of the delivery path, obtaining initial road conditions, and planning the delivery path by utilizing the initial road conditions to obtain the initial path.
It should be explained that path planning is one of the main study contents of motion planning. The motion planning consists of path planning and track planning, the sequence points or curves connecting the start position and the end position are called paths, and the strategy for forming the paths is called path planning.
The method includes the steps of determining a delivery path A according to a delivery end point and a delivery start point, obtaining real-time road conditions of the delivery path A, obtaining initial road conditions, and finding that a road segment B in the path A cannot pass through due to traffic control. And planning the delivery path A by using the initial road condition to obtain a delivery path C, wherein the delivery path C avoids that the road section B cannot pass due to traffic control.
And S9, driving the drug delivery vehicle to go to a delivery end point according to the initial path, detecting the position information of the drug delivery vehicle in real time, and acquiring real-time road conditions based on the position information of the drug delivery vehicle to obtain analysis road conditions.
In detail, the position of the drug delivery vehicle is detected to obtain position information, real-time road conditions are obtained by utilizing preset ITS based on the position information, and analysis road conditions are obtained.
It is understood that ITS is an intelligent transportation system that can be used to obtain real-time traffic road information. Actuation of the drug delivery vehicle is typically initiated by a drug delivery person.
And S10, judging whether the road condition of the distribution path changes or not according to the analysis road condition and the initial road condition.
In detail, if the road condition of the delivery path is not changed, executing S11 to prompt the vehicle to deliver according to the initial path.
And if the road condition of the delivery path changes, executing S12, planning the delivery path by using the analyzed road condition to obtain a target path, and prompting the drug delivery vehicle to deliver the drug according to the target path.
Further, the judging standard of whether the road condition of the delivery path changes or not includes a delivery time shortest relation established based on a delivery time shortest principle and a delivery cost lowest relation established based on a delivery cost lowest principle.
To solve the problems described in the background art. The embodiment of the invention obtains the order information of the delivery order, and confirms the delivery center according to the order information, wherein the order information comprises the following steps: z medicines, the quantity of each medicine, a delivery terminal and remark information for judging whether the delivery order is an emergency order, the delivery center contains various medicines meeting the order requirement and various vehicles meeting the delivery requirement, and the medicine delivery volume of the medicines required in the delivery order is calculated by utilizing a preset volume formula. Therefore, the medicine real-time distribution method, the device, the electronic equipment and the computer readable storage medium based on the big data combined Internet of things can solve the problems that the current medicine real-time distribution has single distribution vehicle category and poor real-time planning performance on distribution paths.
Fig. 2 is a functional block diagram of a real-time drug delivery device based on big data combined with internet of things according to an embodiment of the present invention.
The medicine real-time distribution device 100 based on big data combined with the Internet of things can be installed in electronic equipment. Depending on the functions implemented, the big data combined internet of things based drug real-time delivery device 100 may include a drug order receiving module 101, a drug delivery standard building module 102, a drug order processing module 103, and a drug order delivery module 104. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
The drug order receiving module 101 is configured to obtain order information of a delivery order, and confirm a delivery center according to the order information, where the order information includes: z medicines, the quantity of each medicine, the distribution terminal point and remark information for judging whether a distribution order is an emergency order, wherein Z is an integer greater than or equal to one, and the distribution center contains various medicines meeting the order requirement and various vehicles meeting the distribution requirement;
The drug delivery standard construction module 102 is configured to obtain a road network of a delivery area, where the delivery area has a plurality of roads meeting a path plan, the delivery area includes a delivery start point and a delivery end point, the roads in the delivery area are divided into intersections and road segments, n road segments and m intersections meeting the path plan are obtained, n is an integer greater than or equal to one, m is an integer greater than or equal to zero, and the intersections are of different types; constructing a shortest relation of the delivery time by utilizing road sections and intersections meeting the path planning based on a preset shortest delivery time principle, and constructing a lowest relation of the delivery cost based on a preset lowest delivery cost principle;
the method for constructing the shortest relation of the delivery time by utilizing the road sections and the intersections meeting the path planning based on the shortest delivery time principle comprises the following steps:
acquiring theoretical traffic capacity of one lane in a road section i, and constructing a road section traffic relation by utilizing the theoretical traffic capacity, wherein the road section i is a road section meeting the path planning;
acquiring an ideal delivery speed of a drug delivery vehicle running on a road section i, and constructing a road section congestion relation by using the ideal delivery speed;
obtaining the average speed of a drug delivery vehicle passing through an intersection p, obtaining the intersection running speed, and constructing an intersection passing relation by using the intersection running speed;
Constructing a shortest distribution time relation based on the road section traffic relation and the road section congestion relation and the intersection traffic relation;
the road section traffic relation is as follows:
wherein (1)>For road section traffic relation->For the theoretical traffic capacity of the j-th lane in road section i,/th lane>For road section->Length of->Whether or not the vehicle is passing through the road section->If the road section is passed +.>Then->Taking 1, otherwise taking 0,>for the lane reduction factor +.>For the crossing reduction factor, < >>For the lane width reduction factor, +.>An average travel speed of the drug delivery vehicle on road section i;
the road section congestion relation is as follows:
wherein (1)>Representing road congestion relations->For the actual vehicle flow of the drug delivery vehicle through section i,/->For the daily congestion factor of road section i, +.>Is an ideal dispensing speed;
the intersection passing relation is as follows:
wherein (1)>Is crossing traffic relation->Indicating crossing->Coefficient of passage of->For the average arrival rate of the vehicle flow in road section i when it reaches the next road section through intersection p,/>For the distance traveled by a drug delivery vehicle from road section i through intersection p to the next road section, +.>Crossing for drug delivery vehicle>Average speed of >Judging parameters for judging whether the drug delivery vehicle passes through the intersection p, if so, the drug delivery vehicle is +.>Taking 1, otherwise taking 0;
the shortest relation of the delivery time is as follows:
wherein (1)>For the shortest distribution time, +.>Judging parameters of traffic control for road section i, ifRoad section i is traffic-controlled, then->Get->Otherwise, taking 0;
the lowest relation of the distribution cost is as follows:
wherein (1)>Representing the lowest relation of distribution cost->Representing drug delivery vehicle fixed delegation costs, +.>Representing cost per unit distance of drug delivery vehicle, < >>The distance to be travelled for the drug delivery vehicle to complete the drug delivery is +.>Representing cost per unit time of drug delivery vehicle, < >>The time required to complete the drug delivery for the drug delivery vehicle;
the medicine order processing module 103 is configured to calculate a medicine dispensing volume of a medicine required in a dispensing order by using a preset volume formula, where the volume formula is:
wherein (1)>Representing drug deliveryVolume (I)>Is a medicine->Is a medicine box length->Is a medicine->Is a medicine box width->Is a medicine->Is a medicine box height->Is a medicine->Is the number of (3); judging whether the distribution order is an emergency order or not according to the remark information; if the delivery order is an emergency order, confirming a drug delivery vehicle from various vehicles meeting the delivery requirement according to the drug delivery volume, wherein the delivery time of the drug delivery vehicle meets the shortest delivery time relation; if the delivery order is not an emergency order, confirming a drug delivery vehicle from various vehicles meeting delivery requirements according to the drug delivery volume, wherein the delivery cost of the drug delivery vehicle meets the lowest delivery cost relation;
The drug order delivery module 104 is configured to determine a delivery path according to the delivery end point and the delivery start point, obtain a real-time road condition of the delivery path, obtain an initial road condition, and plan the delivery path by using the initial road condition to obtain the initial path; driving a drug delivery vehicle to go to a delivery end point according to the initial path, detecting the position information of the drug delivery vehicle in real time, acquiring real-time road conditions based on the position information of the drug delivery vehicle, obtaining analysis road conditions, and judging whether the road conditions of the delivery path change or not according to the analysis road conditions and the initial road conditions; if the road condition of the distribution path is not changed, prompting the vehicle to distribute according to the initial path; if the road condition of the delivery path changes, planning the delivery path by utilizing the analysis road condition to obtain a target path, and prompting the drug delivery vehicle to deliver the drug according to the target path.
In detail, the modules in the hospital information management device 100 based on the internet of things in the embodiment of the present invention use the same technical means as the above-mentioned product supply chain management method based on the blockchain in fig. 1, and can produce the same technical effects, which are not described herein.
Fig. 3 is a schematic structural diagram of an electronic device for implementing a method for real-time drug delivery based on big data combined with internet of things according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program stored in the memory 11 and executable on the processor 10, such as a real-time drug delivery method program 12 based on big data combined with the internet of things.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used to store not only application software installed in the electronic device 1 and various data, such as codes of the real-time drug delivery method program 12 based on big data combined with internet of things, but also temporarily store data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the entire electronic device using various interfaces and lines, executes or executes programs or modules (e.g., a medicine real-time delivery method program based on big data combined with the internet of things, etc.) stored in the memory 11, and invokes data stored in the memory 11 to perform various functions of the electronic device 1 and process the data.
The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 3 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The real-time drug delivery method program 12 stored in the memory 11 of the electronic device 1 and based on big data and internet of things is a combination of a plurality of instructions, and when running in the processor 10, it can be implemented:
acquiring order information of a delivery order, and confirming a delivery center according to the order information, wherein the order information comprises: z medicines, the quantity of each medicine, the distribution terminal point and remark information for judging whether a distribution order is an emergency order, wherein Z is an integer greater than or equal to one, and the distribution center contains various medicines meeting the order requirement and various vehicles meeting the distribution requirement;
Obtaining a road network of a distribution area, wherein a plurality of roads meeting the path planning are arranged in the distribution area, the distribution area comprises a distribution starting point and a distribution ending point, the roads in the distribution area are divided into intersections and road sections, n road sections meeting the path planning and m road sections are obtained, n is an integer greater than or equal to one, m is an integer greater than or equal to zero, and the intersections are of different types;
constructing a shortest relation of the delivery time by utilizing road sections and intersections meeting the path planning based on a preset shortest delivery time principle, and constructing a lowest relation of the delivery cost based on a preset lowest delivery cost principle;
the method for constructing the shortest relation of the delivery time by utilizing the road sections and the intersections meeting the path planning based on the shortest delivery time principle comprises the following steps:
acquiring theoretical traffic capacity of one lane in a road section i, and constructing a road section traffic relation by utilizing the theoretical traffic capacity, wherein the road section i is a road section meeting the path planning;
acquiring an ideal delivery speed of a drug delivery vehicle running on a road section i, and constructing a road section congestion relation by using the ideal delivery speed;
obtaining the average speed of a drug delivery vehicle passing through an intersection p, obtaining the intersection running speed, and constructing an intersection passing relation by using the intersection running speed;
Constructing a shortest distribution time relation based on the road section traffic relation and the road section congestion relation and the intersection traffic relation;
the road section traffic relation is as follows:
wherein (1)>For road section traffic relation->For the theoretical traffic capacity of the j-th lane in road section i,/th lane>For road section->Length of->Whether or not the vehicle is passing through the road section->If the road section is passed +.>Then->Taking 1, otherwise taking 0,>for the lane reduction factor +.>For the crossing reduction factor, < >>For the lane width reduction factor, +.>An average travel speed of the drug delivery vehicle on road section i;
the road section congestion relation is as follows:
wherein (1)>Representing road congestion relations->For the actual vehicle flow of the drug delivery vehicle through section i,/->For the daily congestion factor of road section i, +.>Is an ideal dispensing speed;
the intersection passing relation is as follows:
wherein (1)>Is crossing traffic relation->Indicating crossing->Coefficient of passage of->For the average arrival rate of the vehicle flow in road section i when it reaches the next road section through intersection p,/>For the distance traveled by a drug delivery vehicle from road section i through intersection p to the next road section, +.>Crossing for drug delivery vehicle>Average speed of >Judging parameters for judging whether the drug delivery vehicle passes through the intersection p, if so, the drug delivery vehicle is +.>Taking 1, otherwise taking 0;
the shortest relation of the delivery time is as follows:
wherein (1)>For the shortest distribution time, +.>Judging parameters of the traffic control for the road section i, if the road section i is under the traffic control, the road section i is under the traffic control +.>Get->Otherwise, taking 0;
the lowest relation of the distribution cost is as follows:
wherein (1)>Representing the lowest relation of distribution cost->Representing drug delivery vehicle fixed delegation costs, +.>Representing cost per unit distance of drug delivery vehicle, < >>The distance to be travelled for the drug delivery vehicle to complete the drug delivery is +.>Representing cost per unit time of drug delivery vehicle, < >>The time required to complete the drug delivery for the drug delivery vehicle;
calculating the medicine dispensing volume of the medicine required in the dispensing order by using a preset volume formula, wherein the volume formula is as follows:
wherein (1)>Representing the volume of drug dispensed, +.>Is a medicine->Is a medicine box length->Is a medicine->Is a medicine box width->Is a medicine->Is a medicine box height->Is a medicine->Is the number of (3);
judging whether the distribution order is an emergency order or not according to the remark information;
if the delivery order is an emergency order, confirming a drug delivery vehicle from various vehicles meeting the delivery requirement according to the drug delivery volume, wherein the delivery time of the drug delivery vehicle meets the shortest delivery time relation;
If the delivery order is not an emergency order, confirming a drug delivery vehicle from various vehicles meeting delivery requirements according to the drug delivery volume, wherein the delivery cost of the drug delivery vehicle meets the lowest delivery cost relation;
determining a delivery path according to the delivery end point and the delivery start point, acquiring real-time road conditions of the delivery path, obtaining initial road conditions, and planning the delivery path by utilizing the initial road conditions to obtain the initial path;
driving a drug delivery vehicle to go to a delivery end point according to the initial path, detecting the position information of the drug delivery vehicle in real time, acquiring real-time road conditions based on the position information of the drug delivery vehicle, obtaining analysis road conditions, and judging whether the road conditions of the delivery path change or not according to the analysis road conditions and the initial road conditions;
if the road condition of the distribution path is not changed, prompting the vehicle to distribute according to the initial path;
if the road condition of the delivery path changes, planning the delivery path by utilizing the analysis road condition to obtain a target path, and prompting the drug delivery vehicle to deliver the drug according to the target path.
Specifically, the specific implementation method of the above instructions by the processor 10 may refer to descriptions of related steps in the corresponding embodiments of fig. 1 to 3, which are not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
acquiring order information of a delivery order, and confirming a delivery center according to the order information, wherein the order information comprises: z medicines, the quantity of each medicine, the distribution terminal point and remark information for judging whether a distribution order is an emergency order, wherein Z is an integer greater than or equal to one, and the distribution center contains various medicines meeting the order requirement and various vehicles meeting the distribution requirement;
Obtaining a road network of a distribution area, wherein a plurality of roads meeting the path planning are arranged in the distribution area, the distribution area comprises a distribution starting point and a distribution ending point, the roads in the distribution area are divided into intersections and road sections, n road sections meeting the path planning and m road sections are obtained, n is an integer greater than or equal to one, m is an integer greater than or equal to zero, and the intersections are of different types;
constructing a shortest relation of the delivery time by utilizing road sections and intersections meeting the path planning based on a preset shortest delivery time principle, and constructing a lowest relation of the delivery cost based on a preset lowest delivery cost principle;
the method for constructing the shortest relation of the delivery time by utilizing the road sections and the intersections meeting the path planning based on the shortest delivery time principle comprises the following steps:
acquiring theoretical traffic capacity of one lane in a road section i, and constructing a road section traffic relation by utilizing the theoretical traffic capacity, wherein the road section i is a road section meeting the path planning;
acquiring an ideal delivery speed of a drug delivery vehicle running on a road section i, and constructing a road section congestion relation by using the ideal delivery speed;
obtaining the average speed of a drug delivery vehicle passing through an intersection p, obtaining the intersection running speed, and constructing an intersection passing relation by using the intersection running speed;
Constructing a shortest distribution time relation based on the road section traffic relation and the road section congestion relation and the intersection traffic relation;
the road section traffic relation is as follows:
wherein (1)>For road section traffic relation->For the theoretical traffic capacity of the j-th lane in road section i,/th lane>For road section->Length of->Whether or not the vehicle is passing through the road section->If the road section is passed +.>Then->Taking 1, otherwise taking 0,>for the lane reduction factor +.>For the crossing reduction factor, < >>For the lane width reduction factor, +.>An average travel speed of the drug delivery vehicle on road section i;
the road section congestion relation is as follows:
wherein (1)>Representing road congestion relations->For the actual vehicle flow of the drug delivery vehicle through section i,/->For the daily congestion factor of road section i, +.>Is an ideal dispensing speed;
the intersection passing relation is as follows:
wherein (1)>Is crossing traffic relation->Indicating crossing->Coefficient of passage of->For the average arrival rate of the vehicle flow in road section i when it reaches the next road section through intersection p,/>For the distance traveled by a drug delivery vehicle from road section i through intersection p to the next road section, +.>Crossing for drug delivery vehicle>Average speed of >Judging parameters for judging whether the drug delivery vehicle passes through the intersection p, if so, the drug delivery vehicle is +.>Taking 1, otherwise taking 0;
the shortest relation of the delivery time is as follows:
wherein, the liquid crystal display device comprises a liquid crystal display device,for the shortest distribution time, +.>Judging parameters of the traffic control for the road section i, if the road section i is under the traffic control, the road section i is under the traffic control +.>Get->Otherwise, taking 0;
the lowest relation of the distribution cost is as follows:
wherein, the liquid crystal display device comprises a liquid crystal display device,representing the lowest relation of distribution cost->Representing drug delivery vehicle fixed delegation costs, +.>Representing cost per unit distance of drug delivery vehicle, < >>The distance to be travelled for the drug delivery vehicle to complete the drug delivery is +.>Representing cost per unit time of drug delivery vehicle, < >>The time required to complete the drug delivery for the drug delivery vehicle;
calculating the medicine dispensing volume of the medicine required in the dispensing order by using a preset volume formula, wherein the volume formula is as follows:
wherein (1)>Representing the volume of drug dispensed, +.>Is a medicine->Is a medicine box length->Is a medicine->Is a medicine box width->Is a medicine->Is a medicine box height->Is a medicine->Is the number of (3);
judging whether the distribution order is an emergency order or not according to the remark information;
if the delivery order is an emergency order, confirming a drug delivery vehicle from various vehicles meeting the delivery requirement according to the drug delivery volume, wherein the delivery time of the drug delivery vehicle meets the shortest delivery time relation;
If the delivery order is not an emergency order, confirming a drug delivery vehicle from various vehicles meeting delivery requirements according to the drug delivery volume, wherein the delivery cost of the drug delivery vehicle meets the lowest delivery cost relation;
determining a delivery path according to the delivery end point and the delivery start point, acquiring real-time road conditions of the delivery path, obtaining initial road conditions, and planning the delivery path by utilizing the initial road conditions to obtain the initial path;
driving a drug delivery vehicle to go to a delivery end point according to the initial path, detecting the position information of the drug delivery vehicle in real time, acquiring real-time road conditions based on the position information of the drug delivery vehicle, obtaining analysis road conditions, and judging whether the road conditions of the delivery path change or not according to the analysis road conditions and the initial road conditions;
if the road condition of the distribution path is not changed, prompting the vehicle to distribute according to the initial path;
if the road condition of the delivery path changes, planning the delivery path by utilizing the analysis road condition to obtain a target path, and prompting the drug delivery vehicle to deliver the drug according to the target path.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.