A combined operation optimization allocation method and system for production line
Through the dynamic calculation method and recursive algorithm, the job allocation on the production line is optimized, the problem of job sequence and resource allocation in the industrial production line is solved, the maximum benefit within a limited time is achieved, and the calculation efficiency and production efficiency are improved.
Patent Information
- Application Number
- CN202110592867.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-28
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-05-28
AI Technical Summary
In an industrial production line, how to maximize the efficiency of production equipment and optimize the sequence and distribution of operations under limited resources and time to achieve the highest production benefits, especially when the number of operations is large and non-linear problems, existing technology calculations Large and difficult problems.
The dynamic calculation method is used to determine the number of beats for each job type and the maximum profit in the combination through recursive algorithm and beat number calculation, and dynamically monitor the allocation of production resources to achieve the maximum profit of the production line.
It can quickly calculate the maximum profit of the production workshop, shorten the calculation time, and improve the calculation efficiency. It can perform real-time optimization calculations on the production line to meet the needs of flexible production, and significantly improve the calculation speed and production efficiency.
Smart Images

Figure CN113673808B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial production control, and in particular to a combined operation optimization allocation method and system applied to a production line. Background Art
[0002] In the production process of industrial production lines, there are many tasks to be done within a fixed time frame. Each task has a certain time requirement and a certain benefit, but the total time that the production equipment can operate is fixed. This requires arranging the order and selection of each task so that the efficiency of the production equipment can be maximized under the condition of limited resources and the highest benefit can be obtained. This problem is vividly described as a knapsack problem, that is, how to stuff more things into the backpack under the condition that the total capacity of the backpack is fixed.
[0003] The problem of combining operations is to set the total value of production as the objective function, and the total working time of the operation must meet certain upper limit constraints. Through mathematical or simulation calculation methods, the optimal production time allocated to each operation is obtained to maximize the overall benefits. There are two ways to solve the problem. One is the mathematical method, which uses the calculation method of linear programming to solve it through the Lagrangian function. Combine the constraints and the objective function, list the matrix equation, and then find the partial derivatives of each variable according to the target value to find the value of each independent variable when the objective function is at the extreme value. The problem with this is that when the number of operations is large, the dimension of the linear equation system is very high, and the amount of calculation to solve the equation matrix is very large; and when facing nonlinear problems, it is necessary to solve partial differential equations, which is very difficult. Another method is to use the method of numerical exhaustive enumeration, that is, to bring all possible production arrangements into the objective function and select the one with the highest benefit. However, when the number of operations is large, the number of permutations and combinations increases exponentially, which is also difficult in calculation. Summary of the invention
[0004] In response to the problems existing in the above-mentioned background technology, the present invention aims to provide a method for optimizing the allocation of combined operations for a production line, using a dynamic calculation method to select appropriate operations under the condition that the total production time of a production line is fixed, so as to maximize the production profit obtained within the total production time.
[0005] In order to achieve the above effect, the present invention provides a combined operation optimization allocation method applied to a production line, the allocation method comprising the following steps:
[0006] Step 1: Determine the total duration S of a single product production cycle, the types of operations on the production line, the production time required for each type of operation, and the operating income of each type of operation, and obtain the average duration s of each type of operationi ;
[0007] Step 2: Calculate the number of beats p required for each type of operation i :Based on the total duration S of a single production cycle and the average duration s of each type of operation i And the total beat number T calculates the beat number p required for each type of operation i ;
[0008] Step 3: According to the beat number p of each type of operation i , a recursive algorithm is used to determine the maximum benefit in the job combination;
[0009] Step 4: Allocate the operations according to the maximum profit in the operation combination to maximize the profit of the production line; Step 3 is specifically as follows:
[0010] Step 3.1 For the first cycle, set the maximum initial benefit to C(0) = 0, traverse all jobs that take less than or equal to 1 cycle, and find the job that can meet the requirement of less than or equal to 1 cycle and has the largest benefit. The maximum benefit obtained is C(1);
[0011] Step 3.2 For the n+1th beat, first record the optimal nth beat and its benefit C(n), then traverse all jobs with a beat less than n+1; for a beat number of p j , 0<p j <n+1, the total revenue of job j is the maximum revenue c of this cycle j And loop calculation to the n+1-pth j The profit of the beat is C(n+1-p j ) The sum of the benefits; loop all the operations and obtain the highest benefit C(n+1) among all the operation combinations under the premise of n+1 beats. The result is set as F(t);
[0012] Compare F(t) and C(t-1), and the maximum value is recorded as C(t);
[0013] Step 3.3, count from beat 2 to beat T, so as to obtain the optimal job allocation and the highest profit C(T) when the total beat is T.
[0014] Furthermore, the step 1 is specifically as follows:
[0015] Step 1.1, count the length of a single product production cycle, denoted as S;
[0016] Step 1.2: Assume that there are m different jobs in total. Only one job can be produced at the same time. Count the average duration of each job, recorded as s. i , 1≤i≤m;
[0017] Step 1.3: Count the operating income of each type of operation, denoted as c i , 1≤i≤m.
[0018] Furthermore, the step 2 is specifically as follows:
[0019] Step 2.1: calculate the average duration s of each task i , choose a value greater than the duration s i The smallest integer x i , as the duration of the job rounded up to an integer;
[0020] Step 2.2, for all integer durations x i Find the common divisor l of all the homework;
[0021] Step 2.3, take the common divisor l as the duration of a single beat, divide the total production duration S of the work by l to get the total number of beats T, for job i, its number of beats is
[0022] Furthermore, the step 3.2 is specifically as follows:
[0023] For the n+1th beat, find C(n+1). Among all the jobs, find all the jobs whose beat number is less than or equal to n+1.
[0024] For all beats p j Homework, p j ≤n+1, the corresponding maximum benefit is c j , calculate D j =c j +C(n+1-p j );
[0025] Select D j The largest one is recorded as F(n+1), and the operation combination at this time is recorded;
[0026] Compare F(n+1) and C(n), take the largest term and record it as C(n+1).
[0027] The present application also provides a combined operation optimization allocation system applied to a production line, the allocation system comprising:
[0028] Production analysis module, which determines the total duration S of a single product production cycle, the types of operations on the production line, the production time required for each type of operation, and the operating income of each type of operation, and obtains the average duration s of each type of operation i ;
[0029] The beat calculation module calculates the number of beats p required for each job type i : Based on the total duration S of a single production cycle, the average duration s of each job type i And the total number of beats T to calculate the number of beats p required for each job type i ;
[0030] The revenue calculation module determines the maximum revenue in the job combination according to the number of beats p of each job type i , and uses a recursive algorithm to determine the maximum revenue in the job combination; the revenue calculation module calculates the highest revenue of the job combination in the following way:
[0031] For the first beat, assume the starting maximum revenue is C(0) = 0. Traverse all jobs with a duration less than or equal to 1 beat, and find the job that meets the requirement of less than or equal to 1 beat and has the maximum revenue. The maximum revenue obtained is C(1);
[0032] For the (n + 1)-th beat, first record the optimal n-th beat and its revenue C(n), and then traverse all jobs with a duration less than (n + 1) beats; for a job j with a number of beats p j , 0 < p j < n + 1, the total revenue is the maximum job revenue c of this beat j And the revenue C(n + 1 - p j ) obtained by looping and calculating up to the (n + 1 - p)-th beat; loop through all jobs to obtain the highest revenue C(n + 1) among all job combinations under the premise of (n + 1) beats, and find j The result is set as F(t); Compare F(t) with C(t - 1), and record the maximum value as C(t); Count from beat 2 to beat T to obtain the optimal job allocation and the highest revenue C(T) when the total number of beats is T;
[0033] The job allocation module allocates jobs according to the maximum revenue in the job combination to maximize the revenue of the production line
[0034] Beneficial effects
[0035] Advantages
[0036] The present invention has the following advantages: By using the job optimization and allocation method provided in this application, it is possible to quickly calculate the maximum value of the production revenue of the production workshop under the specified constraint conditions, and based on this, allocate production resources to achieve dynamic monitoring of the workshop, reduce the calculation amount and shorten the calculation time, and can effectively and quickly determine the production sequence and types. This algorithm has a significant improvement in calculation speed compared with the traditional exhaustive method and can perform real-time optimization operations on the production line to meet the specific requirements of flexible production
[0037] By analyzing the calculation method of the system, we can get the calculation complexity of the system to be O(nT), where n is the number of types of jobs, T is the total number of beats, and T is the total working time divided by the rounded duration of each job x. i The common divisor of can be used to calculate the duration s of each task. i By taking values upward in a more uniform manner, the common divisor 1 is relatively large, and the calculated total number of beats T is relatively small, which makes calculations easier. Without much loss of accuracy, the amount of calculations is greatly reduced, thereby improving calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flow chart for determining the work and idle time rhythms of the present invention;
[0039] Figure 2 Schematic diagram of data iterative calculation;
[0040] Figure 3 The present invention is a flowchart for implementing the combined operation optimization allocation method. DETAILED DESCRIPTION
[0041] The present invention is further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0042] Example 1
[0043] This embodiment provides a combined operation optimization allocation system applied to a production line, the allocation system comprising:
[0044] A production analysis module, which determines the total duration S of a single product production cycle, the types of operations on the production line, the production time required for each type of operation, and the operation income of each type of operation, and obtains the average duration of each type of operation;
[0045] A beat calculation module, wherein the beat calculation module calculates the number of beats required for each type of operation: the number of beats required for each type of operation is calculated based on the total duration S of a single production cycle, the average duration of each type of operation, and the total number of beats T;
[0046] The profit calculation module uses a recursive algorithm to determine the maximum profit in the job combination based on the number of beats for each job type;
[0047] The job allocation module allocates jobs according to the maximum profit in the job combination to maximize the profit of the production line.
[0048] Furthermore, the revenue calculation module calculates the maximum revenue of the operation combination in the following manner:
[0049] For the first cycle, let the maximum initial benefit be C(0) = 0, and traverse all jobs that take less than or equal to 1 cycle to find the job that can meet the requirement of less than or equal to 1 cycle and has the largest benefit. The maximum benefit obtained is C(1).
[0050] For the n+1th beat, first record the optimal nth beat and its benefit C(n), then traverse all jobs with a beat less than n+1; for the number of beats p j (0<p j <n+1) of the operation j, the total revenue is the maximum operation revenue c of this cycle j And loop calculation to the n+1-pth j The profit of the beat is C(n+1-p j ) The sum of the benefits; loop all the operations and obtain the highest benefit C(n+1) among all the operation combinations under the premise of n+1 cycles.
[0051] Each time the system calculates the optimal job combination and the highest profit, it can serve as the basis for future calculations. In this way, the next time the system calculates, it does not need to traverse all possible combinations, but only needs to calculate the various combinations of this stage. This calculation method can be used while the equipment is online and running, and the calculation can be performed while production is in progress.
[0052] Example 2
[0053] Based on the above system, this embodiment describes a combined operation optimization allocation method applied to a production line, such as Figure 3 As shown, the allocation method comprises the following steps:
[0054] Step 1: Determine the total duration S of a single product production cycle, the types of operations on the production line, the production time required for each type of operation, and the operating income of each type of operation, and obtain the average duration s of each type of operation i ; Further, the step one is specifically:
[0055] Step 1.1, count the length of a single product production cycle, denoted as S;
[0056] Step 1.2: Assume that there are m different jobs in total. Only one job can be produced at the same time. Count the average duration of each job, recorded as s. i , 1≤i≤m;
[0057] Step 1.3: Count the operating revenue brought to the manufacturer by each operation, recorded as c i , 1<i<m.
[0058] like Figure 1 As shown, step 2: calculate the number of beats p required for each type of operation i:Based on the total duration S of a single production cycle and the average duration s of each type of operation i and the total number of beats T, calculate the number of beats p required for each type of operation i ; The step 2 is specifically:
[0059] Step 2.1: calculate the average duration s of each task i , choose greater than the duration s i The smallest integer x i , as the duration of the job rounded up to an integer;
[0060] Step 2.2, for all integer durations x i Find the common divisor l of all the homework;
[0061] Step 2.3, take the common divisor l as the duration of a single beat, divide the total production duration S of the work by l to get the total number of beats T, for job i, its number of beats is
[0062] Step 3: According to the beat number p of each type of operation i , a recursive algorithm is used to determine the maximum benefit in the job combination.
[0063] like Figure 2 As shown, the step three is specifically as follows:
[0064] Step 3.1 For the first cycle, set the maximum initial benefit to C(0) = 0, traverse all jobs that take less than or equal to 1 cycle, and find the job that can meet the requirement of less than or equal to 1 cycle and has the largest benefit. The maximum benefit obtained is C(1);
[0065] Step 3.2 For the n+1th beat, first record the optimal nth beat and its benefit C(n), then traverse all jobs with a beat less than n+1; for a beat number of p j , 0<p j <n+1, the total revenue of job j is the maximum revenue c of this cycle j And loop calculation to the n+1-pth j The profit of the beat is C(n+1-p j ) The sum of the benefits; loop all the operations and obtain the highest benefit C(n+1) among all the operation combinations under the premise of n+1 cycles;
[0066] The step 3.2 is specifically as follows:
[0067] For the n+1th beat, find C(n+1). Among all the jobs, find all the jobs whose beat number is less than or equal to n+1.
[0068] For all beats pj Homework, p j ≤n+1, the corresponding maximum benefit is c j , calculate D j =c j +C(n+1-p j );
[0069] Select D j The largest one is recorded as F(n+1), and the operation combination at this time is recorded;
[0070] Compare F(n+1) and C(n), take the largest term and record it as C(n+1).
[0071] Step 3.3, count from beat 2 to beat T, so as to find the optimal job allocation and the highest profit C(T) when the total beat is T. The specific steps of step 3.3 are:
[0072] At the tth beat, traverse all jobs j that take less than t beats, and set p j is the duration of the beat, c j is the job with the highest profit in this cycle. The result is set as F(t);
[0073] Compare F(t) and C(t-1), and the maximum value is recorded as C(t);
[0074] Calculate from the 2nd beat to the Tth beat, and obtain the maximum profit C(T) at the Tth beat and the corresponding job task arrangement.
[0075] Step 4: Allocate the operations according to the maximum profit in the operation combination to maximize the profit of the production line.
[0076] In the process of flexible production, under the premise that the number of automated production lines is certain, the solution of this application is used to optimize the production lines and select the optimal production combination. It can solve the problem of optimal arrangement of operations on complex production lines, thereby improving production efficiency and increasing economic income. The method is simple and easy to implement and can be easily promoted in production enterprises.
[0077] Case 1: A production line produces shoes. There are 5 types of shoes that can be produced, numbered i, and their production times are s i (minutes), where s1 = 4.8, s2 = 5.8, s3 = 7.9, s4 = 9.6, s5 = 11.4, and their benefits are c i(Yuan), where c1=15, c2=20, c3=25, c4=30, c5=35; on the production line, at a certain moment A1, the idle production time is W1=12 minutes. It is required to calculate how to optimally arrange the production of 5 types of shoes within 12 minutes to obtain the maximum profit.
[0078] According to our method, the following steps can be used to determine the production order of shoes and obtain the maximum profit:
[0079] Step 1: Analyze the manufacturing process and calculate the production time of each operation. The time consumption is s i (minutes), where s1 = 4.8, s2 = 5.8, s3 = 7.9, s4 = 9.6, s5 = 11.4; at the same time, the operation income of each operation is counted, and their income is c i (Yuan), where c1=15, c2=20, c3=25, c4=30, c5=35; the idle production time is calculated to be 12 minutes.
[0080] Step 2: According to the business characteristics, divide the total duration of a single target production cycle into T cycles, and find the cycle required for each operation; in this example, the total production time is 12 minutes, and the time of each operation is rounded up to get the rounded duration x1 = 5, x2 = 6, x3 = 8, x4 = 10, x5 = 12. The maximum divisor of all rounded cycles is 1, so let 1 cycle l = 1 minute, and get the production cycle p of 5 types of shoes. i They are: p1=5, p2=6, p3=8, p4=10, p5=12; the total beat T=12.
[0081] Step 3: Let 0≤t≤T be the tth cycle of the simulated production, let C(t) be the maximum profit when the total number of cycles is t, and the corresponding operation sequence is the optimal operation sequence. Let the maximum profit at the beginning be 0, that is, C(0)=0.
[0082] For the 1st to 4th beats, because C(0)=0, and because the job with the smallest beat is 5 beats, C(1)=C(2)=C(3)=C(4)=0. For the 5th beat, job 1 can be arranged, so C(5)=c1=15 is obtained.
[0083] Step 4: For the sixth beat, first calculate G for 1≤i≤5 i =C(6=p i )+c iThe largest value F(6) is obtained because p3, p4, p5>6, so only p1 and p2 are meaningful; when i=1, G1=C(1)+c1=15, G2=C(0)+c2=20, so F(6)=max(G1,G2)=20, and job 2 is selected from time 0, and the job duration is 6 beats. From step 3, we know that C(5)=15, so C(6)=max(F(6),C(5))=20.
[0084] Step 5: For the 7th beat, since p3, p4, p5>7, only p1 and p2 are meaningful, and it is easy to get C(7)=20. Similarly, we can get C(8)=25, C(9)=25, C(10)=30, C(11)=35, C(12)=40. The calculation formula is
[0085] Step 6: Use the job allocation method calculated in step 5 to appropriately allocate the obtained jobs, so as to maximize the production benefits under the specified constraints. In the industrial production process, the production time of each job is s i It is basically stable, but the types of products that each production line can currently produce A = {i|i can be produced} and the idle production time W are often changing, so it is necessary to frequently calculate the optimal operation.
[0086] Based on this method, how to effectively and quickly determine the production sequence and type under the dual constraints of job types and short production intervals faced by production, this algorithm has significantly improved the calculation speed compared with the traditional exhaustive method, and can perform real-time optimization calculations on the production line to meet the specific needs of flexible production.
[0087] Case 2: A production line produces cups. There are 5 types of cups that can be produced, numbered i, and their production times are s i (minutes), where s1 = 3.9, s2 = 4.7, s3 = 8.8, s4 = 9.5, s5 = 13.6, and their benefits are c i (Yuan), where c1=16, c2=21, c3=36, c4=41, c5=66; on the production line, at a certain moment A1, the idle production time is W1=15 minutes. It is required to calculate how to optimally arrange the production of 5 types of cups within 15 minutes to obtain the maximum profit.
[0088] Use the following steps to determine the order in which shoes should be produced and the maximum profit achieved:
[0089] Step 1: Analyze the manufacturing process and calculate the production time of each operation. Here, the time consumption is s i(minutes), where s1 = 3.9, s2 = 4.7, s3 = 8.8, s4 = 9.5, s5 = 13.6; at the same time, the operation income of each operation is counted, and their income is c i (Yuan), where c1=16, c2=21, c3=36, c4=41, c5=66; the idle production time is counted as 15 minutes.
[0090] Step 2: According to the business characteristics, divide the total duration of a single target production cycle into T cycles, and find the cycle required for each operation; in this example, the total production time is 15 minutes, and the duration of each operation is close to a multiple of 5, so each duration is rounded to a multiple of 5, and the rounded operation duration is x1=5, x2=5, x3=10, x4=10, x5=15. The common divisor of the rounded operation duration is 5. Assume that 1 cycle l=5 minutes, and the production cycle p of the five types of shoes is obtained. i They are: p1=1, p2=1, p3=2, p4=2, p5=3; the total beat T=3.
[0091] Step 3: Let 0≤t≤T be the tth cycle of the simulated production, let C(t) be the maximum profit when the total number of cycles is t, and the corresponding operation sequence is the optimal operation sequence. Let the maximum profit at the beginning be 0, that is, C(0)=0.
[0092] Step 4: For the first beat, since p1=p2=1 and c1<c2=21, C(1)=c2=21;
[0093] Step 5, for the second beat, because C(1)=21, c1+C(1)=37, c2+C(1)=42, c3=36, and c4=41, so C(2)=42.
[0094] Step 6: For the third beat, since C(1) = 21, C(2) = 42, find Since c2+C(2)=63, c4+C(1)=62, c5=66, we get C(3)=66.
[0095] Step seven, using the job allocation method calculated in step six, appropriately allocate the obtained jobs, so as to ensure the maximization of production benefits under the specified constraints; based on the maximum benefit, the job combination that produces the maximum benefit can be directly obtained by comparing the benefit of each job, and the production jobs are implemented in a random order, generally in order from small to large in terms of the number of beats. The job type combination corresponding to the maximum benefit calculated according to the allocation method provided in this application is determined and unique.
[0096] In the industrial production process, the production time of each operation is s iIt is basically stable, but the types of products that each production line can currently produce A = {i|i can be produced} and the idle production time W are often changing, so it is necessary to frequently calculate the optimal operation.
[0097] The above content is a detailed description of the present invention in combination with specific embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art of the present invention, without departing from the concept of the present invention, several simple deductions or substitutions can be made, which should be regarded as falling within the scope of protection of the present invention.
Claims
1. A combined operation optimization allocation method applied to a production line, characterized in that: The allocation method comprises the following steps: Step 1: Determine the total duration S of a single product production cycle, the types of operations on the production line, the production time required for each type of operation, and the operating income of each type of operation, and obtain the average duration s of each type of operation i ; Step 2: Calculate the number of beats p required for each type of operation i :Based on the total duration S of a single production cycle and the average duration s of each type of operation i And the total beat number T calculates the beat number p required for each type of operation i ; Step 3: According to the beat number p of each type of operation i , a recursive algorithm is used to determine the maximum benefit in the job combination; Step 4: Allocate the operations according to the maximum profit in the operation combination to maximize the profit of the production line; Step 3 is specifically as follows: Step 3.1 For the first cycle, set the maximum initial benefit to C(0) = 0, traverse all jobs that take less than or equal to 1 cycle, and find the job that can meet the requirement of less than or equal to 1 cycle and has the largest benefit. The maximum benefit obtained is C(1); Step 3.2 For the n+1th beat, first record the optimal nth beat and its benefit C(n), then traverse all jobs with a beat less than n+1; for a beat number of p j Job j, 0<p j <n+1, the total revenue is the maximum operation revenue c of this cycle j And loop calculation to the n+1-pth j The profit of the beat is C(n+1-p j ) The sum of the benefits; loop all the operations and obtain the highest benefit C(n+1) among all the operation combinations under the premise of n+1 cycles. The result is set as F(t); Compare F(t) and C(t-1), and the maximum value is recorded as C(t); Step 3.3, count from beat 2 to beat T, so as to obtain the optimal job allocation and the highest profit C(T) when the total beat is T.
2. The combined operation optimization allocation method applied to a production line according to claim 1 is characterized in that: The step 1 is specifically as follows: Step 1.1, count the length of a single product production cycle, denoted as S; Step 1.2: Assume that there are m different jobs in total. Only one job can be produced at the same time. Count the average duration of each job, recorded as s. i , 1≤i≤m; Step 1.3: Count the operating income of each type of operation, denoted as c i , 1≤i≤m.
3. The combined operation optimization allocation method applied to a production line according to claim 2 is characterized in that: The step 2 is specifically as follows: Step 2.1: calculate the average duration s of each task i , choose greater than the duration s i The smallest integer x i , as the duration of the job rounded up to an integer; Step 2.2, for all integer durations x i Find the common divisor l of all the homework; Step 2.3, take the common divisor l as the duration of a single beat, divide the total production duration S of the work by l to get the total number of beats T, for job i, its number of beats is 4. The combined operation optimization allocation method applied to a production line according to claim 3 is characterized in that: The step 3.2 is specifically as follows: For the n+1th beat, find C(n+1). Among all the jobs, find all the jobs whose beat number is less than or equal to n+1. For all beats p j Homework, p j ≤n+1, the corresponding maximum benefit is c j , calculate D j =c j +C(n+1-p j ); Select D j The largest one is recorded as F(n+1), and the operation combination at this time is recorded; Compare F(n+1) and C(n), take the largest term and record it as C(n+1).
5. A combined operation optimization allocation system applied to a production line, characterized in that: The dispensing system comprises: Production analysis module, which determines the total duration S of a single product production cycle, the types of operations on the production line, the production time required for each type of operation, and the operating income of each type of operation, and obtains the average duration s of each type of operation i ; A beat calculation module, which calculates the beat number p required for each type of operation i :Based on the total duration S of a single production cycle and the average duration s of each type of operation i And the total beat number T calculates the beat number p required for each type of operation i ; The revenue calculation module calculates the number of beats p for each type of operation. i , a recursive algorithm is used to determine the maximum benefit in the job combination; the benefit calculation module calculates the maximum benefit of the job combination in the following manner: For the first cycle, let the maximum initial benefit be C(0) = 0, and traverse all jobs that take less than or equal to 1 cycle, and find the job that meets the requirement of less than or equal to 1 cycle and has the maximum benefit. The maximum benefit obtained is C(1); For the n+1th beat, first record the optimal nth beat and its benefit C(n), then traverse all jobs with a beat less than n+1; for the number of beats p j Job j, 0<p j <n+1, the total revenue is the maximum operation revenue c of this cycle j And loop calculation to the n+1-pth j The profit of the beat is C(n+1-p j ) The sum of the benefits; loop all the operations and obtain the highest benefit C(n+1) among all the operation combinations under the premise of n+1 cycles. The result is set as F(t); Compare F(t) and C(t-1), and get the maximum value, which is recorded as C(t); count from beat 2 to beat T, so as to find the optimal job allocation and the highest profit C(T) when the total beat is T; The job allocation module allocates jobs according to the maximum profit in the job combination to maximize the profit of the production line.
