Summary of the invention
For defect of the prior art, it is an object of the invention to provide a kind of elevator related personnel shortest path planning system
System.
A kind of elevator related personnel's shortest path planning system provided according to the present invention, including:
Device MA: set elevator related personnel's information and target elevator information to be arrived;
Device MB: according to target elevator information to be arrived and elevator related personnel's information, obtain the arrival under constraints
Path.
Preferably, described constraints include following any one or appoint multiple condition:
-elevator processes shortest time;
-arrival path is the shortest;
-carry out elevator process according to priority.
Preferably, described device MA includes device M1;
Device M1: set elevator related personnel's starting point s and pending elevator set D;
D={di, i=1,2 ..., n
Wherein, n is positive integer, diRepresent i-th elevator in pending elevator set D;
diUse many tuple (i, amounti,pi,ti) represent, wherein, i represents sequence number, piRepresent i-th elevator position
Point, tiRepresent that the anticipated elevator of i-th elevator processes the time;amountiRepresent elevator quantity and the number of i-th elevator merger
It is worth 1 sum, amounti=1 represent i-th elevator the most not with other elevator merger;
Described device MB includes following device:
Device M2: if n < 2, then arriving path R is from elevator related personnel's starting point s to the 1st elevator d1Location point,
Enter device M12;If n >=2, then trigger device M3 and continue executing with;
Device M3: the n portion elevator in pending elevator set D is obtained pending elevator merger set by merger sequence
D ';
D '={ dj' }, j=1,2 ..., m
Wherein, m is positive integer, dj' represents the jth portion merger elevator in pending elevator set D ';
dj' uses tuple (j, amount more than onej,pnj,tnj) represent, wherein, j represents merger sequence number, pnjRepresent the
J portion merger elevator position point, tnjRepresent that the anticipated elevator of jth portion merger elevator processes time, amountjRepresent the merger of jth portion
The elevator quantity of elevator merger and numerical value 1 sum;
Device M4: if m < 2, then arriving path R is from elevator related personnel's starting point s to the 1st merger elevator d1The position of '
Put a little, trigger device M12;If m >=2, then trigger device M5 and continue executing with;
Device M5: by location point in pending elevator merger set D ' and elevator related personnel's starting point s distance less than L or
Person estimates that elevator processes the time merger elevator less than T and puts into the first process elevator set S1, pending elevator merger set D '
In remaining merger elevator put into the second process elevator set S2, wherein, L is distance threshold, and T is time threshold;
Device M6: the current location point pc arranging elevator related personnel is elevator related personnel's starting point s, and add current
Location point pc is to arriving in the R of path;
Device M7: if the first process elevator set S1 is empty, then the merger during searching loop second processes elevator set S2
Elevator, until the second process elevator set S2 is empty, triggers device M12;Wherein, when traveling through, select location point distance to work as every time
Merger elevator nearest for front position point pc adds in arrival path R, updates the location point that current location point pc is this merger elevator,
And delete this merger elevator from the second process elevator set S2;
If the first process elevator set S1 is not empty, then triggers device M8 and continue executing with;
Device M8: if the second process elevator set S2 is empty, then the merger during searching loop first processes elevator set S1
Elevator, until the first process elevator set S1 is empty, triggers device M12: wherein, when traveling through every time, and selection location point distance ought
Merger elevator nearest for front position point pc adds in arrival path R, updates the location point that current location point pc is this merger elevator,
And delete this merger elevator from the first process elevator set S1;
If the second process elevator set S2 is not empty, then triggers device M9 and continue executing with;
Device M9: when the first process elevator set S1 and the second process elevator set S2 is not the most empty, then at first
Reason elevator set S1 selects a merger elevator to be designated as s1, processes from second and elevator set S2 selects a merger elevator note
For s2, make the distance between s1 and s2 location point the shortest, and s1 is processed deletion elevator set S1 from first, by s2 at second
Reason elevator set S2 deletes;
Device M10: if the first process elevator set S1 is empty, s1, s2 is added arrive path R the most successively, trigger device
M11;
If the first process elevator set S1 is not empty, then searching loop first processes elevator set S1, until first processes
Elevator set S1 is empty, then s1, s2 add arrival path R successively, triggers device M11;Wherein, when traveling through, select position every time
Putting a merger elevator nearest for distance current location point pc to add in arrival path R, updating current location point pc is this merger electricity
The location point of ladder, and delete this merger elevator from the first process elevator set S1;
Device M11: arranging current location point pc is the location point of s2;
If the second process elevator set S2 is empty, then trigger device M12;
If the second process elevator set S2 is not empty, then searching loop second processes elevator set S2, until second processes
Elevator set S2 is empty, triggers device M12;Wherein, when traveling through, select location point distance current location point nearest the returning of pc every time
And elevator adds in arrival path R, update the location point that current location point pc is this merger elevator, and process elevator collection from second
Close in S2 and delete this merger elevator;
Device M12: output arrives path R.
Preferably, described device M3 includes following device M:
Device M3.1: newly-built pending elevator merger set D ', and it is set as empty set;
Device M3.2: set elevator merger wheel number x=1;
Device M3.3: take out the elevator d of current smallest sequence number u from pending elevator set Du(u,amountu,pu,
tu);Wherein, puRepresent u portion elevator position point, tuRepresent that the anticipated elevator of u portion elevator processes the time;amountuRepresent the
The elevator quantity of u portion elevator merger and numerical value 1 sum;
Device M3.4: traversal calculates duOther each portion elevator d in pending elevator set Dv(v,amountv,pv,tv) it
Between mutual air line distance, wherein v | n > v > u}, pvRepresent v portion elevator position point, tvRepresent the anticipated elevator of v portion elevator
The process time;amountvRepresent elevator quantity and numerical value 1 sum of the elevator merger of v portion;
If mutually air line distance is less than air line distance threshold alpha, then from pending elevator set D, delete dv, and update du=
dw(w,amountw,pw,tw), the smaller value during wherein w is u, v, amountwFor amountuWith amountvSum, pnwFor puWith
pvThe midpoint of line, twFor tuAnd tvIn smaller value;
Device M3.5: add d at pending elevator merger set D 'x' (x, amountx,pnx,tnx), wherein amountx=
amountu, pnx=pu, tnx=tu, from pending elevator set D, after having added, delete du;
Device M3.6: judge whether currently pending elevator set D is empty, if empty set, then merger terminates, otherwise by x
After value increases by 1, trigger device M3.3 and perform.
Preferably, described elevator related personnel's shortest path planning system also includes device:
Device M13: arrival path R is sent to the terminal of elevator related personnel.
Compared with prior art, the present invention has a following beneficial effect:
The present invention provides the numerical procedure of the shortest route problem of confinement time, from the beginning of elevator related personnel's starting point,
Travel through all elevators needing repair and maintenance or inspection etc. to process and the anticipated elevator of elevator can be obtained process one of time priority and have
Effect path, and result of calculation can be sent to the mobile phone enterprising walking along the street footpath prompting of elevator related personnel;The present invention is applied to elevator
In repair and maintenance, inspection platform, repair and maintenance, inspection layout of roads method can be made to obtain actual application, for elevator, related personnel cooks up
Row line provides method, improves the daily repair and maintenance of elevator, the promptness of inspecting, shortens the daily repair and maintenance of elevator, inspection
Transition road in work.
Detailed description of the invention
Below in conjunction with specific embodiment, the present invention is described in detail.Following example will assist in the technology of this area
Personnel are further appreciated by the present invention, but limit the present invention the most in any form.It should be pointed out that, the ordinary skill to this area
For personnel, without departing from the inventive concept of the premise, it is also possible to make some changes and improvements.These broadly fall into the present invention
Protection domain.
First embodiment
A kind of elevator related personnel's shortest path planning method provided according to the present invention, comprises the steps:
Step A: set elevator related personnel's information and target elevator information to be arrived;
Step B: according to target elevator information to be arrived and elevator related personnel's information, obtain the arrival road under constraints
Footpath.
Wherein, described constraints include following any one or appoint multiple condition:
-elevator processes shortest time;
-arrival path is the shortest;
-carry out elevator process according to priority.
Second embodiment
The present embodiment can be understood as a preference of first embodiment, and wherein, described step A includes step 1, described
Step B includes that step 2, to step 12, the most also includes step 13.
Specifically, in the present embodiment, described elevator related personnel's shortest path planning method, comprise the steps:
Step 1: set elevator related personnel's starting point s and pending elevator set D;
D={di, i=1,2 ..., n
Wherein, n is positive integer, diRepresent i-th elevator in pending elevator set D;
diUse many tuple (i, amounti,pi,ti) represent, wherein, i represents sequence number, piRepresent i-th elevator position
Point, tiRepresent that the anticipated elevator of i-th elevator processes the time;amountiRepresent elevator quantity and the number of i-th elevator merger
It is worth 1 sum, amounti=1 represent i-th elevator the most not with other elevator merger, if amounti=2 represent i-th elevator
With with other 1 elevator merger;
Step 2: if n < 2, then arriving path R is from elevator related personnel's starting point s to the 1st elevator d1Location point,
Enter step 12;If n >=2, then enter step 3 and continue executing with;
Step 3: the n portion elevator in pending elevator set D is obtained pending by merger sequence (MERGE-SORT)
Elevator merger set D ';
D '={ dj' }, j=1,2 ..., m
Wherein, m is positive integer, dj' represents the jth portion merger elevator in pending elevator set D ';
dj' uses tuple (j, amount more than onej,pnj,tnj) represent, wherein, j represents merger sequence number, pnjRepresent the
J portion merger elevator position point, tnjRepresent that the anticipated elevator of jth portion merger elevator processes time, amountjRepresent the merger of jth portion
The elevator quantity of elevator merger and numerical value 1 sum;
Step 4: if m < 2, then arriving path R is from elevator related personnel's starting point s to the 1st merger elevator d1The position of '
Put a little, enter step 12;If m >=2, then enter step 5 and continue executing with;
Step 5: by location point in pending elevator merger set D ' and elevator related personnel's starting point s distance less than L or
Person estimates that elevator processes the time merger elevator less than T and puts into the first process elevator set S1, pending elevator merger set D '
In remaining merger elevator put into the second process elevator set S2, wherein, L is distance threshold, and T is time threshold;
Step 6: the current location point pc arranging elevator related personnel is elevator related personnel's starting point s, and add current
Location point pc is to arriving in the R of path;
Step 7: if the first process elevator set S1 is empty, then the merger electricity during searching loop second processes elevator set S2
Ladder, until the second process elevator set S2 is empty, enters step 12;Wherein, when traveling through, select location point distance present bit every time
Putting merger elevator nearest for a pc and add in arrival path R, renewal current location point pc is the location point of this merger elevator, and from
Second process elevator set S2 deletes this merger elevator;
If the first process elevator set S1 is not empty, then enters step 8 and continue executing with;
Step 8: if the second process elevator set S2 is empty, then the merger electricity during searching loop first processes elevator set S1
Ladder, until the first process elevator set S1 is empty, enters step 12: wherein, when traveling through every time, selects location point distance present bit
Putting merger elevator nearest for a pc and add in arrival path R, renewal current location point pc is the location point of this merger elevator, and from
First process elevator set S1 deletes this merger elevator;
If the second process elevator set S2 is not empty, then enters step 9 and continue executing with;
Step 9: when the first process elevator set S1 and the second process elevator set S2 is not the most empty, then process from first
Elevator set S1 selects a merger elevator be designated as s1, process from second and elevator set S2 selects a merger elevator be designated as
S2, makes the distance between s1 and s2 location point the shortest, and from first, s1 is processed deletion elevator set S1, is processed from second by s2
Elevator set S2 deletes;
Step 10: if the first process elevator set S1 is empty, s1, s2 is added arrive path R the most successively, enter step
11;
If the first process elevator set S1 is not empty, then searching loop first processes elevator set S1, until first processes
Elevator set S1 is empty, then s1, s2 add arrival path R successively, enters step 11;Wherein, when traveling through, select position every time
Merger elevator nearest for some distance current location point pc adds in arrival path R, and updating current location point pc is this merger elevator
Location point, and process elevator set S1 from first and delete this merger elevator;
Step 11: arranging current location point pc is the location point of s2;
If the second process elevator set S2 is empty, then enter step 12;
If the second process elevator set S2 is not empty, then searching loop second processes elevator set S2, until second processes
Elevator set S2 is empty, enters step 12;Wherein, when traveling through, select location point distance current location point nearest the returning of pc every time
And elevator adds in arrival path R, update the location point that current location point pc is this merger elevator, and process elevator collection from second
Close in S2 and delete this merger elevator;
Step 12: output arrives path R.
Further, described step 3 comprises the steps:
Step 3.1: newly-built pending elevator merger set D ', and it is set as empty set;
Step 3.2: set elevator merger wheel number x=1;
Step 3.3: take out the elevator d of current smallest sequence number u from pending elevator set Du(u,amountu,pu,tu);
Wherein, puRepresent u portion elevator position point, tuRepresent that the anticipated elevator of u portion elevator processes the time;amountuRepresent u portion
The elevator quantity of elevator merger and numerical value 1 sum;
Step 3.4: traversal calculates duOther each portion elevator d in pending elevator set Dv(v,amountv,pv,tv) it
Between mutual air line distance, wherein v | n > v > u}, pvRepresent v portion elevator position point, tvRepresent the anticipated elevator of v portion elevator
The process time;amountvRepresent elevator quantity and numerical value 1 sum of the elevator merger of v portion;
If mutually air line distance is less than air line distance threshold alpha, then from pending elevator set D, delete dv, and update du=
dw(w,amountw,pw,tw), the smaller value during wherein w is u, v, amountwFor amountuWith amountvSum, pnwFor puWith
pvThe midpoint of line, twFor tuAnd tvIn smaller value;
Step 3.5: add d at pending elevator merger set D 'x' (x, amountx,pnx,tnx), wherein amountx=
amountu, pnx=pu, tnx=tu, from pending elevator set D, after having added, delete du;
Step 3.6: judge whether currently pending elevator set D is empty, if empty set, then merger terminates, otherwise by x value
After increasing by 1, return step 3.3.
Further, described elevator related personnel's shortest path planning method, comprise the steps:
Step 13: arrival path R is sent to the terminal of elevator related personnel.
Further, elevator related personnel's terminal shows arrival path R, specifically refers to: be each by arrive in the R of path
Location point shows on the electronic chart of elevator related personnel's terminal.
3rd embodiment
With a kind of elevator related personnel's shortest path planning system provided according to the present invention, including device:
Device MA: set elevator related personnel's information and target elevator information to be arrived;
Device MB: according to target elevator information to be arrived and elevator related personnel's information, obtain the arrival under constraints
Path.
Wherein, described constraints include following any one or appoint multiple condition:
-elevator processes shortest time;
-arrival path is the shortest;
-carry out elevator process according to priority.
4th embodiment
The present embodiment can be understood as a preference of the 3rd embodiment, and wherein, described device MA includes device M1;
Device M1: set elevator related personnel's starting point s and pending elevator set D;
D={di, i=1,2 ..., n
Wherein, n is positive integer, diRepresent i-th elevator in pending elevator set D;
diUse many tuple (i, amounti,pi,ti) represent, wherein, i represents sequence number, piRepresent i-th elevator position
Point, tiRepresent that the anticipated elevator of i-th elevator processes the time;amountiRepresent elevator quantity and the number of i-th elevator merger
It is worth 1 sum, amounti=1 represent i-th elevator the most not with other elevator merger;
Described device MB includes following device:
Device M2: if n < 2, then arriving path R is from elevator related personnel's starting point s to the 1st elevator d1Location point,
Enter device M12;If n >=2, then trigger device M3 and continue executing with;
Device M3: the n portion elevator in pending elevator set D is obtained pending elevator merger set by merger sequence
D ';
D '={ dj' }, j=1,2 ..., m
Wherein, m is positive integer, dj' represents the jth portion merger elevator in pending elevator set D ';
dj' uses tuple (j, amount more than onej,pnj,tnj) represent, wherein, j represents merger sequence number, pnjRepresent the
J portion merger elevator position point, tnjRepresent that the anticipated elevator of jth portion merger elevator processes time, amountjRepresent the merger of jth portion
The elevator quantity of elevator merger and numerical value 1 sum;
Device M4: if m < 2, then arriving path R is from elevator related personnel's starting point s to the 1st merger elevator d1The position of '
Put a little, trigger device M12;If m >=2, then trigger device M5 and continue executing with;
Device M5: by location point in pending elevator merger set D ' and elevator related personnel's starting point s distance less than L or
Person estimates that elevator processes the time merger elevator less than T and puts into the first process elevator set S1, pending elevator merger set D '
In remaining merger elevator put into the second process elevator set S2, wherein, L is distance threshold, and T is time threshold;
Device M6: the current location point pc arranging elevator related personnel is elevator related personnel's starting point s, and add current
Location point pc is to arriving in the R of path;
Device M7: if the first process elevator set S1 is empty, then the merger during searching loop second processes elevator set S2
Elevator, until the second process elevator set S2 is empty, triggers device M12;Wherein, when traveling through, select location point distance to work as every time
Merger elevator nearest for front position point pc adds in arrival path R, updates the location point that current location point pc is this merger elevator,
And delete this merger elevator from the second process elevator set S2;
If the first process elevator set S1 is not empty, then triggers device M8 and continue executing with;
Device M8: if the second process elevator set S2 is empty, then the merger during searching loop first processes elevator set S1
Elevator, until the first process elevator set S1 is empty, triggers device M12: wherein, when traveling through every time, and selection location point distance ought
Merger elevator nearest for front position point pc adds in arrival path R, updates the location point that current location point pc is this merger elevator,
And delete this merger elevator from the first process elevator set S1;
If the second process elevator set S2 is not empty, then triggers device M9 and continue executing with;
Device M9: when the first process elevator set S1 and the second process elevator set S2 is not the most empty, then at first
Reason elevator set S1 selects a merger elevator to be designated as s1, processes from second and elevator set S2 selects a merger elevator note
For s2, make the distance between s1 and s2 location point the shortest, and s1 is processed deletion elevator set S1 from first, by s2 at second
Reason elevator set S2 deletes;
Device M10: if the first process elevator set S1 is empty, s1, s2 is added arrive path R the most successively, trigger device
M11;
If the first process elevator set S1 is not empty, then searching loop first processes elevator set S1, until first processes
Elevator set S1 is empty, then s1, s2 add arrival path R successively, triggers device M11;Wherein, when traveling through, select position every time
Putting a merger elevator nearest for distance current location point pc to add in arrival path R, updating current location point pc is this merger electricity
The location point of ladder, and delete this merger elevator from the first process elevator set S1;
Device M11: arranging current location point pc is the location point of s2;
If the second process elevator set S2 is empty, then trigger device M12;
If the second process elevator set S2 is not empty, then searching loop second processes elevator set S2, until second processes
Elevator set S2 is empty, triggers device M12;Wherein, when traveling through, select location point distance current location point nearest the returning of pc every time
And elevator adds in arrival path R, update the location point that current location point pc is this merger elevator, and process elevator collection from second
Close in S2 and delete this merger elevator;
Device M12: output arrives path R.
Preferably, described device M3 includes following device M:
Device M3.1: newly-built pending elevator merger set D ', and it is set as empty set;
Device M3.2: set elevator merger wheel number x=1;
Device M3.3: take out the elevator d of current smallest sequence number u from pending elevator set Du(u,amountu,pu,
tu);Wherein, puRepresent u portion elevator position point, tuRepresent that the anticipated elevator of u portion elevator processes the time;amountuRepresent the
The elevator quantity of u portion elevator merger and numerical value 1 sum;
Device M3.4: traversal calculates duOther each portion elevator d in pending elevator set Dv(v,amountv,pv,tv) it
Between mutual air line distance, wherein v | n > v > u}, pvRepresent v portion elevator position point, tvRepresent the anticipated elevator of v portion elevator
The process time;amountvRepresent elevator quantity and numerical value 1 sum of the elevator merger of v portion;
If mutually air line distance is less than air line distance threshold alpha, then from pending elevator set D, delete dv, and update du=
dw(w,amountw,pw,tw), the smaller value during wherein w is u, v, amountwFor amountuWith amountvSum, pnwFor puWith
pvThe midpoint of line, twFor tuAnd tvIn smaller value;
Device M3.5: add d at pending elevator merger set D 'x' (x, amountx,pnx,tnx), wherein amountx=
amountu, pnx=pu, tnx=tu, from pending elevator set D, after having added, delete du;
Device M3.6: judge whether currently pending elevator set D is empty, if empty set, then merger terminates, otherwise by x
After value increases by 1, trigger device M3.3 and perform.
Preferably, described elevator related personnel's shortest path planning system also includes device:
Device M13: arrival path R is sent to the terminal of elevator related personnel.
One skilled in the art will appreciate that except realizing, in pure computer readable program code mode, the system that the present invention provides
And beyond each device, module, unit, by method step is carried out programming in logic, the present invention can be provided completely
System and each device, module, unit with gate, switch, special IC, programmable logic controller (PLC) and embedding
Enter the form of the controller etc. that declines to realize identical function.So, the system of present invention offer and every device, module, list
Unit is considered a kind of hardware component, and to include in it for realizing the device of various function, module, unit also may be used
With the structure being considered as in hardware component;Can also by being used for realizing the device of various function, module, unit are considered as both can being real
The software module of existing method can be again the structure in hardware component.
Above the specific embodiment of the present invention is described.It is to be appreciated that the invention is not limited in above-mentioned
Particular implementation, those skilled in the art can make a variety of changes within the scope of the claims or revise, this not shadow
Ring the flesh and blood of the present invention.In the case of not conflicting, the feature in embodiments herein and embodiment can any phase
Combination mutually.