CN113467227A - Resource delivery method, device, server and storage medium - Google Patents

Resource delivery method, device, server and storage medium Download PDF

Info

Publication number
CN113467227A
CN113467227A CN202110734407.7A CN202110734407A CN113467227A CN 113467227 A CN113467227 A CN 113467227A CN 202110734407 A CN202110734407 A CN 202110734407A CN 113467227 A CN113467227 A CN 113467227A
Authority
CN
China
Prior art keywords
parameter
target
error
period
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110734407.7A
Other languages
Chinese (zh)
Inventor
宋骏
杨文博
周全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110734407.7A priority Critical patent/CN113467227A/en
Publication of CN113467227A publication Critical patent/CN113467227A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B11/00Automatic controllers
    • G05B11/01Automatic controllers electric
    • G05B11/36Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential
    • G05B11/42Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential for obtaining a characteristic which is both proportional and time-dependent, e.g. P. I., P. I. D.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a resource delivery method, a resource delivery device, a server and a storage medium, which relate to the technical field of internet and at least solve the problem that in the related art, when the error between an actual delivery result and a target delivery result is large, the delivery result of a work needs to be manually adjusted until the error between the actual delivery result and the target delivery result is controlled within a reasonable range, so that the cost of operation and maintenance is high. The method comprises the following steps: acquiring a first parameter and a target parameter of a target resource in a first period; determining a target coefficient according to the first parameter and the target parameter; determining a second parameter of a second period according to the target coefficient and the first parameter; and delivering the target resource according to the second parameter in the second period.

Description

Resource delivery method, device, server and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a resource delivery method, device, server, and storage medium.
Background
At present, the resource needs to continuously adjust the resource releasing result in the releasing process so as to ensure that the error between the actual resource releasing result and the target resource releasing result is controlled within a reasonable range. For example: and adjusting the error between the actual delivery cost of the work and the target delivery cost through the cost control parameter, so that the error is controlled within a reasonable range.
However, when the error between the actual delivery result and the target delivery result is large, the delivery result of the resource needs to be manually adjusted until the error between the actual delivery result and the target delivery result is controlled within a reasonable range, which results in high operation and maintenance cost.
Disclosure of Invention
The present disclosure provides a resource delivery method, device, server, and storage medium, to at least solve the problem in the related art that when an error between an actual delivery result and a target delivery result is large, a delivery result of a work needs to be manually adjusted until the error between the actual delivery result and the target delivery result is controlled within a reasonable range, resulting in high operation and maintenance cost.
The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a resource delivery method is provided, including: acquiring a first parameter and a target parameter of a target resource in a first period; determining a target coefficient according to the first parameter and the target parameter; determining a second parameter of a second period according to the target coefficient and the first parameter; and delivering the target resource according to the second parameter in the second period.
In an implementation manner, the "determining the target coefficient according to the first parameter and the target parameter" may be specifically implemented by: determining an error ratio, a cumulative sum, and an error value according to the first parameter and the target parameter; the error ratio is used for indicating the ratio of the difference value of the target parameter and the first parameter to the target parameter, the sum is used for indicating the sum of all the error ratios, and the error value is used for indicating the difference value of the error ratio of the first period and the error ratio of the previous period; and determining the target coefficient of the first period according to the error proportion, the accumulated sum and the error value.
In an implementation manner, the "determining the target coefficient of the first period according to the error ratio, the cumulative sum, and the error value" may be implemented by: substituting the error proportion, the accumulated sum and the error value into a target coefficient formula to determine a target coefficient of a first period; wherein the target coefficient formula comprises:
r=1+Pk×error+Pi×I(error)+Pd×D(error);
wherein r represents a target coefficient, error represents an error ratio, I (error) represents a cumulative sum, D (error) represents an error value, Pi、Pk、PdAre all constants.
In an implementation manner, the "determining the second parameter of the second period according to the target coefficient and the first parameter" may be implemented by: and determining a second parameter of the second period according to the product of the target coefficient and the first parameter.
In one possible implementation, the above "determining the target coefficient according to the first parameter and the target parameter; determining a second parameter "of the second period according to the target coefficient and the first parameter, which may be implemented in the following manner: under the condition that the difference value between the first parameter and the target parameter does not meet the preset condition, iteratively executing adjustment operation until the determined difference value between the first parameter and the target parameter of the next period meets the preset condition, wherein the adjustment operation comprises the following steps: determining a target coefficient according to the first parameter and the target parameter; determining a second parameter of a second period according to the target coefficient and the first parameter; wherein the preset conditions include: under the condition that the first parameter is larger than the target parameter, the difference value of the first parameter and the target parameter is smaller than or equal to a first threshold value; and under the condition that the first parameter is smaller than the target parameter, the difference value of the first parameter and the target parameter is larger than or equal to a second threshold value.
According to a second aspect of the embodiments of the present disclosure, there is provided a resource delivering apparatus, including: an acquisition unit and a processing unit;
an obtaining unit configured to obtain a first parameter and a target parameter of a target resource in a first period; a processing unit configured to determine a target coefficient according to the first parameter acquired by the acquisition unit and the target parameter acquired by the acquisition unit; the processing unit is further configured to determine a second parameter of the second period according to the target coefficient and the first parameter acquired by the acquisition unit; and the processing unit is also configured to release the target resource according to the second parameter in the second period.
In an implementable manner, the processing unit is specifically configured to determine an error ratio, a cumulative sum, and an error value according to the first parameter acquired by the acquisition unit and the target parameter acquired by the acquisition unit; the error ratio is used for indicating the ratio of the difference value of the target parameter and the first parameter to the target parameter, the sum is used for indicating the sum of all the error ratios, and the error value is used for indicating the difference value of the error ratio of the first period and the error ratio of the previous period; a processing unit, specifically configured to determine a target coefficient of the first period according to the error ratio, the cumulative sum, and the error value.
In an implementable manner, the processing unit is specifically configured to bring the error ratio, the cumulative sum, and the error value into a target coefficient formula, and determine a target coefficient of the first cycle; wherein the target coefficient formula comprises:
r=1+Pk×error+Pi×I(error)+Pd×D(error);
wherein r represents a target coefficient, error represents an error ratio, I (error) represents a cumulative sum, D (error) represents an error value, Pi、Pk、PdAre all constants.
In an implementable manner, the processing unit is specifically configured to determine the second parameter of the second period according to a product of the target coefficient and the first parameter acquired by the acquisition unit.
In an implementable manner, the processing unit is specifically configured to, when a difference between the first parameter acquired by the acquisition unit and the target parameter acquired by the acquisition unit does not satisfy a preset condition, iteratively perform an adjustment operation until the determined difference between the first parameter of the next cycle and the target parameter satisfies the preset condition, where the adjustment operation includes: the processing unit is specifically configured to determine a target coefficient according to the first parameter acquired by the acquisition unit and the target parameter acquired by the acquisition unit; the processing unit is specifically configured to determine a second parameter of the second period according to the target coefficient and the first parameter acquired by the acquisition unit; wherein the preset conditions include: under the condition that the first parameter is larger than the target parameter, the difference value of the first parameter and the target parameter is smaller than or equal to a first threshold value; and under the condition that the first parameter is smaller than the target parameter, the difference value of the first parameter and the target parameter is larger than or equal to a second threshold value.
According to a third aspect of the embodiments of the present disclosure, there is provided a server, including:
a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the resource delivery method provided by the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of the server provided in the third aspect, enable the server to perform the resource delivery method provided in the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, which includes instructions for causing a computer to execute the resource placement method as designed in the first aspect when the computer program product runs on the computer.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
as can be seen from the above, in the resource delivery method provided in the embodiment of the present disclosure, the target coefficient may be determined according to the first parameter and the target parameter by obtaining the first parameter and the target parameter of the target resource in the first period. And determining the second parameter of the second period according to the target coefficient and the first parameter, so that the second parameter of the target resource in the second period can be adjusted in real time according to the first parameter and the target parameter of the target resource in the first period dynamically without manually adjusting the second parameter of the resource. Furthermore, the target resources are released according to the second parameter in the second period, so that the achievement efficiency of the target resources can be effectively improved, and the user experience is guaranteed.
This is so: the first parameter is actual delivery cost, the target parameter is target delivery cost, and when the target resource is the target work, the target coefficient can be determined according to the actual delivery cost and the target delivery cost, and the actual delivery cost of the target work in the second period is determined according to the target coefficient and the actual delivery cost. The target coefficient can be dynamically determined according to the actual delivery cost and the target delivery cost of the target work in the first period. And according to the target coefficient and the actual delivery cost of the first period, the actual delivery cost of the target work in the second period is adjusted in real time, the actual delivery cost of the work does not need to be adjusted manually, and the problem that in the related technology resource delivery process, when the error between the actual delivery result and the target delivery result is large, the delivery result of the resource needs to be adjusted manually until the error between the actual delivery result and the target delivery result is controlled within a reasonable range, and the cost of operation and maintenance is high is solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is an architectural diagram illustrating one implementation environment in accordance with an exemplary embodiment.
FIG. 2 is one of the flow diagrams illustrating a method for resource placement, according to an exemplary embodiment.
Fig. 3 is a second flowchart illustrating a resource placement method according to an exemplary embodiment.
Fig. 4 is a third flowchart illustrating a resource placement method according to an exemplary embodiment.
FIG. 5 is a fourth flowchart illustrating a method of resource placement, according to an example embodiment.
Fig. 6 is one of schematic structural diagrams of a resource delivery apparatus according to an exemplary embodiment.
Fig. 7 is a second schematic structural diagram of a resource delivering apparatus according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is an architecture diagram illustrating an implementation environment in which the resource placement method described below may be applied, as shown in fig. 1, according to an example embodiment. The implementation environment includes a server 01 and a client 02. The server 01 is configured to deliver a target resource to the client 02, and collect a first parameter (e.g., an actual delivery speed or an actual delivery cost) of the target resource. The server 01 determines a target coefficient according to a first parameter of the target resource in the first period and the target parameter. And determining a second parameter of a second period according to the target coefficient and the first parameter, and delivering the target resource according to the second parameter in the second period.
In an implementation manner, the server 01 may be one server, or may be a server cluster composed of a plurality of servers, or may be one cloud computing service center. The server 01 may include a processor, memory, and a network interface, among others.
In an implementable manner, the client 02 may be, but is not limited to, various service platforms including, but not limited to, a video service platform, a communication service platform, and the like.
In one implementable manner, the client 02 is used to provide voice and/or data connectivity services to users. The client 02 may have different names such as User Equipment (UE), access terminal, terminal unit, terminal station, mobile station, remote terminal, mobile device, wireless communication device, vehicular user equipment, terminal agent, or terminal device, etc. Optionally, the client 02 may be various handheld devices, vehicle-mounted devices, wearable devices, and computers with communication functions, which is not limited in this disclosure. For example, the handheld device may be a smartphone. The in-vehicle device may be an in-vehicle navigation system. The wearable device may be a smart bracelet. The computer may be a Personal Digital Assistant (PDA) computer, a tablet computer, and a laptop computer.
Some terms used in this disclosure have their ordinary and customary meaning in the industry. In addition, some terms will be explained when appearing in the present specification. It is to be understood that several terms specifically used herein may be helpful.
PID is as follows: abbreviations for proportionality, Integral, Differential. As the name suggests, the PID control algorithm is a control algorithm which combines three links of proportion, integration and differentiation into a whole, is the most mature technology and the most widely applied control algorithm in a continuous system, appears in 30 to 40 years of the 20 th century, and is suitable for occasions where a controlled object model is not clearly understood. The analysis of practical operation experience and theory shows that the control law can obtain satisfactory effect when used for controlling a plurality of industrial processes. The essence of the PID control is that the operation is performed according to the function relationship of proportion, integral and differential according to the input deviation value, and the operation result is used to control the output.
A Multiplier Proportional Integral Differential (MPID) is a control algorithm that adjusts a multiplier factor by an error proportion, an error Integral and an error Differential, thereby adjusting a target value and achieving an adjustment target.
In the prior art, the delivery result of the work is usually adjusted by a static adjustment method, a dynamic attenuation adjustment method, or a PID control algorithm. However, the method for adjusting the delivery result of the works has the following problems:
firstly, the static adjustment method has the problem of steady-state error, namely, the adjust _ v exists so that
Figure BDA0003141032060000051
And adjust _ v ═ adjust _ v. At this time, the error between real _ value and target _ value is the steady-state error.
Secondly, the dynamic attenuation adjustment method will continuously adjust _ v when the target _ value is not equal to the real _ value. This eliminates steady-state errors, but causes the adjustment curve to continue to fluctuate and to be jagged. The system is unstable.
And thirdly, the PID control algorithm adjusts the value of adjust _ v, the value of Kp, the value of Ki and the value of Kd through addition operation, is very sensitive to the numerical scale of the target _ value, and cannot adapt to the scene of multi-scale change of the target _ value in a general system.
Wherein, real _ value represents the second parameter, target _ value represents the target release parameter, adjust _ v represents the adjustment parameter of the first period, and adjust _ v' represents the adjustment parameter of the second period.
In order to solve the above problem, according to the resource delivery method provided by the embodiment of the present disclosure, the first parameter and the target parameter of the target resource in the first period are obtained, so that the target coefficient can be determined according to the first parameter and the target parameter. And determining the second parameter of the second period according to the target coefficient and the first parameter, so that the second parameter of the target resource in the second period can be adjusted in real time according to the first parameter and the target parameter of the target resource in the first period dynamically without manually adjusting the second parameter of the resource. The method solves the problem that in the resource release process of the related art, when the error between the actual release result and the target release result is large, the release result of the resource needs to be manually adjusted until the error between the actual release result and the target release result is controlled within a reasonable range, so that the operation and maintenance cost is high, and the specific implementation process is as follows:
an execution subject of the resource delivery method provided by the embodiment of the present disclosure may be the server, or may also be a functional module and/or a functional entity capable of implementing the resource delivery method in the server, which may be specifically determined according to an actual use requirement, and the embodiment of the present disclosure is not limited. The following takes an execution subject as a server as an example, and exemplarily describes the resource delivery method provided by the embodiment of the present disclosure.
Exemplarily, a target work is taken as an example, the target work may include works that a user needs to release, such as pictures, texts, voices, videos, music, and the like, and the resource release method provided by the embodiment of the present disclosure is described with reference to the drawings, where a specific implementation process is as follows:
fig. 2 is a flowchart illustrating a resource placement method, according to an exemplary embodiment, for use in a server as illustrated in fig. 2, the method including the following S11-S13.
S11, the server acquires a first parameter and a target parameter of the target work in a first period.
In one implementable manner, the first parameters include at least a current cost of delivery and a current speed of delivery; the target parameters include at least a nominal launch cost and a nominal launch speed.
It should be noted that, when the target work is delivered for the first time, the operation and maintenance staff need to set an initial delivery parameter, and since the initial delivery parameter is set according to experience, the initial delivery parameter needs to be adjusted by the resource delivery method provided by the embodiment of the present disclosure until the difference between the determined second parameter of the second period and the target parameter is greater than the predetermined threshold, so as to ensure the user experience.
S12, the server determines a target coefficient according to the first parameter and the target parameter; and determining a second parameter of the second period according to the target coefficient and the first parameter.
In a realizable mode, the target works have the problem that the first parameters and the target parameters are different from the actually needed first parameters and target parameters in the delivery process. In order to ensure that the first parameter and the target parameter in each period meet the requirements of the user, the resource delivery method according to the embodiment of the disclosure determines the target coefficient according to the first parameter and the target parameter in the first period. And determining a second parameter of the second period according to the target coefficient and the first parameter of the first period. Therefore, the second parameter of the next period can be adjusted in real time through the first parameter and the target parameter of the current period, and user experience is guaranteed.
And S13, the server puts in the target work according to the second parameter in the second period.
As can be seen from the above, according to the resource delivery method provided by the embodiment of the disclosure, the first parameter and the target parameter of the target work in the first period are obtained, so that the target coefficient can be determined according to the first parameter and the target parameter. And determining the second parameter of the second period according to the target coefficient and the first parameter, thereby dynamically adjusting the second parameter of the target work in the second period in real time according to the first parameter and the target parameter of the target work in the first period without manually adjusting the second parameter of the work. Furthermore, the target works are delivered according to the second parameters in the second period, the achievement efficiency of the target works can be effectively improved, and the user experience is guaranteed. The second parameter of the work does not need to be adjusted manually, so that the problem that in the related technical work releasing process, when the error between the actual releasing result and the target releasing result is large, the releasing result of the work needs to be adjusted manually until the error between the actual releasing result and the target releasing result is controlled within a reasonable range, and the operation and maintenance cost is high is solved.
In an implementation manner, referring to fig. 2, as shown in fig. 3, the above S12 can be specifically realized by the following S120 and S121.
S120, the server determines an error proportion, an accumulated sum and an error value according to the first parameter and the target parameter. The error ratio is used for indicating the ratio of the difference value of the target parameter and the first parameter to the target parameter, the accumulated sum is used for indicating the sum of all the error ratios, and the error value is used for indicating the difference value of the error ratio of the first period and the error ratio of the previous period.
S121, the server determines a target coefficient of a first period according to the error proportion, the accumulated sum and the error value, and determines a second parameter of a second period according to the target coefficient and the first parameter.
As can be seen from the above, in the resource delivery method provided in the embodiment of the present disclosure, the server may determine the error ratio, the cumulative sum, and the error value according to the first parameter and the target parameter, and determine the target coefficient of the first period according to the error ratio, the cumulative sum, and the error value. The target coefficient is related to the first parameter and the target parameter, so that the second parameter of the target work in the second period can be more accurately adjusted without manually adjusting the second parameter of the work, and the problem that the operation and maintenance cost is high due to the fact that the delivery result of the work needs to be manually adjusted when the error between the actual delivery result and the target delivery result is large in the delivery process of the related technical work until the error between the actual delivery result and the target delivery result is controlled within a reasonable range is solved.
In an implementation manner, as shown in fig. 4 in conjunction with fig. 3, the above S121 may be specifically implemented by the following S1210.
S1210, the server brings the error proportion, the accumulated sum and the error value into a target coefficient formula, and determines a target coefficient of a first period. Wherein the target coefficient formula comprises:
r=1+Pk×error+Pi×I(error)+Pd×D(error);
wherein r represents a target coefficient, error represents an error ratio, I (error) represents a cumulative sum, D (error) represents an error value, Pi、Pk、PdAre all constants.
Exemplary, PiAnd PkAre all constants greater than or equal to 0, PdIs a constant less than or equal to 0.
In an implementation manner, the corresponding relation between the error proportion, the accumulated sum and the error value and the target coefficient is determined through the MPID algorithm, so that the target coefficient formula is determined.
It should be noted that, according to the resource delivery method provided by the embodiment of the present disclosure, the problem of a steady-state error can be effectively avoided by the MPID algorithm through accumulation of the error proportion. Further, by using the differential of the error as a calculation factor, the change of the first parameter gradually tends to be smooth in the adjusting process, and the fluctuation and the sawtooth of the adjusting curve are effectively eliminated. And finally, the target coefficient is used for adjusting the first parameter, so that the problem of sensitivity of the addition operation to the numerical scale is effectively avoided.
In one way that can be achieved,
Figure BDA0003141032060000081
Figure BDA0003141032060000082
D(error)=errori-errori-1. Wherein, erroriIndicating the error ratio, real _ value, determined for the ith adjustment operationiRepresenting a first parameter corresponding to the ith adjustment operation, M representing the total number of times the adjustment operation has been performed, M and i are integers greater than or equal to 0, and i ∈ [0, M]。
Note that when i is equal to 0, no adjustment operation is performed, and therefore error is performediAnd errori-1Are all 0.
As can be seen from the above, according to the resource delivery method provided by the embodiment of the disclosure, through the predetermined target coefficient formula, after the server determines the error ratio, the cumulative sum, and the error value according to the first parameter and the target parameter, the server determines the target coefficient of the first period by bringing the error ratio, the cumulative sum, and the error value into the target coefficient formula. The target coefficient is related to the first parameter and the target parameter, so that the second parameter of the target work in the second period can be more accurately adjusted without manually adjusting the second parameter of the work, and the problem that the operation and maintenance cost is high due to the fact that the delivery result of the work needs to be manually adjusted when the error between the actual delivery result and the target delivery result is large in the delivery process of the related technical work until the error between the actual delivery result and the target delivery result is controlled within a reasonable range is solved.
In an implementation manner, as shown in fig. 5 in conjunction with fig. 2, S12 described above may be specifically implemented by S122 described below.
S122, the server determines a target coefficient according to the first parameter and the target parameter; and determining a second parameter of the second period according to the product of the target coefficient and the first parameter.
In an implementation manner, when the first parameter is greater than the target parameter, if the adjustment parameter is less than 1, the second parameter of the second period is determined to be less than the first parameter according to a product of the target coefficient and the first parameter. And under the condition that the first parameter is smaller than the target parameter, if the adjustment parameter is larger than 1, determining that the second parameter of the second period is larger than the first parameter according to the product of the target coefficient and the first parameter.
Illustratively, the target work is delivered for the first time in a first period, and the current delivery cost in the first period is 25, the rated delivery cost is 20, PkIs equal to 2, PiIs equal to 3, PdEqual to-4, and the predetermined threshold is 1.5 as an example, the implementation process of the server determining the second parameter of the second period is as follows:
in the first period, since the difference 5 between the current release cost 25 and the rated release cost 20 is greater than a predetermined threshold value 1.5, an error ratio (-0.25), a cumulative sum (-0.25), and an error value (-0.25) need to be determined according to the current release cost and the rated release cost; at this time, the error ratio is adjusted
Figure BDA0003141032060000091
The cumulative sum (-0.25), and error value (-0.25) are substituted into the target coefficient formula, which indicates that the target coefficient r is equal to 1+2 × (-0.25) +3 × (-0.25) + (-4 × (-0.25)) -0.75; according to the product of the target coefficient 0.75 and the first parameter 25, the actual release cost of the second period is determined to be 0.75 × 25 — 18.75. At this time, since the difference 1.25 between the second parameter 18.75 and the target parameter 20 of the second period is smaller than the predetermined threshold 1.5, the server does not need to perform the adjustment operation, and delivers the target work at the actual delivery cost of 18.75 in the second period.
Therefore, according to the resource delivery method provided by the embodiment of the disclosure, the first parameter of the target work in the first period is adjusted through the target coefficient, so that the second parameter of the target work in the second period can be determined. The target coefficient is related to the first parameter and the target parameter, so that the second parameter of the target work in the second period can be more accurately adjusted without manually adjusting the second parameter of the work, and the problem that the operation and maintenance cost is high due to the fact that the delivery result of the work needs to be manually adjusted when the error between the actual delivery result and the target delivery result is large in the delivery process of the related technical work until the error between the actual delivery result and the target delivery result is controlled within a reasonable range is solved.
In an implementation manner, in conjunction with fig. 2, the above S12 can be specifically implemented in the following manner.
Under the condition that the difference value between the first parameter and the target parameter does not meet a preset condition, iteratively executing an adjusting operation until the determined difference value between the first parameter and the target parameter of the next period meets the preset condition, wherein the adjusting operation comprises: determining a target coefficient according to the first parameter and the target parameter; determining a second parameter of a second period according to the target coefficient and the first parameter; wherein the preset conditions include: in the case that the first parameter is greater than the target parameter, the difference between the first parameter and the target parameter is less than or equal to a first threshold; and under the condition that the first parameter is smaller than the target parameter, the difference value of the first parameter and the target parameter is larger than or equal to a second threshold value.
In the resource delivery method provided by the embodiment of the present disclosure, when the second parameter of the second period is adjusted through the first parameter and the target parameter of the first period, in order to ensure that the adjusted second parameter meets the requirement of the user, the server needs to perform an adjustment operation through each period of at least one period, so that a difference value between the finally determined second parameter and the target parameter is smaller than or equal to a predetermined threshold. Specifically, the absolute value of the first threshold and the absolute value of the second threshold may be equal or different, and the operation and maintenance staff may set the first threshold and the second threshold according to actual needs, which is not limited herein.
For example, taking a first parameter of the target work in the first period as a current release cost, a target parameter as a rated release cost, and an actual release cost as a second parameter, and the current release cost is always greater than the rated release cost, the process of the server determining the actual release cost in the second period is as follows:
and under the condition that the difference value between the current putting cost and the rated putting cost is larger than a first threshold value, the server determines a target coefficient according to the current putting cost and the rated putting cost, and then determines the actual putting cost of a second period according to the target coefficient and the current putting cost.
And if the difference value between the actual putting cost and the rated putting cost is less than or equal to the first threshold, the server does not perform adjustment operation any more, and puts the target work according to the actual putting cost in a second period.
If the difference between the actual putting cost and the rated putting cost is larger than the first threshold, the server continues to perform the adjustment operation in the second period until the determined difference between the actual putting cost and the rated putting cost in the second period is smaller than or equal to the first threshold.
In an implementation manner, the server performs the adjusting operation in each of the at least one period, so that the difference between the finally determined second parameter and the target parameter satisfies the preset condition. Therefore, after the server puts the target work according to the second parameter in the second period, the adjustment operation does not need to be executed, and only the monitoring whether the difference value between the second parameter and the target parameter meets the preset condition needs to be implemented. When it is determined again that the difference between the second parameter and the target parameter does not satisfy the preset condition, the first parameter of the target product in the first period (i.e., the second parameter determined in the previous period) needs to be adjusted again according to the resource delivery method provided by the embodiment of the present disclosure until the difference between the second parameter determined in the second period and the target parameter satisfies the preset condition, so as to ensure the user experience.
Fig. 6 illustrates a resource placement device, according to an exemplary embodiment. Referring to fig. 6, an acquisition unit 101 and a processing unit 102 are included.
An obtaining unit 101 configured to obtain a first parameter and a target parameter of a target resource in a first cycle; a processing unit 102 configured to determine a target coefficient according to the first parameter acquired by the acquisition unit 101 and the target parameter acquired by the acquisition unit 101; the processing unit 102 is further configured to determine a second parameter of the second period according to the target coefficient and the first parameter acquired by the acquisition unit 101; the processing unit 102 is further configured to deliver the target resource according to the second parameter at the second period.
In an implementable manner, the processing unit 102 is specifically configured to determine an error ratio, a cumulative sum, and an error value according to the first parameter acquired by the acquisition unit 101 and the target parameter acquired by the acquisition unit 101; the error ratio is used for indicating the ratio of the difference value of the target parameter and the first parameter to the target parameter, the sum is used for indicating the sum of all the error ratios, and the error value is used for indicating the difference value of the error ratio of the first period and the error ratio of the previous period; the processing unit 102 is specifically configured to determine a target coefficient of the first period according to the error ratio, the cumulative sum, and the error value.
In an implementation manner, the processing unit 102 is specifically configured to bring the error ratio, the cumulative sum, and the error value into the target coefficient formula, and determine a target coefficient of the first period; wherein the target coefficient formula comprises:
r=1+Pk×error+Pi×I(error)+Pd×D(error);
wherein r represents a target coefficient, error represents an error ratio, I (error) represents a cumulative sum, D (error) represents an error value, Pi、Pk、PdAre all constants.
In an implementable manner, the processing unit 102 is specifically configured to determine the second parameter of the second period according to a product of the target coefficient and the first parameter acquired by the acquisition unit 101.
In an implementation manner, the processing unit 102 is specifically configured to, in a case that a difference between the first parameter acquired by the acquiring unit 101 and the target parameter acquired by the acquiring unit 101 does not satisfy a preset condition, iteratively perform an adjusting operation until the determined difference between the first parameter of the next cycle and the target parameter satisfies the preset condition, where the adjusting operation includes: a processing unit 102, specifically configured to determine a target coefficient according to the first parameter acquired by the acquiring unit 101 and the target parameter acquired by the acquiring unit 101; a processing unit 102, specifically configured to determine a second parameter of the second period according to the target coefficient and the first parameter acquired by the acquisition unit 101; wherein the preset conditions include: under the condition that the first parameter is larger than the target parameter, the difference value of the first parameter and the target parameter is smaller than or equal to a first threshold value; and under the condition that the first parameter is smaller than the target parameter, the difference value of the first parameter and the target parameter is larger than or equal to a second threshold value.
Of course, the resource delivery apparatus 10 provided by the embodiment of the present disclosure includes, but is not limited to, the above modules, for example, the resource delivery apparatus 10 may further include the storage unit 103. The storage unit 103 may be configured to store program codes of the write resource delivering apparatus, and may also be configured to store data generated by the write resource delivering apparatus during operation, such as data in a write request.
In addition, when the resource delivery device 10 provided in the above embodiment implements the functions thereof, only the division of the above functional modules is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the resource delivery device 10 may be divided into different functional modules to implement all or part of the above described functions.
Fig. 7 is a schematic structural diagram of a resource delivering apparatus 10 according to an embodiment of the present disclosure, and as shown in fig. 7, the resource delivering apparatus 10 may include: at least one processor 51, a memory 52, a communication interface 53 and a communication bus 54.
The following specifically describes each component of the resource delivery device with reference to fig. 7:
the processor 51 is a control center of the resource delivery apparatus, and may be a single processor or a collective term for a plurality of processing elements. For example, the processor 51 is a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present disclosure, such as: one or more DSPs, or one or more Field Programmable Gate Arrays (FPGAs).
In particular implementations, processor 51 may include one or more CPUs such as CPU0 and CPU1 shown in fig. 7 as one example. Also, as an embodiment, the resource delivery apparatus may include a plurality of processors, such as the processor 51 and the processor 55 shown in fig. 7. Each of these processors may be a Single-core processor (Single-CPU) or a Multi-core processor (Multi-CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
The Memory 52 may be a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 52 may be self-contained and coupled to the processor 51 via a communication bus 54. The memory 52 may also be integrated with the processor 51.
In a particular implementation, the memory 52 is used for storing data and software programs for implementing the present invention. The processor 51 may perform various functions of the air conditioner by running or executing software programs stored in the memory 52 and calling data stored in the memory 52.
The communication interface 53 is a device such as any transceiver, and is used for communicating with other devices or communication Networks, such as a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), a terminal, and a cloud. The communication interface 53 may include an acquisition unit to implement the receiving and transmitting functions.
The communication bus 54 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
As an example, in conjunction with fig. 6, the acquiring unit 101 in the resource delivering apparatus 10 implements the same function as the communication interface 53 in fig. 7, the processing unit 102 implements the same function as the processor 51 in fig. 7, and the storage unit 103 implements the same function as the memory 52 in fig. 7.
Another embodiment of the present invention further provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the method shown in the above method embodiment.
In some embodiments, the disclosed methods may be implemented as computer program instructions encoded on a computer-readable storage medium in a machine-readable format or encoded on other non-transitory media or articles of manufacture.
In an exemplary embodiment, the present disclosure also provides a storage medium including instructions, for example, a memory 102 including instructions, which are executable by a processor 101 of a resource delivery apparatus to perform the above method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a Read-Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, the present disclosure also provides a computer program product including one or more instructions executable by the processor 101 of the resource delivery apparatus to perform the above method.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be implemented in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only an embodiment of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A resource delivery method, comprising:
acquiring a first parameter and a target parameter of a target resource in a first period;
determining a target coefficient according to the first parameter and the target parameter; determining a second parameter of a second period according to the target coefficient and the first parameter;
and delivering the target resource according to the second parameter in the second period.
2. The method of claim 1, wherein determining a target coefficient according to the first parameter and a target parameter comprises:
determining an error ratio, a cumulative sum, and an error value according to the first parameter and the target parameter; wherein the error ratio is used for indicating the ratio of the difference value of the target parameter and the first parameter to the target parameter, the accumulated sum is used for indicating the sum of all the error ratios, and the error value is used for indicating the difference value of the error ratio of the first period and the error ratio of the last period;
determining a target coefficient for the first period based on the error ratio, the cumulative sum, and the error value.
3. The method of claim 2, wherein determining the target coefficient for the first period according to the error ratio, the cumulative sum, and the error value comprises:
substituting the error proportion, the cumulative sum and the error value into a target coefficient formula to determine a target coefficient of the first period; wherein the target coefficient formula comprises:
r=1+Pk×error+Pi×I(error)+Pd×D(error);
wherein r represents a target coefficient, error represents an error ratio, I (error) represents a cumulative sum, D (error) represents an error value, Pi、Pk、PdAre all constants.
4. The method of claim 1, wherein the determining the second parameter of the second periodicity according to the target coefficient and the first parameter comprises:
and determining a second parameter of the second period according to the product of the target coefficient and the first parameter.
5. The resource delivery method according to any one of claims 1-4, wherein a target coefficient is determined according to the first parameter and the target parameter; determining a second parameter of a second period according to the target coefficient and the first parameter, including:
under the condition that the difference value between the first parameter and the target parameter does not meet a preset condition, iteratively executing an adjusting operation until the determined difference value between the first parameter and the target parameter of the next period meets the preset condition, wherein the adjusting operation comprises: determining a target coefficient according to the first parameter and the target parameter; determining a second parameter of a second period according to the target coefficient and the first parameter; wherein the preset conditions include: in the case that the first parameter is greater than the target parameter, the difference between the first parameter and the target parameter is less than or equal to a first threshold; and under the condition that the first parameter is smaller than the target parameter, the difference value of the first parameter and the target parameter is larger than or equal to a second threshold value.
6. A resource delivery apparatus, comprising: an acquisition unit and a processing unit;
the acquisition unit is configured to acquire a first parameter and a target parameter of a target resource in a first period;
the processing unit is configured to determine a target coefficient according to the first parameter acquired by the acquisition unit and the target parameter acquired by the acquisition unit;
the processing unit is further configured to determine a second parameter of a second period according to the target coefficient and the first parameter acquired by the acquisition unit;
the processing unit is further configured to deliver the target resource according to the second parameter at the second period.
7. The resource delivery apparatus according to claim 6, wherein the processing unit is specifically configured to determine an error ratio, an accumulated sum, and an error value according to the first parameter obtained by the obtaining unit and the target parameter obtained by the obtaining unit; wherein the error ratio is used for indicating the ratio of the difference value of the target parameter and the first parameter to the target parameter, the accumulated sum is used for indicating the sum of all the error ratios, and the error value is used for indicating the difference value of the error ratio of the first period and the error ratio of the last period;
the processing unit is specifically configured to determine a target coefficient of the first period according to the error ratio, the cumulative sum, and the error value.
8. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the resource placement method of any one of claims 1 to 5.
9. A computer-readable storage medium, wherein instructions, when executed by a processor of a server, enable the server to perform the resource placement method of any of claims 1-5.
10. A computer program product comprising instructions for causing a computer to perform the method of resource placement of any one of claims 1 to 5 when the computer program product is run on the computer.
CN202110734407.7A 2021-06-30 2021-06-30 Resource delivery method, device, server and storage medium Pending CN113467227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110734407.7A CN113467227A (en) 2021-06-30 2021-06-30 Resource delivery method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110734407.7A CN113467227A (en) 2021-06-30 2021-06-30 Resource delivery method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN113467227A true CN113467227A (en) 2021-10-01

Family

ID=77874290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110734407.7A Pending CN113467227A (en) 2021-06-30 2021-06-30 Resource delivery method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN113467227A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106096999A (en) * 2016-06-02 2016-11-09 腾讯科技(深圳)有限公司 The put-on method of media file and device
CN110795236A (en) * 2019-09-26 2020-02-14 北京大米科技有限公司 Method, device, electronic equipment and medium for adjusting capacity of server
CN111147395A (en) * 2019-12-25 2020-05-12 中国联合网络通信集团有限公司 Network resource adjusting method and device
CN111797250A (en) * 2020-09-09 2020-10-20 腾讯科技(深圳)有限公司 Media content push control method and device, computer equipment and storage medium
CN112184293A (en) * 2020-09-17 2021-01-05 北京字节跳动网络技术有限公司 Method, device, equipment and storage medium for adjusting information delivery cost
CN112348593A (en) * 2020-11-25 2021-02-09 深圳市欢太科技有限公司 Information delivery control method, device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106096999A (en) * 2016-06-02 2016-11-09 腾讯科技(深圳)有限公司 The put-on method of media file and device
CN110795236A (en) * 2019-09-26 2020-02-14 北京大米科技有限公司 Method, device, electronic equipment and medium for adjusting capacity of server
CN111147395A (en) * 2019-12-25 2020-05-12 中国联合网络通信集团有限公司 Network resource adjusting method and device
CN111797250A (en) * 2020-09-09 2020-10-20 腾讯科技(深圳)有限公司 Media content push control method and device, computer equipment and storage medium
CN112184293A (en) * 2020-09-17 2021-01-05 北京字节跳动网络技术有限公司 Method, device, equipment and storage medium for adjusting information delivery cost
CN112348593A (en) * 2020-11-25 2021-02-09 深圳市欢太科技有限公司 Information delivery control method, device and storage medium

Similar Documents

Publication Publication Date Title
EP3629163A1 (en) Load balance scheduling method and device, and computer readable storage medium
CN109918205B (en) Edge equipment scheduling method, system, device and computer storage medium
US20180121322A1 (en) Methods and Systems for Testing Versions of Applications
KR20220084197A (en) Policy-based resource management and allocation system
CN110650209B (en) Method and device for realizing load balancing
CN110288625B (en) Method and apparatus for processing image
WO2023093375A1 (en) Computing resource acquisition method and apparatus, electronic device, and storage medium
US20210192217A1 (en) Method and apparatus for processing video
CN111062572B (en) Task allocation method and device
US9501321B1 (en) Weighted service requests throttling
CN112667368A (en) Task data processing method and device
CN113467227A (en) Resource delivery method, device, server and storage medium
CN110730109A (en) Method and apparatus for generating information
CN107239341B (en) Resource conversion method and system and virtual machine resource scheduling system
CN111626802A (en) Method and apparatus for processing information
EP3374860B1 (en) Communicating information about an update of an application
CN115086194A (en) Data transmission method for cloud application, computing equipment and computer storage medium
US20220139251A1 (en) Motivational Extended Reality
CN114912627A (en) Recommendation model training method, system, computer device and storage medium
CN111161067A (en) Method and device for determining transaction route
CN113392131A (en) Data processing method and device and computer equipment
CN110751423A (en) State estimation service system, micro-service architecture and state estimation method
CN115713582B (en) Avatar generation method, device, electronic equipment and medium
CN111949500B (en) Resource matching method, device, electronic equipment and readable storage medium
CN112615928B (en) Data processing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination