Summary of the invention
The invention provides a kind of service provider and provide when service for its client, the effective and reasonable arrangement of help client is set out and is arrived, shortens the custom queueing method of waiting time, promptly before the reservation client arrives, preengage the available service resource and the queuing situation of application information and service location according to the client by the appointment and queuing robot, select one suitably constantly to enter formation, replace the client to rank, make full use of Service Source and provide the purpose of fair, good service experience to reach, thereby improve customer satisfaction with services and loyalty to the client.
The client need arrive service provider's service location transacting business, when accepting service, can propose reserve requests to the appointment and queuing robot by following means:
● dial service provider's customer service call (as China Mobile 1860 etc.)
● by the reservation page on the Internet access service provider website
● preengage the page or send note with the palm service of WAP mode access services provider by mobile phone, trigger the service provider and preengage the page to client's mobile phone Push Service in the WAPPush mode to the customer service note number
The appointment and queuing robot is made up of reservation subsystem and queuing subsystem two parts.
In case the client preengages success, the reservation subsystem can pass to the queuing subsystem with this client's reservation application information, by lining up subsystem " reservation " in buffer memory, and the available service resource and the queuing situation of preengaging application information and service location according to the client, select one suitably constantly, this client is submitted in the queue queue, rank in proper order by arrival/submission in same formation with the client of not reservation arrival, reservation that the reservation subsystem distributes then can for this client to generate at random number, reservation number is used to confirm client's reservation behavior, and arrives back checking user's subscription identity the client.In case the client is submitted in the formation, the queuing subsystem can distribute actual queue number to give this client according to current queuing situation, make this client enter the virtual line-up process immediately, and keep actual queue number (this moment, customer status was " virtual arrival ") in the queuing subsystem, wait for that the client arrives.
The core of this appointment and queuing pattern is---before the actual arrival of client, replace the client to rank by system; When the client after confirming to have arrived, continue to line up by the client again.
This appointment and queuing of customer selecting pattern, be equivalent to client's promise can be as early as possible or the service that in the time range of reservation, arrives the place is provided, for the client of subscription time scope, the reservation subsystem will utilize note, phone etc. to this client prompting of setting out.
Select the client of this appointment and queuing pattern, after preengaging successfully, at first be in the wait submit state, show that this client's reserve requests is accepted by the queuing subsystem, but, be not submitted in the queue queue as yet owing to do not reach submission constantly; In case the client is submitted in the formation, three kinds of states will be arranged in formation, be respectively:
● virtual arrival state---show that this client does not also have actual arrival, be in the queuing process, and no show head of the queue still;
● the arrival state---show the actual arrival of this client, may be in the queuing process, also may be in head of the queue, soon called out and accept service;
● wait for the arrival state---show the actual as yet arrival of client, but be in head of the queue,
Temporarily can not be called out;
The client is in the arrival state of waiting for, normally owing to the client arrives on time, but does not also exceed the reservation term of validity; Perhaps the client on time (even in advance) arrive, but (leave as the client who waits previously etc.) for a certain reason causes this client to be discharged to head of the queue constantly in advance than prediction midway.The subsystem of lining up this moment is exchanged this client in formation successively with the actual arrival client who comes thereafter, finish until the actual arrival of this client or the reservation term of validity.
The client also has a kind of state in the queuing subsystem---the cancellation state, and promptly the client does not also arrive when the reservation term of validity finishes, and reservation is cancelled.
State and the conversion of client in the queuing subsystem, as shown in Figure 1.
In order to realize appointment and queuing, need to solve following problem: 1) when will preengage the client and submit to the queuing subsystem to rank, during with the actual arrival of assurance client, the time of waiting in line is the least possible; 2) when notify the reservation client to set out; 3) how to determine to preengage the client preengage overtime, to guarantee effective work of appointment and queuing robot.
For this reason, we have designed " progressively approximate algorithm ", are described below:
Variable and parameter-definition:
Tp: reservation is submitted to constantly
Ts: the client preengages the initial moment
Te: the client preengages and stops constantly
Tn: the client sets out/the system alert moment
Tc: certain after reservation is submitted to is constantly
TIn: the client enters formation constantly
TOut: the client preengages term of validity finish time
t0: the client estimates the travel time
tPw: at TpThe expectation waiting time (Monitoring Data that comes from the subsystem of lining up) that constantly begins to line up
tCw: at TcThe waiting time that constantly begins to line up (coming from queuing subsystem Monitoring Data) with changing constantly
Client's average latency (coming from queuing subsystem Monitoring Data)
Δ: system delay amount (minute to be unit, for example: 30 minutes)
Unit: minute or min
Basic algorithm---approximate algorithm progressively
Suppose that the client estimates that due in is TT arg et, from TStartStart constantly and calculate, find TStart-TT arg etMiddle certain moment TIn, make the reservation client at TInConstantly enter formation, at TT arg etConstantly can be called out.
1. whether appointment and queuing robot inspection current time has arrived TInInitial calculation T constantlyStartIf, also be less than, continue to wait for;
Otherwise, the appointment and queuing robot starts TInBe calculated as follows:
A) judge from now on expectation waiting time through the current client that lining up after, whether surpass reservation client's expectation due in TT arg etIf, do not surpass, wait for a δ after the time, reexamine this condition and whether satisfy;
B) otherwise, current time is exactly to arrange the reservation client to enter the suitable moment T of formationIn, the appointment and queuing robot begins to rank for the reservation client, waits for the actual arrival of client.
" progressively approximate algorithm " process flow diagram as shown in Figure 2.
The key of " progressively approximate algorithm " is to determine initial calculation T constantlyStartEstimate that with the client due in is TT arg et
Concrete reservation algorithm
The reservation algorithm is preengage application information and Service Source and queuing situation according to the client exactly, calculates and arranges the reservation client to enter the suitable moment T of formationIn, the client preengages the term of validity T finish timeOutWith the notice reservation client T constantly that sets outn, and set out and the arrival situation according to the client is actual, to TIn, TOutAnd TnThe process of revising.
Below divide the explanation of different application scene concrete reservation algorithm.
Scene 1: user expectation " is just set out now, can be obtained service as early as possible when wishing to arrive ", and the reservation arthmetic statement is as follows:
1. at once client's reserve requests is ranked;
Tin=Tp
2. estimate travel time t according to the client0With at TpThe expectation waiting time t that constantly begins to line upPwMagnitude relationship, the computing client reservation term of validity T finish timeOut
Tout=Tp+MAX(t0,tpw)+Δ
3. computing client departure time and reminding;
Tn=Tp+MAX(t0,tpw)-t0
MAX (t0, tPw)=tPwThe time, the prompting client can be at T more a little laternConstantly set out,
MAX (t0, tPw)=t0The time, remind the client to start out at once.
Scene 2: user expectation " certain time period [Ts, Te] between arrive ", the reservation arthmetic statement is as follows:
1. the client is set estimates due in TT arg et
2. be provided with and arrange the reservation client to enter the suitable moment T of formationInInitial calculation constantly
3. utilize progressively approximate algorithm calculating to arrange the reservation client to enter the suitable moment of formation
Tin
4. computing client is preengage the term of validity T finish timeOut
Tout=Te+Δ
5. computing client departure time Tn
Tn=Tt?arg?et-t0
Scene 3: user expectation " certain arrives about T constantly ", the reservation arthmetic statement is as follows:
1. the client is set estimates that due in is moment T
Tt?arg?et=T
2. be provided with and arrange the reservation client to enter the suitable moment T of formationInInitial calculation constantly
3. utilize progressively approximate algorithm calculating to arrange the reservation client to enter the suitable moment of formation
Tin
4. computing client is preengage the term of validity T finish timeOut
Tout=T+Δ
5. computing client departure time Tn
Tn=Tt?arg?et-t0
Scene 4: user expectation " certain arrives before the T constantly ", the reservation arthmetic statement is as follows:
1. the client is set estimates that due in is moment T certain moment before
Tt?arg?et=T-Δ
2. be provided with and arrange the reservation client to enter the suitable moment T of formationInInitial calculation constantly
(Δ1Be adjustment amount)
3. utilize progressively approximate algorithm calculating to arrange the reservation client to enter the suitable moment of formation
Tin
4. computing client is preengage the term of validity T finish timeOut
Tout=T+Δ
5. computing client departure time Tn
Tn=Tt?arg?et-t0
In the practical application, the service provider can be according to the needs and the actual conditions of business development, select wherein that one or more reservation algorithms provide subscription services, even at basic algorithm---the new reservation algorithm of development on the basis of approximate algorithm progressively provides novel subscription services.