Control method and device and electronic equipment

By obtaining user and task information in the amusement park, calculating load balancing coefficients and determining task weight values, the problems of low queuing efficiency and waste of resources in the amusement park are solved, and more efficient resource utilization and user experience improvement are achieved.

CN120106495AActive Publication Date: 2025-06-06BEIJING ZHUOZHUO CULTURAL & CREATIVE CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510235276.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-06-06
Estimated Expiration
2045-02-28

AI Technical Summary

Technical Problem

In the amusement park, users want to experience the same game project at the same time, resulting in a large number of people queuing up and other game projects being idle, resulting in low play efficiency and waste of resources for users.

Method used

By obtaining information about users and tasks within the target range, calculating load balancing coefficients, determining the weight value of the task, and diversion control of users based on the weight value to optimize resource utilization and improve user experience.

Benefits of technology

It effectively avoids the problem of too many or too small actual number of some game projects, improves user queueing efficiency and resource utilization, and greatly improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120106495A_ABST
    Figure CN120106495A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and device and electronic equipment. The control method comprises the steps that user information and task information corresponding to a target range are acquired; wherein the target range comprises a plurality of sub-ranges, the user information at least comprises an actual number and a rated number of users corresponding to each sub-range, and the task information at least comprises a release number and a completion number of tasks corresponding to each sub-range; determining a first load value based on the actual number and the rated number, and determining a second load value based on the publication number and the completion number; determining a load balance coefficient corresponding to the target range based on the first load value and the second load value; under the condition that the load balance coefficient meets a shunting condition, for each sub-range, determining a weight value of a task corresponding to the sub-range based on an actual number and a rated number of users corresponding to the sub-range and attribute information of the task corresponding to the sub-range; and performing distribution control on the users based on the weight values.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of control technology, and in particular to a control method, device and electronic equipment. Background Art

[0002] At present, the number of attractions in amusement parks is increasing, which has attracted more and more users. Among them, there are a large number of users who want to experience the same attraction at the same time, which leads to a long queue for the attraction and may also cause other attractions in the amusement park to be idle, resulting in low user efficiency and waste of attractions resources. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a control method, device and electronic device.

[0004] In a first aspect, an embodiment of the present application provides a control method, including:

[0005] Acquire user information and task information corresponding to the target range; wherein the target range includes multiple sub-ranges, the user information includes at least the actual number and the rated number of users corresponding to each sub-range, and the task information includes at least the number of tasks published and the number of tasks completed corresponding to each sub-range;

[0006] determining a first load value based on the actual quantity and the rated quantity, and determining a second load value based on the published quantity and the completed quantity;

[0007] Determining a load balancing coefficient corresponding to the target range based on the first load value and the second load value;

[0008] In the case where the load balancing coefficient satisfies the diversion condition, for each sub-range, based on the actual number and rated number of users corresponding to the sub-range and attribute information of the task corresponding to the sub-range, determine the weight value of the task corresponding to the sub-range;

[0009] Based on the weight value, the user is diverted and controlled.

[0010] In a possible implementation manner, the traffic distribution condition includes that the load balancing coefficient is greater than or equal to a first threshold value and that the load balancing coefficient is less than the first threshold value and greater than or equal to a second threshold value;

[0011] The controlling the flow of users based on the weight value includes:

[0012] When the load balancing coefficient is greater than or equal to a first threshold, performing diversion control on the user based on the weight value according to a first diversion strategy;

[0013] When the load balancing coefficient is less than the first threshold and greater than or equal to the second threshold, the user is diverted and controlled based on the weight value according to the second diversion strategy.

[0014] In a possible implementation, the performing traffic diversion control on the user based on the weight value according to the first diversion strategy includes:

[0015] For each sub-range, based on the actual number and rated number of users corresponding to the sub-range and the number of published and completed tasks corresponding to the sub-range, determine the sub-load balancing coefficient corresponding to the sub-range;

[0016] Determine the sub-range corresponding to the maximum sub-load balancing coefficient as the target sub-range;

[0017] From all users corresponding to the target sub-range, some users are screened out and determined as target users, so as to perform diversion control on the target users.

[0018] In a possible implementation manner, screening out some users from all users corresponding to the target sub-range to determine as target users, so as to perform diversion control on the target users, includes:

[0019] For each user corresponding to the target sub-range, determining whether, among all weight values ​​corresponding to the user, there is a weight value whose difference with the weight value corresponding to the target sub-range is less than a threshold;

[0020] If so, determining that the user is the target user;

[0021] For each target user, determine a weight value having the smallest difference between all weight values ​​corresponding to the target user and the weight value corresponding to the target sub-range;

[0022] The task corresponding to the weight value having the smallest difference between the weight values ​​corresponding to the target sub-range is allocated to the target user.

[0023] In a possible implementation manner, performing traffic diversion control on users based on the weight value according to the first diversion strategy further includes:

[0024] For each sub-range, based on the actual number and rated number of users corresponding to the sub-range and the number of published and completed tasks corresponding to the sub-range, determine the sub-load balancing coefficient corresponding to the sub-range;

[0025] Determine the sub-range corresponding to the maximum sub-load balancing coefficient as the target sub-range;

[0026] For each user corresponding to the target sub-range, updating the weight value corresponding to the user according to the first updating method;

[0027] The task corresponding to the largest weight value among the updated weight values ​​is assigned to the user.

[0028] In a possible implementation, the performing traffic diversion control on the user based on the weight value according to the second traffic diversion strategy includes:

[0029] For each user, update the weight value corresponding to the user according to the second updating method;

[0030] Determining the assignment probability of each of the tasks based on the updated weight value;

[0031] Assign the task corresponding to the maximum assignment probability to the user.

[0032] In a possible implementation manner, the control method further includes:

[0033] When the load balancing coefficient does not satisfy the diversion condition, obtaining reference information of each user; wherein the reference information at least includes age, task participation, queuing behavior and recommended behavior;

[0034] Based on the age, the task participation, the queuing behavior, and the recommendation behavior, users corresponding to each sub-range are sorted to obtain a user queue;

[0035] Obtaining status information and / or user requests of the sub-range; wherein the status information at least includes whether the task corresponding to the sub-range is to be executed, in progress, or completed, and the user request represents a user request to exit the user queue corresponding to the sub-range;

[0036] The user queue is updated based on the status information and / or the user request.

[0037] In a possible implementation manner, the control method further includes:

[0038] Determine the waiting time for the user to execute the task corresponding to the sub-range based on the user queue, the rated number and the execution time corresponding to the task;

[0039] The required waiting time is transmitted to the terminal corresponding to the user, so that the terminal displays the required waiting time.

[0040] In a second aspect, an embodiment of the present application further provides a control device, including:

[0041] An acquisition module configured to acquire user information and task information corresponding to a target range; wherein the target range includes a plurality of sub-ranges, the user information includes at least an actual number and a rated number of users corresponding to each sub-range, and the task information includes at least a published number and a completed number of tasks corresponding to each sub-range;

[0042] a first determination module configured to determine a first load value based on the actual quantity and the rated quantity, and to determine a second load value based on the published quantity and the completed quantity;

[0043] a second determination module configured to determine a load balancing coefficient corresponding to the target range based on the first load value and the second load value;

[0044] A third determination module is configured to determine, for each sub-range, a weight value of the task corresponding to the sub-range based on the actual number and rated number of users corresponding to the sub-range and attribute information of the task corresponding to the sub-range when the load balancing coefficient satisfies the diversion condition;

[0045] The control module is configured to perform diversion control on users based on the weight value.

[0046] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via a bus, and when the machine-readable instructions are executed by the processor, the steps of any one of the control methods described above are performed.

[0047] In the embodiment of the present application, after determining that users within the target range need to be diverted and controlled based on the user information and task information corresponding to the target range, the weight value of the task corresponding to the sub-range is further determined to divert and control the users based on the weight value, thereby effectively avoiding the problem of a large actual number corresponding to one sub-range and a small actual number corresponding to another sub-range, and to a certain extent ensuring the user queuing efficiency and resource (sub-range) utilization, greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0049] Figure 1A flow chart of a control method provided by the present application is shown;

[0050] Figure 2 A flow chart showing a control method provided by the present application for performing diversion control on users based on weight values ​​according to a first diversion strategy;

[0051] Figure 3 A flowchart showing another method of controlling the diversion of users based on weight values ​​according to a first diversion strategy in a control method provided by the present application is shown;

[0052] Figure 4 A flow chart showing a control method provided by the present application for performing diversion control on users based on weight values ​​according to a second diversion strategy;

[0053] Figure 5 A schematic diagram of the structure of a control device provided by the present application is shown;

[0054] Figure 6 A schematic structural diagram of an electronic device provided by the present application is shown. DETAILED DESCRIPTION

[0055] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0056] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0057] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0058] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0059] It should also be understood that, although the present application has been described with reference to some specific examples, those skilled in the art will be able to realize many other equivalent forms of the present application that have the features described in the claims and are therefore within the scope of protection defined thereby.

[0060] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0061] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0062] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0063] On the one hand, the present application provides a control method. It should be noted that the application scenario of the embodiment of the present application is a scenario in which a user experiences various projects in an amusement park, wherein the target range hereinafter is the amusement park, the sub-range is a certain amusement project, and the task is for the user to determine the amusement project that he wants to experience (generating a queuing behavior for the amusement project).

[0064] Figure 1 A flow chart of a control method provided in an embodiment of the present application is shown, wherein specific steps include S101-S105.

[0065] S101, obtaining user information and task information corresponding to the target range; wherein the target range includes multiple sub-ranges, the user information includes at least the actual number and the rated number of users corresponding to each sub-range, and the task information includes at least the number of tasks published and the number of tasks completed corresponding to each sub-range.

[0066] In a specific implementation, the target range includes multiple sub-ranges, that is, the amusement park includes multiple attractions. For each sub-range within the target range, the actual number corresponding to the sub-range is obtained, wherein the actual number is the number of users in the current queue corresponding to the sub-range. The rated number of users corresponding to the sub-range is the maximum number of users that the sub-range can carry. The number of tasks issued corresponding to the sub-range is the number of users who have queued for the sub-range, and the number of tasks completed corresponding to the sub-range is the number of users who have performed preset behaviors for the sub-range.

[0067] Obtaining user information and task information corresponding to the target range means obtaining the actual number and rated number of users corresponding to each sub-range within the target range and the published number and completed number of tasks corresponding to each sub-range.

[0068] It is worth noting that the actual quantity, released quantity and completed quantity are variable.

[0069] S102, determining a first load value based on the actual quantity and the rated quantity, and determining a second load value based on the published quantity and the completed quantity.

[0070] After obtaining the actual number and rated number of users corresponding to each sub-range and the number of published tasks and the number of completed tasks corresponding to each sub-range, a first load value is determined based on the actual number and the rated number. As one example, the ratio between the actual number and the rated number is determined as the first load value.

[0071] Likewise, when the second load value is determined based on the number of releases and the number of completions, a ratio between the number of completions and the number of releases may be determined as the second load value.

[0072] S103: Determine a load balancing coefficient corresponding to the target range based on the first load value and the second load value.

[0073] After obtaining the first load value and the second load value corresponding to each sub-range, the load balancing coefficient corresponding to the target range is further determined based on the first load value and the second load value. Optionally, a first sum of the first load values ​​corresponding to all sub-ranges and a second sum of the second load values ​​corresponding to all sub-ranges may be calculated, and the first sum and the second sum may be calculated using the balancing weight corresponding to the user information and the balancing weight corresponding to the task information to obtain the load balancing coefficient corresponding to the target range. As another example, a first mean of the first load values ​​corresponding to all sub-ranges and a second mean of the second load values ​​corresponding to all sub-ranges may be calculated, and the first mean and the second mean may be calculated using the balancing weight corresponding to the user information and the balancing weight corresponding to the task information to obtain the load balancing coefficient corresponding to the target range.

[0074] In the embodiment of the present application, when determining the load balancing coefficient corresponding to the target range based on the first load value and the second load value, the following formula (1) is used.

[0075] B load =α×L queue +β×L task (1)

[0076] Among them, B load Indicates the load balancing coefficient corresponding to the target range, L queue Indicates the first load value, L task represents the second load value, α represents the balance weight corresponding to the user information, β represents the balance weight corresponding to the task information, and the sum of α and β is 1.

[0077] The load balancing coefficient represents the queue conditions within the target range, and the queue conditions may include severe congestion, moderate congestion, and no congestion.

[0078] S104, when the load balancing coefficient meets the diversion condition, for each sub-range, based on the actual number and rated number of users corresponding to the sub-range and attribute information of the task corresponding to the sub-range, determine the weight value of the task corresponding to the sub-range.

[0079] After determining the load balancing coefficient corresponding to the target range, further determine whether the load balancing coefficient meets the diversion condition. The diversion condition includes that the load balancing coefficient is greater than or equal to a first threshold value and that the load balancing coefficient is less than the first threshold value and greater than or equal to a second threshold value, and the first threshold value is greater than the second threshold value. Optionally, when determining whether the load balancing coefficient meets the diversion condition, the load balancing coefficient is compared with the first threshold value and the second threshold value respectively, or the load balancing coefficient is directly compared with the second threshold value. If the load balancing coefficient is greater than or equal to the second threshold value, it indicates that the load balancing coefficient meets the diversion condition.

[0080] When the load balancing coefficient meets the diversion condition, for each sub-range, the weight value of the task corresponding to the sub-range is determined based on the actual number of users corresponding to the sub-range, the rated number, and the attribute information of the task corresponding to the sub-range. The weight value represents the degree to which the user performs the task. For example, the weight value corresponding to task a received by user 1 is 167, and the weight value corresponding to task b received by user 1 is 180. At this time, task b is preferentially assigned to user 1.

[0081] In one example, the weight value of the task corresponding to the sub-range is determined according to the following formula (2).

[0082] W original =W load +W difficulty (2)

[0083] Among them, W original Represents the weight value of the task corresponding to the sub-range, W load Indicates the user weight value corresponding to the sub-range, W difficulty Indicates the task weight value corresponding to the sub-range.

[0084] As an example, the user weight value corresponding to the sub-range is determined using the actual number and rated number of users corresponding to the sub-range. Specifically, the first standard value / (actual number / rated number) is determined as the user weight value. For example, the first standard value is 50%, the actual number of users corresponding to sub-range A is 100 and the rated number is 30, that is, there are 100 users who want to perform the task corresponding to sub-range A. When sub-range A is a roller coaster, the corresponding task is to ride the roller coaster. At this time, there are 100 users queuing up to ride the roller coaster, and the roller coaster can carry 30 users each time. Based on this, the user weight value corresponding to sub-range A is 50 / (100 / 30)=15.

[0085] In another example, the task weight value corresponding to the sub-range is determined using the attribute information and rated quantity of the task corresponding to the sub-range, wherein the attribute information of the task at least includes the execution time required to execute the task once. Optionally, the second standard value / (execution time / rated quantity) is determined as the user weight value. As in the above example, the execution time required for sub-range A to execute a task, that is, to start a roller coaster, is 10 minutes. At this time, the task weight value corresponding to sub-range A is 50 / (10 / 30)=150.

[0086] In summary, the weight value of the task corresponding to sub-range A is 15+150=165.

[0087] S105: Perform diversion control on users based on the weight values.

[0088] After determining the weight value of the task corresponding to each sub-range, the user flow control is performed based on the weight value.

[0089] Optionally, when users are diverted and controlled based on weight values, for the scenario where the load balancing coefficient is greater than or equal to the first threshold, that is, the sub-range is severely congested, the first diversion strategy is used to control users based on the weight values; for the scenario where the load balancing coefficient is less than the first threshold and greater than or equal to the second threshold, that is, the sub-range is moderately congested, the second diversion strategy is used to control users based on the weight values.

[0090] As an example, Figure 2 A flow chart of controlling the diversion of users based on weight values ​​according to the first diversion strategy is shown, wherein the specific steps include S201-S203.

[0091] S201 , for each sub-range, determining a sub-load balancing coefficient corresponding to the sub-range based on the actual number and rated number of users corresponding to the sub-range and the published number and completed number of tasks corresponding to the sub-range.

[0092] S202: Determine a sub-range corresponding to the maximum sub-load balancing coefficient as a target sub-range.

[0093] S203, screening out some users from all users corresponding to the target sub-range to determine them as target users, so as to perform diversion control on the target users.

[0094] When the load balancing coefficient is greater than or equal to the first threshold, for each sub-range, based on the actual number and rated number of users corresponding to the sub-range and the number of published and completed tasks corresponding to the sub-range, the sub-load balancing coefficient corresponding to the sub-range is determined. Here, the method of calculating the sub-load balancing coefficient corresponding to the sub-range is the same as that of calculating the load balancing coefficient corresponding to the target range, which will not be described in detail.

[0095] After obtaining the sub-load balancing coefficient corresponding to each sub-range, the maximum sub-load balancing coefficient is determined from all the sub-load balancing coefficients, and then the sub-range corresponding to the maximum sub-load balancing coefficient is determined as the target sub-range. Among them, the target sub-range corresponds to a large number of users, and the users corresponding to the target sub-range need to be diverted and controlled.

[0096] As an example, from all users corresponding to the target sub-range, some users are screened out to be determined as target users, so as to perform diversion control on the target users. Optionally, for each user corresponding to the target sub-range, it is determined whether there is a weight value whose difference with the weight value corresponding to the target sub-range is less than a threshold value among all weight values ​​corresponding to the user.

[0097] In a specific implementation, each user may receive tasks for multiple sub-ranges, that is, queue up for multiple game items, and each task corresponds to a weight value. Therefore, when a user receives tasks for multiple sub-ranges, the user has multiple weight values. Further, the multiple weight values ​​corresponding to the user are traversed to determine whether there is a weight value whose difference with the weight value corresponding to the target sub-range is less than a threshold.

[0098] If there is a weight value whose difference between the weight values ​​corresponding to the target sub-range is less than the threshold weight value, the user is determined to be the target user, that is, other tasks can be assigned to the target user. The target user can be all users or some users corresponding to the target sub-range.

[0099] Furthermore, for each target user, the weight value with the smallest difference between the weight values ​​corresponding to the target sub-range and the weight values ​​corresponding to the target sub-range is determined, so that the task corresponding to the weight value with the smallest difference between the weight values ​​corresponding to the target sub-range is assigned to the target user.

[0100] From the above, allocating tasks other than the tasks corresponding to the target sub-range to the target user can effectively avoid a large number of users queuing up to execute the tasks corresponding to the target sub-range at the same time, which improves the user's queuing efficiency to a certain extent, and thus improves the user experience; at the same time, it can also alleviate the load corresponding to the target sub-range, that is, reduce the sub-load balancing coefficient corresponding to the target sub-range, and accordingly improve the resource utilization of the sub-ranges corresponding to other tasks.

[0101] Another example, Figure 3 Another flowchart of controlling the diversion of users based on weight values ​​according to the first diversion strategy is shown, wherein the specific steps include S301-S304.

[0102] S301 , for each sub-range, based on the actual number and rated number of users corresponding to the sub-range and the published number and completed number of tasks corresponding to the sub-range, determine a sub-load balancing coefficient corresponding to the sub-range.

[0103] S302: Determine the sub-range corresponding to the maximum sub-load balancing coefficient as the target sub-range.

[0104] S303: For each user corresponding to the target sub-range, update the weight value corresponding to the user according to the first updating method.

[0105] S304: Allocate the task corresponding to the largest weight value among the updated weight values ​​to the user.

[0106] As another example, the embodiment of the present application further provides another first diversion strategy to adapt to different diversion scenarios through different first diversion strategies. When the diversion control of users is performed based on the weight value according to another first diversion strategy, for each sub-range, based on the actual number and rated number of users corresponding to the sub-range and the number of published and completed tasks corresponding to the sub-range, the sub-load balancing coefficient corresponding to the sub-range is determined.

[0107] Similarly, after obtaining the sub-load balancing coefficient corresponding to each sub-range, the maximum sub-load balancing coefficient is determined from all the sub-load balancing coefficients, and then the sub-range corresponding to the maximum sub-load balancing coefficient is determined as the target sub-range. Among them, there are many users corresponding to the target sub-range, and the users corresponding to the target sub-range need to be diverted and controlled.

[0108] Further, for each user corresponding to the target sub-range, the weight value corresponding to the user is updated according to the first updating method, and when the user has multiple weight values, the weight value corresponding to the task corresponding to each sub-range of the user is updated. Optionally, the first updating method can refer to the following formula (3).

[0109] Wi,new =W i,original+ k×(L queue,i / L max ) (3)

[0110] Among them, W i,new represents the updated weight value corresponding to the task corresponding to sub-range i, W i,original represents the weight value of the task corresponding to sub-range i before the update, k represents the adjustment coefficient, L queue,i represents the first load value of sub-range i, L max Indicates the maximum load value of sub-range i (which can be determined by the attributes of the sub-range or set manually).

[0111] After the weight value corresponding to each user is updated, for each user, the task corresponding to the largest weight value among the updated weight values ​​is assigned to the user. Here, the task corresponding to the largest weight value among the updated weight values ​​corresponding to the user may not be the task corresponding to the target sub-range, thereby achieving the purpose of diversion control of users corresponding to the target sub-range, thereby ensuring user queuing efficiency and resource (sub-range) utilization, and greatly improving user experience.

[0112] As an example, Figure 4 A flow chart of controlling user diversion based on weight values ​​according to the second diversion strategy is shown, wherein the specific steps include S401-S403.

[0113] S401: For each user, update the weight value corresponding to the user according to the second updating method.

[0114] S402: Determine the allocation probability of each task based on the updated weight value.

[0115] S403: Allocate the task corresponding to the maximum allocation probability to the user.

[0116] When the load balancing coefficient is less than the first threshold and greater than or equal to the second threshold, for each user, the weight value corresponding to the user is updated according to the second updating method. Optionally, the first updating method may refer to the following formula (4).

[0117] W i,new =W i,original ×(1-L queue,i / L max ) (4)

[0118] Among them, W i,new represents the updated weight value corresponding to the task corresponding to sub-range i, W i,originalrepresents the weight value of the task corresponding to sub-range i before the update, L queue,i represents the first load value of sub-range i, L max Indicates the maximum load value of subrange i.

[0119] After the weight value corresponding to each user is updated, the probability of assigning each task to each user is determined based on the updated weight value corresponding to the user. Optionally, the probability of assigning each task is determined by referring to the following formula (5).

[0120] P i =W i / ∑ j=1 n W j (5)

[0121] Among them, P i represents the probability of assigning tasks to sub-range i, W i represents the weight value of the task corresponding to sub-range i, j represents the number of tasks corresponding to the user, n represents the number of sub-ranges within the target range, and W j Indicates the weight value corresponding to the task corresponding to sub-range j.

[0122] After determining the allocation probability of each task, the task corresponding to the maximum allocation probability is allocated to the user. Similarly, the task corresponding to the maximum allocation probability may not be the task corresponding to the current sub-range (a moderately crowded sub-range), thereby achieving the purpose of diverting and controlling the users corresponding to the current sub-range, thereby ensuring the user queuing efficiency and resource (sub-range) utilization, and greatly improving the user experience.

[0123] In the embodiment of the present application, after determining that users within the target range need to be diverted and controlled based on the user information and task information corresponding to the target range, the weight value of the task corresponding to the sub-range is further determined to divert and control the users based on the weight value, thereby effectively avoiding the problem of a large actual number corresponding to one sub-range and a small actual number corresponding to another sub-range, and to a certain extent ensuring the user queuing efficiency and resource (sub-range) utilization, greatly improving the user experience.

[0124] It is worth noting that when the load balancing coefficient is less than the second threshold, that is, when the load balancing coefficient does not meet the diversion condition, there is no need to perform diversion control on the user. Optionally, when the load balancing coefficient does not meet the diversion condition, reference information of each user is obtained; wherein the reference information includes at least age, task participation, queuing behavior, and recommended behavior.

[0125] Based on age, task participation, queuing behavior, and recommendation behavior, the users corresponding to each sub-range are sorted to obtain a user queue. As an example, the queuing score of each user is calculated according to the following formula (6), so as to sort the users corresponding to each sub-range in descending order of the queuing score, thereby obtaining a user queue.

[0126] Z=W 0 ×A+W 1 ×G+W 2 ×Q+W 3 ×R (6)

[0127] Among them, Z represents the user's queuing score, W 0 represents the weight coefficient of age, A represents the sub-score corresponding to the user's age, and W 1 represents the weight coefficient of task participation, G represents the sub-score corresponding to task participation, and W 2 represents the weight coefficient of queuing behavior, Q represents the sub-score corresponding to queuing behavior, and W 3 represents the weight coefficient of the recommended behavior, and R represents the sub-score corresponding to the recommended behavior.

[0128] For example, for the sub-score corresponding to age, the sub-score corresponding to the age of users aged 1-12 can be set to 1.5 points; the sub-score corresponding to the age of users aged 13-17 can be set to 1.2 points; the sub-score corresponding to the age of users aged 18-59 can be set to 1.0 points; and the sub-score corresponding to the age of users aged 60 and above can be set to 1.4 points. For the sub-score corresponding to task participation, if a user completes a task once, the sub-score corresponding to task participation can be set to 1 point; if a user completes a task three times, the sub-score corresponding to task participation can be set to 3 points. For the sub-score corresponding to queuing behavior, if a user arrives at the sub-range on time, the sub-score corresponding to queuing behavior will increase by 5 points; if a user actively exits the queue, the sub-score corresponding to queuing behavior will decrease by 5 points; if a user is late and is removed from the formal queue, the sub-score corresponding to queuing behavior will decrease by 20 points. For the sub-score corresponding to recommendation behavior, the sub-score corresponding to recommendation behavior will increase by 10 points for each new player that the user recommends to successfully receive the task corresponding to the sub-range. It should be noted that the sub-scores corresponding to the task participation and the sub-scores corresponding to the behavior score are both set with corresponding upper and lower limits. Of course, this is only one example, and the embodiments of the present application are not limited thereto.

[0129] In a specific implementation, a period for resetting the queue score is set for the operating period of the target range. For example, if the operating period of the target range is 12 hours (such as the operating hours are 9:00-21:00 every day), then the period for resetting the queue score can be set to 24 hours, and the reset can be set at any time point from 21:00 of the current day to 9:00 of the next day to avoid users with high queue scores frequently giving priority to executing tasks in the sub-range, thereby affecting the experience of other users.

[0130] After obtaining the user queue, the state information and / or user request of the sub-range is obtained; wherein the state information at least includes whether the task corresponding to the sub-range is to be executed, in progress or completed, and the user request indicates that the user requests to exit the user queue corresponding to the sub-range. Then, the user queue is updated based on the state information and / or user request.

[0131] For example, when the status information of a sub-range is to be executed, a rated number of users corresponding to the sub-range are selected from the user queue in descending order of the queue scores to execute the tasks corresponding to the sub-range, and the rated number of users are removed from the user queue. When the status information of a sub-range is in progress or completed, the user queue is updated at a preset frequency, where different preset frequencies correspond to different sub-ranges. If a user request to exit the user queue corresponding to the sub-range is received, the user is removed from the user queue.

[0132] In another example, the waiting time required for the user to execute the task corresponding to the sub-range can be determined based on the user queue, the rated number, and the execution time corresponding to the task, and the required waiting time is transmitted to the terminal corresponding to the user, so that the terminal displays the required waiting time. Wherein, the required waiting time = (number of users in the user queue / rated number) * execution time corresponding to the task.

[0133] Accordingly, users can reasonably arrange their time according to the required waiting time, which effectively improves the user experience.

[0134] On the other hand, the present application also provides a control device corresponding to a control method. Since the principle of solving the problem by the control device in the present application is similar to the above-mentioned control method of the present application, the implementation of the control device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0135] Figure 5 The schematic diagram of the structure of the control device provided in the embodiment of the present application is shown, which specifically includes:

[0136] An acquisition module 501 is configured to acquire user information and task information corresponding to a target range; wherein the target range includes multiple sub-ranges, the user information includes at least the actual number and the rated number of users corresponding to each sub-range, and the task information includes at least the number of tasks issued and the number of tasks completed corresponding to each sub-range;

[0137] A first determination module 502, configured to determine a first load value based on the actual quantity and the rated quantity, and to determine a second load value based on the published quantity and the completed quantity;

[0138] A second determination module 503, configured to determine a load balancing coefficient corresponding to the target range based on the first load value and the second load value;

[0139] A third determination module 504 is configured to determine, for each sub-range, a weight value of the task corresponding to the sub-range based on the actual number and rated number of users corresponding to the sub-range and attribute information of the task corresponding to the sub-range when the load balancing coefficient satisfies the diversion condition;

[0140] The control module 505 is configured to perform diversion control on users based on the weight value.

[0141] In yet another example, the traffic distribution condition includes that the load balancing coefficient is greater than or equal to a first threshold value and that the load balancing coefficient is less than the first threshold value and greater than or equal to a second threshold value;

[0142] The control module 505 is specifically configured as follows:

[0143] When the load balancing coefficient is greater than or equal to a first threshold, performing diversion control on the user based on the weight value according to a first diversion strategy;

[0144] When the load balancing coefficient is less than the first threshold and greater than or equal to the second threshold, the user is diverted and controlled based on the weight value according to the second diversion strategy.

[0145] In yet another example, the control module 505 is further configured to:

[0146] For each sub-range, based on the actual number and rated number of users corresponding to the sub-range and the number of published and completed tasks corresponding to the sub-range, determine the sub-load balancing coefficient corresponding to the sub-range;

[0147] Determine the sub-range corresponding to the maximum sub-load balancing coefficient as the target sub-range;

[0148] From all users corresponding to the target sub-range, some users are screened out and determined as target users, so as to perform diversion control on the target users.

[0149] In yet another example, the control module 505 is further configured to:

[0150] For each user corresponding to the target sub-range, determining whether, among all weight values ​​corresponding to the user, there is a weight value whose difference with the weight value corresponding to the target sub-range is less than a threshold;

[0151] If so, determining that the user is the target user;

[0152] For each target user, determine a weight value having the smallest difference between all weight values ​​corresponding to the target user and the weight value corresponding to the target sub-range;

[0153] The task corresponding to the weight value having the smallest difference between the weight values ​​corresponding to the target sub-range is allocated to the target user.

[0154] In yet another example, the control module 505 is further configured to:

[0155] For each sub-range, based on the actual number and rated number of users corresponding to the sub-range and the number of published and completed tasks corresponding to the sub-range, determine the sub-load balancing coefficient corresponding to the sub-range;

[0156] Determine the sub-range corresponding to the maximum sub-load balancing coefficient as the target sub-range;

[0157] For each user corresponding to the target sub-range, updating the weight value corresponding to the user according to the first updating method;

[0158] The task corresponding to the largest weight value among the updated weight values ​​is assigned to the user.

[0159] In yet another example, the control module 505 is further configured to:

[0160] For each user, update the weight value corresponding to the user according to the second updating method;

[0161] Determining the assignment probability of each of the tasks based on the updated weight value;

[0162] Assign the task corresponding to the maximum assignment probability to the user.

[0163] In yet another example, the control device further includes a queue module 506, which is configured to:

[0164] When the load balancing coefficient does not satisfy the diversion condition, obtaining reference information of each user; wherein the reference information at least includes age, task participation, queuing behavior and recommended behavior;

[0165] Based on the age, the task participation, the queuing behavior, and the recommendation behavior, users corresponding to each sub-range are sorted to obtain a user queue;

[0166] Obtaining status information and / or user requests of the sub-range; wherein the status information at least includes whether the task corresponding to the sub-range is to be executed, in progress, or completed, and the user request represents a user request to exit the user queue corresponding to the sub-range;

[0167] The user queue is updated based on the status information and / or the user request.

[0168] In yet another example, the queue module 506 is further configured to:

[0169] Determine the waiting time for the user to execute the task corresponding to the sub-range based on the user queue, the rated number and the execution time corresponding to the task;

[0170] The required waiting time is transmitted to the terminal corresponding to the user, so that the terminal displays the required waiting time.

[0171] In the embodiment of the present application, after determining that users within the target range need to be diverted and controlled based on the user information and task information corresponding to the target range, the weight value of the task corresponding to the sub-range is further determined to divert and control the users based on the weight value, thereby effectively avoiding the problem of a large actual number corresponding to one sub-range and a small actual number corresponding to another sub-range, and to a certain extent ensuring the user queuing efficiency and resource (sub-range) utilization, greatly improving the user experience.

[0172] An embodiment of the present application provides a storage medium, which is a computer-readable medium and stores a computer program. When the computer program is executed by a processor, the method provided by any embodiment of the present application is implemented, including the following steps S11 to S15:

[0173] S11, obtaining user information and task information corresponding to the target range; wherein the target range includes multiple sub-ranges, the user information includes at least the actual number and the rated number of users corresponding to each sub-range, and the task information includes at least the number of tasks issued and the number of tasks completed corresponding to each sub-range;

[0174] S12, determining a first load value based on the actual quantity and the rated quantity, and determining a second load value based on the published quantity and the completed quantity;

[0175] S13, determining a load balancing coefficient corresponding to the target range based on the first load value and the second load value;

[0176] S14, when the load balancing coefficient satisfies the diversion condition, for each sub-range, based on the actual number and rated number of users corresponding to the sub-range and attribute information of the task corresponding to the sub-range, determine the weight value of the task corresponding to the sub-range;

[0177] S15: Based on the weight value, the user is diverted and controlled.

[0178] An embodiment of the present application provides an electronic device. The structural diagram of the electronic device can be as follows: Figure 6 As shown, at least a memory 601 and a processor 602 are included, the memory 601 stores a computer program, and the processor 602 implements the method provided by any embodiment of the present application when executing the computer program on the memory 601. Exemplarily, the steps of the electronic device computer program are as follows S21 to S25:

[0179] S21, obtaining user information and task information corresponding to the target range; wherein the target range includes multiple sub-ranges, the user information includes at least the actual number and the rated number of users corresponding to each sub-range, and the task information includes at least the number of tasks issued and the number of tasks completed corresponding to each sub-range;

[0180] S22, determining a first load value based on the actual quantity and the rated quantity, and determining a second load value based on the published quantity and the completed quantity;

[0181] S23, determining a load balancing coefficient corresponding to the target range based on the first load value and the second load value;

[0182] S24, when the load balancing coefficient satisfies the diversion condition, for each sub-range, based on the actual number and rated number of users corresponding to the sub-range and attribute information of the task corresponding to the sub-range, determining a weight value of the task corresponding to the sub-range;

[0183] S25: Based on the weight value, the user is diverted and controlled.

[0184] In the embodiment of the present application, after determining that users within the target range need to be diverted and controlled based on the user information and task information corresponding to the target range, the weight value of the task corresponding to the sub-range is further determined to divert and control the users based on the weight value, thereby effectively avoiding the problem of a large actual number corresponding to one sub-range and a small actual number corresponding to another sub-range, and to a certain extent ensuring the user queuing efficiency and resource (sub-range) utilization, greatly improving the user experience.

[0185] Optionally, in this embodiment, the above-mentioned storage medium may include, but is not limited to, various media that can store program codes, such as a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk. Optionally, in this embodiment, the processor executes the method steps recorded in the above-mentioned embodiment according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment can refer to the examples described in the above-mentioned embodiment and the optional implementation mode, and this embodiment is not repeated here. Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented with a general computing device, which can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices. Optionally, they can be implemented with executable program codes of computing devices, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from here, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps in them can be made into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.

[0186] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. The elements in the claims will be interpreted broadly based on the language adopted in the claims, and are not limited to the examples described in this specification or during the implementation of the application, and the examples will be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, and the true scope and spirit are indicated by the following claims and the full scope of their equivalents.

[0187] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. For example, those of ordinary skill in the art can use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the application. This should not be interpreted as an intention that a disclosed feature that does not require protection is necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a specific disclosed embodiment. Thus, the following claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently used as a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of the present application should be determined with reference to the attached claims and the full scope of equivalent forms granted by these claims.

[0188] Multiple embodiments of the present application are described in detail above, but the present application is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications to the embodiments based on the concept of the present application, and these variations and modifications should all fall within the scope of protection required by the present application.

Claims

1. A control method, characterized in that: include: Acquire user information and task information corresponding to the target range; wherein the target range includes multiple sub-ranges, the user information includes at least the actual number and the rated number of users corresponding to each sub-range, and the task information includes at least the number of tasks published and the number of tasks completed corresponding to each sub-range; determining a first load value based on the actual quantity and the rated quantity, and determining a second load value based on the published quantity and the completed quantity; Determining a load balancing coefficient corresponding to the target range based on the first load value and the second load value; In the case where the load balancing coefficient satisfies the diversion condition, for each sub-range, based on the actual number and rated number of users corresponding to the sub-range and attribute information of the task corresponding to the sub-range, determine the weight value of the task corresponding to the sub-range; Based on the weight value, the user is diverted and controlled.

2. The control method according to claim 1, characterized in that: The traffic distribution condition includes that the load balancing coefficient is greater than or equal to a first threshold value and that the load balancing coefficient is less than the first threshold value and greater than or equal to a second threshold value; The controlling the flow of users based on the weight value includes: When the load balancing coefficient is greater than or equal to a first threshold, performing diversion control on the user based on the weight value according to a first diversion strategy; When the load balancing coefficient is less than the first threshold and greater than or equal to the second threshold, the user is diverted and controlled based on the weight value according to the second diversion strategy.

3. The control method according to claim 2, characterized in that: The step of performing traffic diversion control on the user based on the weight value according to the first diversion strategy includes: For each sub-range, based on the actual number and rated number of users corresponding to the sub-range and the number of published and completed tasks corresponding to the sub-range, determine the sub-load balancing coefficient corresponding to the sub-range; Determine the sub-range corresponding to the maximum sub-load balancing coefficient as the target sub-range; From all users corresponding to the target sub-range, some users are screened out and determined as target users, so as to perform diversion control on the target users.

4. The control method according to claim 3, characterized in that: The step of screening out some users from all users corresponding to the target sub-range to determine them as target users, so as to perform flow control on the target users, includes: For each user corresponding to the target sub-range, determining whether, among all weight values ​​corresponding to the user, there is a weight value whose difference with the weight value corresponding to the target sub-range is less than a threshold; If so, determining that the user is the target user; For each target user, determine a weight value having the smallest difference between all weight values ​​corresponding to the target user and the weight value corresponding to the target sub-range; The task corresponding to the weight value having the smallest difference between the weight values ​​corresponding to the target sub-range is allocated to the target user.

5. The control method according to claim 2, characterized in that: The step of performing diversion control on users based on the weight value according to the first diversion strategy further includes: For each sub-range, based on the actual number and rated number of users corresponding to the sub-range and the number of published and completed tasks corresponding to the sub-range, determine the sub-load balancing coefficient corresponding to the sub-range; Determine the sub-range corresponding to the maximum sub-load balancing coefficient as the target sub-range; For each user corresponding to the target sub-range, updating the weight value corresponding to the user according to the first updating method; The task corresponding to the largest weight value among the updated weight values ​​is assigned to the user.

6. The control method according to claim 2, characterized in that: The performing diversion control on the user based on the weight value according to the second diversion strategy includes: For each user, update the weight value corresponding to the user according to the second updating method; Determining the assignment probability of each of the tasks based on the updated weight value; Assign the task corresponding to the maximum assignment probability to the user.

7. The control method according to claim 1, characterized in that: Also includes: When the load balancing coefficient does not satisfy the diversion condition, obtaining reference information of each user; wherein the reference information at least includes age, task participation, queuing behavior and recommended behavior; Based on the age, the task participation, the queuing behavior, and the recommendation behavior, users corresponding to each sub-range are sorted to obtain a user queue; Obtaining status information and / or user requests of the sub-range; wherein the status information at least includes whether the task corresponding to the sub-range is to be executed, in progress, or completed, and the user request represents a user request to exit the user queue corresponding to the sub-range; The user queue is updated based on the status information and / or the user request.

8. The control method according to claim 7, characterized in that: Also includes: Determine the waiting time for the user to execute the task corresponding to the sub-range based on the user queue, the rated number and the execution time corresponding to the task; The required waiting time is transmitted to the terminal corresponding to the user, so that the terminal displays the required waiting time.

9. A control device, characterized in that: include: An acquisition module configured to acquire user information and task information corresponding to a target range; wherein the target range includes a plurality of sub-ranges, the user information includes at least an actual number and a rated number of users corresponding to each sub-range, and the task information includes at least a published number and a completed number of tasks corresponding to each sub-range; a first determination module configured to determine a first load value based on the actual quantity and the rated quantity, and to determine a second load value based on the published quantity and the completed quantity; a second determination module configured to determine a load balancing coefficient corresponding to the target range based on the first load value and the second load value; A third determination module is configured to determine, for each sub-range, a weight value of the task corresponding to the sub-range based on the actual number and rated number of users corresponding to the sub-range and attribute information of the task corresponding to the sub-range when the load balancing coefficient satisfies the diversion condition; The control module is configured to perform diversion control on users based on the weight value.

10. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via a bus, and when the machine-readable instructions are executed by the processor, the steps of the control method as described in any one of claims 1 to 8 are performed.

Citation Information

Patent Citations

  • Scenic spot tourist counting and evacuating method

    CN104794790A

  • Queuing method, system and equipment

    CN105447952A

  • Amusement park management method and device

    CN107368947A

  • Chained travel service system and method for scenic spot tourists

    CN108769924A

  • Scenic spot-based touring management method

    CN110838077A