CN102768736A - Police resource scheduling method based on optimal route - Google Patents

Police resource scheduling method based on optimal route Download PDF

Info

Publication number
CN102768736A
CN102768736A CN2011101156259A CN201110115625A CN102768736A CN 102768736 A CN102768736 A CN 102768736A CN 2011101156259 A CN2011101156259 A CN 2011101156259A CN 201110115625 A CN201110115625 A CN 201110115625A CN 102768736 A CN102768736 A CN 102768736A
Authority
CN
China
Prior art keywords
node
road
point
end node
priority query
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011101156259A
Other languages
Chinese (zh)
Inventor
张黎明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yongtai Software Co Ltd
Original Assignee
Yongtai Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yongtai Software Co Ltd filed Critical Yongtai Software Co Ltd
Priority to CN2011101156259A priority Critical patent/CN102768736A/en
Publication of CN102768736A publication Critical patent/CN102768736A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a police resource scheduling method based on an optimal route. The method comprises the steps of marking an alarm location; searching an optimal route and calculating the time in which the destination is reached; according to the time each policeman needs to reach the alarm location, finding the policemen who can reach the alarm location in the shortest time; and, finishing scheduling. The method uses the road information entirely and comprehensively, optimizes the obtaining method for the optimal route, adds ellipses to reduce the search range of the routes and uses dictionary-type storage data to quicken the speed of the algorithm.

Description

Police strength resource regulating method based on optimal path
[technical field]
The present invention relates to a kind of algorithm, refer in particular to a kind of police strength resource regulating method based on optimal path.
[background technology]
In existing police strength scheduling of resource; The general air line distance that adopts is the shortest, uses optimal path even have, and also is simple bee-line; Reckon without traffic rules and real-time road; And travel speed above the different roads and road information, the police strength that often occurs calling arrives at the actual range of alert spot maybe be much larger than the situation of all the other police strength, and the processing alert occasions a delay.
Because the police strength scheduling requires real-time than higher, often will search for nearly ten paths simultaneously p.s. in addition, original algorithm is very unreasonable, thereby fails slowly rationally to utilize and scheduling police strength resource.
[summary of the invention]
The objective of the invention is to overcome above-mentioned defective, a kind of police strength resource regulating method based on optimal path is provided.
The objective of the invention is to realize like this: a kind of police strength resource regulating method based on optimal path, it is characterized in that: it comprises step
A), mark alert spot, utilize the spatial relationship algorithm search to obtain available police strength resource around it according to the alert spot then;
B), each police strength resource of mark is starting point, is terminal point with the alert spot, search optimal path, and obtain and arrive the destination required time,
B1), whether the starting point of inquiry police strength resource be the existing node of road network with the terminal point of alert spot, is then to change step B3 over to, otherwise continuation;
B2), starting point and/or the terminal point to non-existing node generates a dummy node with this point coordinate; And give an identity (ID) value; The closest approach of searching on a nearest road of this point adds into node data with new start point/end point as node as start point/end point in road net data; With starting point and terminal point is focus, and standardized oval, finds out all at oval inner point set;
B3), make start node equal starting point; End node also equals starting point; Covering omnidistance required time makes zero; Road between start node and the end node is empty, and with start node, end node, road and cover omnidistance required time integral body and join in the priority query as an element, this priority query with cover omnidistance required time value minimum serve as preferential;
B4), judge element in the priority query, if priority query be a sky, then turn to B7; Otherwise element of deletion from priority query, and this element judged is when if the end node of this element equates with terminal point; Then this element is added in the array of path, and turn to B7, otherwise judge whether this element end node equates with the end node of certain element in the array of path; If equate to carry out again this step, otherwise continue step;
B5), judge end node in the element from priority query, delete whether in oval inner point set, if would continue step, do not exist, turn to step B4;
B6), make the end node of the element that start node equals from priority query, to delete; Cover the omnidistance required time of element that omnidistance required time equals from priority query, to delete, find all roads that link to each other with start node, through existing traffic rules; Find out the road that can walk logical; Respectively to every road that walks logical, make end node equal the another one end points of road, call then road this time be engraved in the knotmeter at actual this crossing; Obtain real-time speed; Obtain covering time in this path with the length of road divided by real-time speed, with start node, end node, road with cover omnidistance required time and add the time of covering this path and join in the priority query, turn to step B4 as element;
B7), judge whether end node equals terminal point, is then to turn to B8, otherwise judge that whether enough the ellipse in the B2 step big, be to make then that the path is empty, turn to B9, otherwise enlarge oval and find out wherein oval inner point set, turn to B3;
B8), the start node of last element of array looks for the end node of element the priority query to equate with it one by one forward from the path; Take out the element that equates; The end node of searching certain element more forward with the start node of this element again equates with it; Till the start node of finding certain element was starting point, a group element of finding was the optimal path of being asked, and wherein last element covers omnidistance required time for covering the omnidistance needed time; Turn to B9;
B9), find optimal path;
C), arrive needed time of alert, find the shortest police strength that expends time in, accomplish scheduling according to each police strength.
Than common police strength resource regulating method; Beneficial effect of the present invention is in the optimal path search process; Combine to utilize road information fully comprehensively, and the acquisition methods of optimal path is optimized, add the oval hunting zone that reduces the path; Use dictionary type storage data, make algorithm speed faster.
[description of drawings]
Below in conjunction with detailed description of the drawings concrete structure of the present invention
Fig. 1 is a method flow diagram of the present invention
[embodiment]
As shown in Figure 1, it comprises step to the present invention relates to a kind of police strength resource regulating method based on optimal path:
A), mark alert spot, utilize the spatial relationship algorithm to search for immediately to obtain available police strength resource around it according to the alert spot then.
B), each police strength resource of mark is starting point, is terminal point with the alert spot, search optimal path, and obtain and arrive the destination required time, the concrete step that comprises:
B1), whether the starting point of inquiry police strength resource be the existing node of road network with the terminal point of alert spot, is then to change step B3 over to, otherwise continuation;
B2), starting point and/or the terminal point to non-existing node generates a dummy node with this point coordinate; And give an identity (ID) value; The closest approach of searching on a nearest road of this point adds into node data with new start point/end point as node as start point/end point in road net data; With starting point and terminal point is focus, and standardized oval, finds out all at oval inner point set Oval;
B3), make start node sv equal starting point; End node ev also equals starting point; Covering omnidistance required time cost makes zero; Road road between start node sv and the end node ev is empty, and with start node sv, end node ev, road road and cover omnidistance required time cost integral body and join among the PQueue of priority query as an element, the PQueue of this priority query with cover omnidistance required time value cost minimum serve as preferential;
B4), judge element pathinfo among the PQueue of priority query, if the PQueue of priority query be a sky, then turn to B7; Otherwise element pathinfo of deletion from the PQueue of priority query; And this element pathinfo judged, if when the end node ev of this element pathinfo equates with terminal point, then with among this element pathinfo adding path array path; And turn to B7; Otherwise judge whether this element pathinfo end node ev equates with the end node ev of certain element pathinfo in the path array of path,, otherwise continue step if equate to carry out again this step;
B5), judge end node ev among the element pathinfo from the PQueue of priority query, delete whether in oval inner point set Oval, if would continue step, do not exist, turn to step B4;
B6), make the end node ev of the element pathinfo that start node sv equals from the PQueue of priority query, to delete; Cover the omnidistance required time cost that covers of element pathinfo that omnidistance required time cost equals from the PQueue of priority query, to delete; Find all road road that link to each other with start node sv; Through existing traffic rules, find out the road that can walk logical, respectively to every road that walks logical; Make end node equal the another one end points of road; Call then road road this time be engraved in the knotmeter at actual this crossing, obtain real-time speed v, obtain covering the time tim in this path divided by real-time speed v with the length of road road; With start node sv, end node ev, road road with cover omnidistance required time cost and add the time time that covers this path and join among the PQueue of priority query, turn to step B4 as element pathinfo;
B7), judge whether end node ev equals terminal point, is then to turn to B8, otherwise judge that whether enough the ellipse in the B2 step big, be then to make path path for empty, turn to B9, otherwise enlarge oval and find out wherein oval inner point set Oval, turn to B3;
B8), the start node sv of last element pathinfo of path array looks for the end node ev of element pathinfo the PQueue of priority query to equate with it one by one forward from the path; Take out the element pathinfo that equates; The end node ev that searches certain element pathinfo more forward with the start node sv of this element pathinfo again equates with it; Till the start node sv that finds certain element pathinfo is starting point; A group element pathinfo who finds is the optimal path of being asked, and wherein last element pathinfo's covers omnidistance required time cost for covering the omnidistance needed time; Turn to B9;
B9), find optimal path.

Claims (1)

1. police strength resource regulating method based on optimal path, it is characterized in that: it comprises step
A), mark alert spot, utilize the spatial relationship algorithm search to obtain available police strength resource around it according to the alert spot then;
B), each police strength resource of mark is starting point, is terminal point with the alert spot, search optimal path, and obtain and arrive the destination required time,
B1), whether the starting point of inquiry police strength resource be the existing node of road network with the terminal point of alert spot, is then to change step B3 over to, otherwise continuation;
B2), starting point and/or the terminal point to non-existing node generates a dummy node with this point coordinate; And give an identity (ID) value; The closest approach of searching on a nearest road of this point adds into node data with new start point/end point as node as start point/end point in road net data; With starting point and terminal point is focus, and standardized oval, finds out all at oval inner point set;
B3), make start node equal starting point; End node also equals starting point; Covering omnidistance required time makes zero; Road between start node and the end node is empty, and with start node, end node, road and cover omnidistance required time integral body and join in the priority query as an element, this priority query with cover omnidistance required time value minimum serve as preferential;
B4), judge element in the priority query, if priority query be a sky, then turn to B7; Otherwise element of deletion from priority query, and this element judged is when if the end node of this element equates with terminal point; Then this element is added in the array of path, and turn to B7, otherwise judge whether this element end node equates with the end node of certain element in the array of path; If equate to carry out again this step, otherwise continue step;
B5), judge end node in the element from priority query, delete whether in oval inner point set, if would continue step, do not exist, turn to step B4;
B6), make the end node of the element that start node equals from priority query, to delete; Cover the omnidistance required time of element that omnidistance required time equals from priority query, to delete, find all roads that link to each other with start node, through existing traffic rules; Find out the road that can walk logical; Respectively to every road that walks logical, make end node equal the another one end points of road, call then road this time be engraved in the knotmeter at actual this crossing; Obtain real-time speed; Obtain covering time in this path with the length of road divided by real-time speed, with start node, end node, road with cover omnidistance required time and add the time of covering this path and join in the priority query, turn to step B4 as element;
B7), judge whether end node equals terminal point, is then to turn to B8, otherwise judge that whether enough the ellipse in the B2 step big, be to make then that the path is empty, turn to B9, otherwise enlarge oval and find out wherein oval inner point set, turn to B3;
B8), the start node of last element of array looks for the end node of element the priority query to equate with it one by one forward from the path; Take out the element that equates; The end node of searching certain element more forward with the start node of this element again equates with it; Till the start node of finding certain element was starting point, a group element of finding was the optimal path of being asked, and wherein last element covers omnidistance required time for covering the omnidistance needed time; Turn to B9;
B9), find optimal path;
C), arrive needed time of alert, find the shortest police strength that expends time in, accomplish scheduling according to each police strength.
CN2011101156259A 2011-05-04 2011-05-04 Police resource scheduling method based on optimal route Pending CN102768736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101156259A CN102768736A (en) 2011-05-04 2011-05-04 Police resource scheduling method based on optimal route

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101156259A CN102768736A (en) 2011-05-04 2011-05-04 Police resource scheduling method based on optimal route

Publications (1)

Publication Number Publication Date
CN102768736A true CN102768736A (en) 2012-11-07

Family

ID=47096130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101156259A Pending CN102768736A (en) 2011-05-04 2011-05-04 Police resource scheduling method based on optimal route

Country Status (1)

Country Link
CN (1) CN102768736A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965974A (en) * 2015-06-08 2015-10-07 浙江银江研究院有限公司 Police resource deployment evaluating and optimizing method based on coverage degree
CN106017492A (en) * 2016-05-13 2016-10-12 苏州东方智旅信息科技有限公司 Intelligent navigation method adopted in scenic region
CN106971516A (en) * 2017-05-09 2017-07-21 河北金锁安防工程股份有限公司 A kind of alert process circuit method and system for planning of safety-protection system
CN107168316A (en) * 2017-05-23 2017-09-15 华南理工大学 A kind of multiple AGV scheduling system based on single-direction and dual-direction mixed path
CN107464036A (en) * 2017-07-05 2017-12-12 北京辰安信息科技有限公司 A kind of method and its system for sending resource
CN109872482A (en) * 2019-01-21 2019-06-11 广东鑫诺安保安服务有限公司 Wisdom security protection monitoring and managing method, system and storage medium
CN110599740A (en) * 2019-10-16 2019-12-20 深圳震有科技股份有限公司 Multidimensional electronic fence early warning monitoring method and device, computer equipment and medium
CN111121750A (en) * 2019-12-26 2020-05-08 广东博智林机器人有限公司 Indoor path acquisition method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
尚东方等: "基于最佳路径的警力资源调度改进算法", 《上海电机学院学报》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965974A (en) * 2015-06-08 2015-10-07 浙江银江研究院有限公司 Police resource deployment evaluating and optimizing method based on coverage degree
CN104965974B (en) * 2015-06-08 2018-04-27 浙江银江研究院有限公司 A kind of method assessed based on coverage and optimize police strength resource deployment
CN106017492A (en) * 2016-05-13 2016-10-12 苏州东方智旅信息科技有限公司 Intelligent navigation method adopted in scenic region
CN106971516A (en) * 2017-05-09 2017-07-21 河北金锁安防工程股份有限公司 A kind of alert process circuit method and system for planning of safety-protection system
CN106971516B (en) * 2017-05-09 2019-02-26 河北金锁安防工程股份有限公司 A kind of alert process circuit method and system for planning of security system
CN107168316A (en) * 2017-05-23 2017-09-15 华南理工大学 A kind of multiple AGV scheduling system based on single-direction and dual-direction mixed path
CN107464036A (en) * 2017-07-05 2017-12-12 北京辰安信息科技有限公司 A kind of method and its system for sending resource
CN109872482A (en) * 2019-01-21 2019-06-11 广东鑫诺安保安服务有限公司 Wisdom security protection monitoring and managing method, system and storage medium
CN110599740A (en) * 2019-10-16 2019-12-20 深圳震有科技股份有限公司 Multidimensional electronic fence early warning monitoring method and device, computer equipment and medium
CN111121750A (en) * 2019-12-26 2020-05-08 广东博智林机器人有限公司 Indoor path acquisition method and device

Similar Documents

Publication Publication Date Title
CN102768736A (en) Police resource scheduling method based on optimal route
CN108303108B (en) Personalized route recommendation method based on vehicle historical track
CN105489043A (en) Real-time path planning method based on vehicular ad-hoc network
CN105938572B (en) A kind of more automatic guided vehicle paths planning methods of the pre- anti-interference of logistics storage system
CN104200650B (en) Multimode public transportation transferring method in urban congestion period
CN103149576A (en) Map matching method of floating car data
JP5017866B2 (en) Travel route search system and method, travel route search server, and travel route search program
CN106971516A (en) A kind of alert process circuit method and system for planning of safety-protection system
CN101399688A (en) Publishing method and device for distributed region lookup zone
CN103344248B (en) Optimal path calculation method for vehicle navigation system
CN111272187B (en) Optimal driving path planning method and system based on improved A-star algorithm
Louazani et al. Clustering-based algorithm for connectivity maintenance in vehicular ad-hoc networks
CN103376116B (en) Scenic route planning in automobile navigation
CN107167151B (en) Bus route setting method, route planning method and device
CN104346444B (en) A kind of the best site selection method based on the anti-spatial key inquiry of road network
CN102916879A (en) Rapid route convergence method
CN105282813B (en) Method for routing, apparatus and system under a kind of In-vehicle networking environment
CN102890876B (en) Flow ratio-based calculation method for area following interval limit value
CN108366340B (en) Urban Internet of vehicles routing method based on bus track and ant colony optimization
CN109101682B (en) Road network dual topological structure establishing method
Vachan et al. A user monitoring road traffic information collection using sumo and scheme for road surveillance with deep mind analytics and human behavior tracking
JP6460800B2 (en) Itinerary search system and itinerary search program
CN105890609A (en) Route planning method and system based on distributed dynamic road network
CN103079249A (en) Internet of Things multicast data transmission method based on traffic density
CN109086302A (en) Multiple-constrained paths querying method under timing diagram based on Skyline

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: Two A building, block R2, South District, Nanshan District science and Technology Park, Guangdong, Shenzhen 518057, China

Applicant after: IASPEC INFORMATION TECHNOLOGY CO., LTD.

Address before: Two A building, block R2, South District, Nanshan District science and Technology Park, Guangdong, Shenzhen 518057, China

Applicant before: Yongtai Software Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: IASPEC SOFTWARE CO., LTD. TO: IASPEC INFORMATION TECHNOLOGY CO., LTD.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121107