Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, and a computer-readable storage medium for task allocation, which can reasonably and effectively allocate a demand task of a hotel customer to a hotel service robot.
In a first aspect, an embodiment of the present application provides a method for task allocation, including: acquiring N tasks which can be executed by a service robot, wherein N is an integer greater than or equal to 1; calculating the task score of the ith task in each service robot in the plurality of service robots in the N tasks, wherein i belongs to [1, N ]; and distributing the ith task to the service robot with the highest task score value.
In the implementation process, the background server obtains the tasks executable by the service robots, calculates the task score of each task in each service robot, and allocates each task to the service robot with the highest task score value, so that the automation of the hotel service process is realized, the demand tasks of hotel customers can be reasonably and effectively allocated to the hotel service robots, and the hotel service efficiency is further improved.
With reference to the first aspect, in an embodiment, acquiring N tasks that the service robot can perform includes: acquiring at least one request task of a customer; and screening the at least one request task to obtain the N tasks.
In the implementation process, the background server screens tasks executable by the service robot from the tasks requested by the customers, and further mechanizes and intelligentizes part of hotel service work, so that the investment of human resources is reduced, and the cost is saved.
With reference to the first aspect, in another implementation manner, a kth service robot in the plurality of service robots corresponds to M task scores, where M represents a total number of tasks to be executed by the kth service robot, where the M task scores are calculated by ranking the ith task after a jth task in the kth service robot, where j represents a sequence number of the tasks to be executed in the kth service robot, and j belongs to [1, M ]; when the task score calculated after the ith task is ranked at the jth task to be executed in the kth service machine is the highest among the task scores determined by all the service robots, the step of allocating the ith task to the service robot with the highest task score value comprises the following steps: and distributing the ith task to the kth service robot, wherein the ith task is sequentially executed at the (j + 1) th service robot.
In the implementation process, the task score of each task is calculated on all possible sequences of all the service robots for each task to be distributed, the service robot with the largest task score is finally screened as the service robot for executing the task, and the task is executed after the execution sequence corresponding to the service robot with the largest task score is ranked, so that the robot for executing the task and the execution sequence in the robot are determined, and the reasonable and effective distribution of the task is realized.
With reference to the first aspect, in another embodiment, the calculating the task score of the ith task of the N tasks for each service robot of the plurality of service robots includes calculating the task score of each service robot according to the following formula:
wherein s isk,jRepresenting the task score calculated after the ith task is ranked at the jth task to be executed in the kth service machine; a iskThe weight parameter representing the kth service robot is initialized to 2; m represents the total number of tasks to be executed by the kth service robot; SumCountkRepresenting the total number of tasks executed by the kth service robot on the same day; floorkRepresenting the floor where the kth service robot is currently located; flooriRepresenting the floor where the ith task is located; floor | (Floor)k-FlooriL represents the difference value between the current floor of the kth service robot and the floor of the ith task; floorjRepresenting the floor where the jth task to be executed in the kth service robot is located;
sign(Floorj,Floori) For the piecewise function, the following is defined:
namely, whether the floor where the ith task is located and the floor where the jth task to be executed in the kth service robot is located are on the same floor or not is judged.
In the implementation process, all possible service robots are calculated in a traversal mode for each task by using a task score calculation formula, task scores in all possible service robots under all possible sequences are calculated in a traversal mode, so that the task score under all the possibilities of each task is obtained, and finally, a result corresponding to the largest task score is selected as an allocation result of the task, and effective allocation of the task is further achieved.
With reference to the first aspect, in another embodiment, after the assigning the ith task to the service robot with the highest task score, the method further includes: acquiring the total number of executed tasks of the kth service robot and an evaluation result of the kth service robot; updating the state value of the kth service robot according to the total number of the tasks executed by the kth service robot; according to the number of the evaluation results in a preset time period, a weight parameter a of the kth service robotkAnd (6) optimizing.
In the implementation process, the service robot which completes the task updates the state value, so that preparation is made for reasonable distribution of the next task at any time.
With reference to the first aspect, in another implementation, the updating the state value of the kth service robot according to the total number of tasks executed by the kth service robot includes updating the state value of the kth service robot according to the following formula:
SumCountk′=SumCountk+1
wherein, SumCountk' represents the updated total number of executed tasks of the kth service robot on the current day.
With reference to the first aspect, in another embodiment, the weighting parameter a for the kth service robot according to the number of evaluation results in a preset time periodkOptimizing, including according to the following formulakOptimizing:
allsum=sum(good)+sum(bad)+sum(normal)
wherein,a′kRepresenting the updated weight parameter of the kth service robot; sum (good) represents the number of good comments of the kth service robot in the preset time period; sum (bad) represents the number of bad comments of the kth service robot in the preset time period; sum (normal) represents the number of critics of the k-th service robot within the preset time period; and the total number of evaluations of the kth service robot in the preset time period is represented by allsum.
In the implementation process, the service robot is subjected to weight optimization regularly, and tasks are reasonably and effectively distributed to the service robot according to the weight of the service robot, so that the tasks are responded to the greatest extent, and the hotel service efficiency is further improved.
In a second aspect, an embodiment of the present application provides a task allocation apparatus, where an obtaining module is configured to obtain N tasks that can be executed by a service robot, where N is an integer greater than or equal to 1;
the processing module is used for calculating the task score of the ith task in the N tasks in each service robot in the plurality of service robots, wherein i belongs to [1, N ];
the processing module is also used for distributing the ith task to the service robot with the highest task score value.
With reference to the second aspect, in one embodiment, the obtaining module is further configured to obtain at least one requested task of the customer; and screening the at least one request task to obtain the N tasks.
With reference to the second aspect, in another embodiment, a kth service robot in the plurality of service robots corresponds to M task scores, where M represents a total number of tasks to be executed by the kth service robot, where the M task scores are calculated by ranking the ith task after a jth task in the kth service robot, where j represents a sequence number of the tasks to be executed in the kth service robot, and j ∈ [1, M ];
when the task score calculated after the ith task is ranked at the jth task to be executed in the kth service machine is the highest among the task scores determined by all the service robots, the step of allocating the ith task to the service robot with the highest task score value comprises the following steps:
and distributing the ith task to the kth service robot, wherein the ith task is sequentially executed at the (j + 1) th service robot.
With reference to the second aspect, in another embodiment, the calculating the task score of the ith task of the N tasks for each service robot of the plurality of service robots includes calculating the task score of each service robot according to the following formula:
wherein s isk,jRepresenting the task score calculated after the ith task is ranked at the jth task to be executed in the kth service machine; a iskThe weight parameter representing the kth service robot is initialized to 2; m represents the total number of tasks to be executed by the kth service robot; SumCountkRepresenting the total number of tasks executed by the kth service robot on the same day; floorkRepresenting the floor where the kth service robot is currently located; flooriRepresenting the floor where the ith task is located; floor | (Floor)k-FlooriL represents the difference value between the current floor of the kth service robot and the floor of the ith task; floorjRepresenting the floor where the jth task to be executed in the kth service robot is located;
sign(Floorj,Floori) For the piecewise function, the following is defined:
namely, whether the floor where the ith task is located and the floor where the jth task to be executed in the kth service robot is located are on the same floor or not is judged.
Bonding ofIn a second aspect, in another embodiment, the processing module is further configured to: acquiring the total number of executed tasks of the kth service robot and an evaluation result of the kth service robot; updating the state value of the kth service robot according to the total number of the tasks executed by the kth service robot; according to the number of the evaluation results in a preset time period, a weight parameter a of the kth service robotkAnd (6) optimizing.
With reference to the second aspect, in another embodiment, the updating the state value of the kth service robot according to the total number of tasks executed by the kth service robot includes updating the state value of the kth service robot according to the following formula:
SumCountk′=SumCountk+1
wherein, SumCountk' represents the updated total number of executed tasks of the kth service robot on the current day.
With reference to the second aspect, in another embodiment, the processing module is specifically configured to: the weight parameter a of the kth service robot is determined according to the number of the evaluation results in the preset time periodkOptimizing, including according to the following formulakOptimizing:
allsum=sum(good)+sum(bad)+sum(normal)
wherein, a'kRepresenting the updated weight parameter of the kth service robot; sum (good) represents the number of good comments of the kth service robot in the preset time period; sum (bad) represents the number of bad comments of the kth service robot in the preset time period; sum (normal) represents the number of critics of the k-th service robot within the preset time period; and the total number of evaluations of the kth service robot in the preset time period is represented by allsum.
In a third aspect, an embodiment of the present application provides a task allocation apparatus, including:
a processor, a memory and a bus, the processor being connected to the memory via the bus, the memory storing computer readable instructions for carrying out the steps of the method as provided in the first aspect above when the computer readable instructions are executed by the processor.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a server, the computer program implements the steps in the method as provided in the first aspect.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
A method for task allocation according to an embodiment of the present application is described below with reference to fig. 1.
Referring to fig. 1, fig. 1 is a flowchart of a task allocation method according to an embodiment of the present application, where the method may be applied to a task allocation apparatus shown in fig. 2 and fig. 3, and specifically, the method shown in fig. 1 includes:
and 110, acquiring N tasks which can be executed by the service robot.
Acquiring N tasks which can be executed by a service robot, wherein N is an integer greater than or equal to 1;
acquiring N tasks executable by the service robot, wherein the N tasks comprise:
acquiring at least one request task of a customer;
and screening the at least one request task to obtain N tasks which can be executed by the service robot.
After a hotel customer checks in a hotel, there are a variety of check-in service needs, for example: cleaning rooms, cleaning, delivering articles, washing clothes, waking up, repairing, returning rooms and the like.
As an embodiment, first, a service request of a hotel customer is obtained;
it should be noted that the obtaining manner includes at least one of a telephone in a room, a smart speaker, a filling form, a WeChat client application, and a hotel client, but the present application is not limited thereto.
It should be noted that each service request includes: the customer's request time, the customer's unique identification, the customer's room number, the floor, the service category, and the service content, but the application is not limited thereto.
The service category may be a delivery category, a room cleaning category, or a laundry category, but the present application is not limited thereto.
As an example, a hotel customer may issue Request requests, either of which may be issuediIncluding unique identification GuestID of the customeriTime of request issueiRoomNumber of room number where customer is locatediFloor where the customer isiAnd type RequestType of the requesti. Therefore, Request is requestediMay be represented as the following five-tuple: { GuestIDi,Timei,RoomNumberi,Floori,RequestTypei}。
As an embodiment, the services which can be completed by the existing service robot are all related to delivery, and the services such as repair, cleaning, waking and the like cannot be completed. Therefore, a set of all task types { ServiceType }, { ServiceType } that can be supported by one service robot takes the value of ServiceType } as a subset of RequestType, and is configured by the background server.
Specifically, when the executable task is screened, each Request is traversediAccording to the request type RequestType thereiniComparing the type { ServiceType } which can be completed by the service robot, if equal values exist, recording the Request as a task which can be completed by the service robot, and finally obtaining a Request set candidate { Request } which needs to be completedcandidateAnd other tasks which cannot be completed can be handed over to manual workLine processing follows.
In the implementation process, the background server screens tasks executable by the service robot from the tasks requested by the customers, and further mechanizes and intelligentizes part of hotel service work, so that the investment of human resources is reduced, and the cost is saved.
And 120, calculating the task score of the ith task in each service robot in the plurality of service robots in the N tasks.
Calculating the task score of the ith task in the plurality of service robots in the N tasks, wherein i belongs to [1, N ];
calculating a task score of an ith task of the N tasks for each of the plurality of service robots, including calculating the task score for each service robot according to the following formula:
wherein s isk,jRepresenting the task score calculated after the ith task is ranked at the jth task to be executed in the kth service machine;
akinitializing a weight parameter representing the kth service robot to be 2;
m represents the total number of tasks to be executed by the kth service robot;
SumCountkrepresenting the total number of tasks executed by the kth service robot on the same day;
Floorkrepresenting the current floor of the kth service robot;
Floorirepresenting the floor where the ith task is located;
|Floork-Floorii represents the difference value between the current floor of the kth service robot and the floor of the ith task;
Floorjrepresenting the floor where the jth task to be executed in the kth service robot is located;
sign(Floorj,Floori) For section boxesNumber, defined as follows:
namely, whether the floor where the ith task is located and the floor where the jth task to be executed in the kth service robot is located are on the same floor or not is judged.
The method comprises the following steps that a k-th service robot in a plurality of service robots corresponds to M task scores, wherein M represents the total number of tasks to be executed by the k-th service robot, the M task scores are obtained by calculating the ith task after the jth task is arranged in the k-th service robot, wherein j represents the sequence number of the tasks to be executed in the k-th service robot, and j belongs to [1, M ];
when the task score calculated after the ith task is ranked at the jth task to be executed in the kth service robot is the highest among the task scores determined by all the service robots, the ith task is allocated to the service robot with the highest task score value, and the method comprises the following steps:
and allocating the ith task to the kth service robot, wherein the ith task is sequentially executed in the (j + 1) th service robot.
In the implementation process, the task score of each task is calculated on all possible sequences of all the service robots for each task to be distributed, the service robot with the largest task score is finally screened as the service robot for executing the task, and the task is executed after the execution sequence corresponding to the service robot with the largest task score is ranked, so that the robot for executing the task and the execution sequence in the robot are determined, and the reasonable and effective distribution of the task is realized.
When the customer request needing to be processed is determined, the request needs to be converted into a task to be distributed to the service robots of the hotel, and for each service robot, the request of the customer is received and a service response is carried out.
As an example, a received RequestiGenerating Task corresponding to Task to be completedi(Request and Task correspond to the same subscript i). Kth service robotRobotkAny Task that needs to be processediRequest containing customer to be servediOrder pickup time in processing StartTimeiAnd a processed closing timeiThus, any TaskiCan be expressed as a triplet: { Requesti,StartTimei,CloseTimeiAnd determining the service efficiency of the service robot for each task according to the processing time of each task.
As an embodiment, at the same time, each service robot may have many tasks waiting to be executed, and there is a sequence of execution, so that the kth service robot currently has to execute the task TaskQueuekConsists of multiple tasks and forms a queue, which can be expressed as: [ Task1,Task2,…,TaskM]Wherein M represents the total number of tasks to be executed by the kth service robot;
as another embodiment, the kth service robot has other relevant states, such as the Floor where the kth service robot is currently located, during the task execution processkCumulative service duration SumTime of the daykThe total number of executed tasks SumCount on the same daykThus, the state of the kth service robot can be represented as a quadruple: { Floork,SumTimek,SumCountk,TaskQueuek}。
As an example, choose { Request }candidateA Request ofiCorresponding TaskiTaskiThe task execution method comprises the following specific steps of allocating to a kth service machine and executing at a j +1 th position in the kth service machine, wherein j represents an execution sequence number of a task in the kth service machine:
traversing all possible k e [1 ], total number of service robots]And traversing all possible j e [1, M ] in k]Task of computingiThe calculation formula is as follows:
wherein s isk,jRepresenting the task score calculated after the ith task is ranked at the jth task to be executed in the kth service machine;
akinitializing a weight parameter representing the kth service robot to be 2;
m represents the total number of tasks to be executed by the kth service robot;
SumCountkrepresenting the total number of tasks executed by the kth service robot on the same day;
Floorkrepresenting the current floor of the kth service robot;
Floorirepresenting the floor where the ith task is located;
|Floork-Flooril represents the difference value between the current floor of the kth service robot and the floor of the ith task;
Floorjrepresenting the floor where the jth task to be executed in the kth service robot is located;
sign(Floorj,Floori) For the piecewise function, the following is defined:
namely, whether the floor where the ith task is located and the floor where the jth task to be executed in the kth service robot is located are on the same floor or not is judged.
Note that the task score may indicate the priority of the task or indicate the priority of the task, but the present invention is not limited thereto.
Finally, s is selectedk,jThe combination of the set (k, j) with the largest value represents the TaskiMay be assigned to the service robot k and ranked in the service robot k for the j +1 th task to execute.
In the implementation process, all possible service robots are calculated in a traversal mode for each task by using a task score calculation formula, task scores in all possible service robots under all possible sequences are calculated in a traversal mode, so that the task score under all the possibilities of each task is obtained, and finally, a result corresponding to the largest task score is selected as an allocation result of the task, and effective allocation of the task is further achieved.
And 130, distributing the ith task to the service robot with the highest task score value.
And allocating the ith task to the service robot with the highest task score value.
After the ith task is allocated to the service robot with the highest task score value, the method further comprises the following steps:
acquiring the total number of executed tasks of the kth service robot and an evaluation result of the kth service robot;
updating the state value of the kth service robot according to the total number of the tasks executed by the kth service robot;
according to the number of the evaluation results in the preset time period, the weight parameter a of the kth service robot is setkAnd (6) optimizing.
In the implementation process, the service robot which completes the task updates the state value, so that preparation is made for reasonable distribution of the next task at any time.
Updating the state value of the kth service robot according to the total number of tasks executed by the kth service robot, wherein the updating of the state value of the kth service robot comprises the following steps of:
SumCountk′=SumCountk+1
wherein, SumCountk' represents the total number of executed tasks updated by the kth service robot on the current day.
According to the evaluation result in the preset time period, the weight parameter a of the kth service robot is setkThe optimization includes, a according to the following formulakOptimizing:
allsum=sum(good)+sum(bad)+sum(normal)
wherein, a'kRepresenting the updated weight parameter of the kth service robot; sum (good) represents the number of the k-th service robot which is good in the preset time period; sum (bad) represents the bad comment number of the kth service robot in a preset time period; sum (normal) represents the number of the k-th service robot evaluated in a preset time period; and the total number of evaluations of the kth service robot in a preset time period is represented by allsum.
As an example, a Request will be requestediFrom { RequestcandidateGet rid of it and convert the request into TaskiAssigned to the kth service RobotkAnd executing in the j +1 th position side by side to form TaskQueuekTask of j +1 th in queuej+1And StartTime is addediIs set as the current time;
then from { RequestcandidateChoose another Request to be completed, repeat the above steps until { Request }candidateThe requests in are all allocated.
By the method, the newly generated task can be distributed to the appropriate service robot, the service robot can process the task, the current tasks are minimum, and the service robot can be responded in time.
As an example, when the service Robot RobotkTask completion TaskiThen, the time at this time is set as the completion time CloseTimeiAnd to service RobotkThe state value of (2) is updated. Namely to SumCountkPerform an add-on operation and accumulate to SumTime upon completionkIn (1), the calculation is as follows:
SumCountk′=SumCountk+1
wherein, SumCountk' represents the total number of executed tasks updated by the kth service robot on the current day.
As an example, for a service Robot, RobotkThe updating of the state value may further include the following equation:
SumTime′k=SumTimek+CloseTimei-StartTimei
wherein, SumTime'kRepresenting the updated total working time of the kth service robot.
The total working time of each service robot can be determined by updating the completion time of the service robot, so that the service robot can be prepared for further evaluation of the state of the service robot.
As an example, the user may rate the service robot.
It should be noted that the evaluation manner may be a touch screen click, a call return visit, or a voice interaction, but the application is not limited thereto.
The obtained evaluation may be classified into a good score, a medium score and a poor score, or may be excellent, good or poor, or may be up, medium or down, but the present application is not limited thereto.
As an embodiment, taking good evaluation, medium evaluation and poor evaluation as examples, the background server stores data and records the data as Robotrate every time the evaluation is obtainedkEach of which indicates a service RobotkNumber of current good scores, bad scores, and medium scores.
When the robot executes a task for a period of time, feedback of the execution result of the robot needs to be processed, for example, a robot with slow action, a robot with small fault, or a robot with general stability may have a problem in the service process, and a user may give a relatively low score or evaluation.
As an embodiment, the service robot is weight-optimized according to the evaluation result of the service robot within a preset time period.
It should be noted that the preset time period may be one week, two weeks, one month, or one year, but the present application is not limited thereto.
Robot with servicekFor example, the weight of the evaluation result is optimized according to the evaluation result in one week, and the optimization formula is as follows:
allsum=sum(good)+sum(bad)+sum(normal)
wherein, a'kRepresenting the updated weight parameter of the kth service robot;
sum (good) represents the number of the k-th service robot which is good in the preset time period;
sum (bad) represents the bad comment number of the kth service robot in a preset time period;
sum (normal) represents the number of the k-th service robot evaluated in a preset time period;
and the total number of evaluations of the kth service robot in a preset time period is represented by allsum.
Updated weight parameter a 'of kth service robot'kCan be used for task score calculation of the next task to be distributed.
In the implementation process, the service robot is subjected to weight optimization regularly, and tasks are reasonably and effectively distributed to the service robot according to the weight of the service robot, so that the tasks are responded to the greatest extent, and the hotel service efficiency is further improved.
The background server obtains the tasks executable by the service robots, calculates the task score of each task in each service robot, and allocates each task to the service robot with the highest task score value, so that the automation of the hotel service process is realized, the demand tasks of hotel customers can be reasonably and effectively allocated to the hotel service robots, and the hotel service efficiency is further improved.
A method for task allocation according to an embodiment of the present application is described above with reference to fig. 1, and an apparatus for task allocation according to an embodiment of the present application is described below with reference to fig. 2 and 3.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a task allocation device according to an embodiment of the present disclosure, and thetask allocation device 200 shown in fig. 2 corresponds to the method in fig. 1 and includes functional modules capable of implementing the method in fig. 1.
In one embodiment, anapparatus 200 for task assignment shown in FIG. 2 comprises: anacquisition module 210 and aprocessing module 220;
the service robot comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring N tasks which can be executed by the service robot, and N is an integer which is more than or equal to 1;
the processing module is used for calculating the task score of the ith task in the N tasks in each service robot in the plurality of service robots, wherein i belongs to [1, N ];
the processing module is also used for distributing the ith task to the service robot with the highest task score value.
In one embodiment, the obtaining module is further configured to obtain at least one requested task of the customer; and screening the N tasks from at least one request task.
In one embodiment, a kth service robot in a plurality of service robots corresponds to M task scores, wherein M represents the total number of tasks to be executed by the kth service robot, the M task scores are calculated after the ith task is ranked in the kth service robot after the jth task to be executed, wherein j represents a sequence number of the tasks to be executed in the kth service robot, and j belongs to [1, M ];
when the task score calculated after the ith task is ranked at the jth task to be executed in the kth service robot is the highest among the task scores determined by all the service robots, the ith task is allocated to the service robot with the highest task score value, and the method comprises the following steps:
and allocating the ith task to the kth service robot, wherein the ith task is sequentially executed at the (j + 1) th service robot.
In another embodiment, calculating the task score of the ith task of the N tasks for each of the plurality of service robots includes calculating the task score for each service robot according to the following formula:
wherein s is
k,jRepresenting the task score calculated after the ith task is ranked at the jth task to be executed in the kth service machine; a is
kInitializing a weight parameter representing the kth service robot to be 2; m represents the total number of tasks to be executed by the kth service robot; SumCount
kRepresenting the total number of tasks executed by the kth service robot; floor
kRepresenting the current floor of the kth service robot; floor
iRepresenting the floor where the ith task is located; floor | (Floor)
k-Floor
iI represents the difference value between the current floor of the kth service robot and the floor of the ith task; floor
jRepresenting the floor where the jth task to be executed in the kth service robot is located; sign (Floor)
j,Floor
i) For the piecewise function, the following is defined:
namely, whether the floor where the ith task is located and the floor where the jth task to be executed in the kth service robot is located are on the same floor or not is judged.
In another embodiment, the processing module is further configured to: acquiring the total number of executed tasks of the kth service robot and an evaluation result of the kth service robot;
updating the state value of the kth service robot according to the total number of the tasks executed by the kth service robot;
according to the number of the evaluation results in the preset time period, the weight parameter a of the kth service robot is setkAnd (6) optimizing.
In another embodiment, updating the state value of the kth service robot according to the total number of tasks performed by the kth service robot includes updating the state value of the kth service robot according to the following formula:
SumCountk′=SumCountk+1
wherein, SumCountk' represents the total number of executed tasks updated by the kth service robot on the current day.
The total number SumCount of executed tasks updated by the kth service robot on the same dayk' can be used for task score calculation of the next task to be assigned.
In another embodiment, the processing module is specifically configured to: according to the evaluation result in the preset time period, the weight parameter a of the kth service robot is setkThe optimization includes, a according to the following formulakOptimizing:
allsum=sum(good)+sum(bad)+sum(normal)
wherein, a'kRepresenting the updated weight parameter of the kth service robot; sum (good) represents the number of the k-th service robot which is good in the preset time period; sum (bad) represents the bad comment number of the kth service robot in a preset time period; sum (normal) represents the number of the k-th service robot evaluated in a preset time period; and the total number of evaluations of the kth service robot in a preset time period is represented by allsum.
It should be noted that fig. 2 provides atask allocation apparatus 200, which is capable of implementing various processes related to task allocation in the method embodiment of fig. 1. The operations and/or functions of the respective modules in thetask assigning apparatus 200 are respectively for implementing the corresponding flows in the method embodiment in fig. 1. Reference may be made specifically to the description of the above method embodiments, and a detailed description is appropriately omitted herein to avoid redundancy.
Referring to fig. 3, fig. 3 is a schematic structural diagram of another task allocation apparatus according to an embodiment of the present disclosure, where thetask allocation apparatus 300 shown in fig. 3 may include: at least oneprocessor 310, such as a CPU, at least onecommunication interface 320, at least onememory 330, and at least onecommunication bus 340. Wherein thecommunication bus 340 is used for realizing direct connection communication of these components. Thecommunication interface 320 of the device in the embodiment of the present application is used for performing signaling or data communication with other node devices. Thememory 330 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). Thememory 330 may optionally be at least one memory device located remotely from the aforementioned processor. Thememory 330 stores computer readable instructions which, when executed by theprocessor 310, cause the task assigning apparatus to perform the method process of fig. 1.
An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a server, the computer program implements the method process shown in fig. 1.
In the several embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the system apparatus into only one logical functional division may be implemented in other ways, and for example, a plurality of apparatuses or components may be combined or integrated into another system, or some features may be omitted, or not implemented.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.