An optimization method for prefabricated component production scheduling considering outsourcing and multi-skilled resource constraints

By constructing a prefabricated component production scheduling optimization method with limited outsourcing and multi-skill resources, and using reinforcement learning genetic algorithm (RLGA) to optimize production mode and resource scheduling, the production efficiency of prefabricated component manufacturers under resource constraints and order fluctuations is solved. and cost issues, minimizing the total production cost and improving production efficiency.

CN118229120BActive Publication Date: 2024-10-01NANJING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410649553.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-10-01
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

When faced with limited multi-skilled resources and fluctuating orders, prefabricated component manufacturers find it difficult to find a balance between controlling total production costs and improving production efficiency, resulting in low production efficiency and high costs.

Method used

Construct a prefabricated component production scheduling optimization method that considers outsourcing and multi-skilled resource constraints. By obtaining initialization parameters and indicator data, a production scheduling model that minimizes the total production cost is constructed, and the reinforcement learning genetic algorithm (RLGA) is used to solve it. Finally obtain the optimal production mode, mass production plan and resource scheduling plan.

Benefits of technology

When faced with fluctuating orders, choosing an appropriate production model can improve overall production efficiency and minimize total production costs. It has higher applicability and adaptability, and can provide better operating profits and competition for precast component manufacturers. Advantages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118229120B_ABST
    Figure CN118229120B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for optimizing the production scheduling of prefabricated components considering outsourcing and multi-skill resource constraints. According to the relevant requirements required in practical problems, the relevant parameters and indicators required for the production scheduling model are constructed; according to the parameters and indicators, a prefabricated component production scheduling model considering outsourcing and multi-skill resource constraints with the goal of minimizing the total production cost is constructed; based on the constructed model, it is solved by combining genetic algorithm (RLGA) with reinforcement learning to obtain the optimal prefabricated component production mode, batch production plan and resource scheduling plan. The production scheduling optimization method used in the present invention is conducive to the implementation of better production management measures by prefabricated component manufacturers, and can bring greater operating profits to manufacturers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to production scheduling technology, and in particular relates to a prefabricated component production scheduling optimization method considering outsourcing and multi-skill resource constraints. Background Art

[0002] At present, with the continuous development of the global supply chain, the orders of manufacturing companies are more uncertain. Therefore, how to ensure that manufacturing companies can maximize their profits while meeting market demand has become an important issue for manufacturers. As an important part of the manufacturing industry, prefabricated components continue to promote the transformation of the construction industry. Therefore, the production scheduling problem of prefabricated component manufacturers is considered.

[0003] Based on real-life scenarios, the production model of prefabricated components is divided into self-production and outsourcing, and is allocated according to factors such as production costs, the number of own employees and their skills.

[0004] From the perspective of production model, self-production refers to production completed by the company's own employees. Since the production of different types of components needs to be completed by employees with corresponding skills, and the size of the employee and their skill types are fixed in the short term, the types of components that can be self-produced are limited, and the overall production efficiency of self-production also changes with the scheduling of employees. Outsourcing is different. Within the range of the number that can be outsourced, the labor company will arrange suitable production personnel according to the specific outsourcing quantity and type to ensure that production is completed within the specified time. Therefore, the components that can be produced cover all types.

[0005] The production cost of prefabricated components not only includes the fixed production cost of components (i.e. materials, equipment, etc.), but is also affected by different production models. In the self-production model, the remuneration of the company's own employees is calculated in the form of fixed salary + production volume. Regardless of whether the company is in operation or not, it has to pay a certain amount of labor costs. This model has lower costs during the peak production season and can ensure the stability of the personnel required for production. In the outsourcing model, the outsourcing fee is calculated based on the outsourcing volume, and the unit production cost is higher than self-production, but its advantage is that when the order time distribution is uneven, lower overall production costs can be achieved through flexible personnel arrangements, and it is not limited by the employee skill requirements required for the production of different component types.

[0006] Due to fierce market competition, component production orders are not always saturated. For cost reduction considerations, component manufacturers often only retain a part of their own employees. This means that when facing multiple different orders, even if manufacturers can produce all of them by themselves, they will be limited by the number of multi-skilled employees, resulting in lower production efficiency and even order delays. In the self-production + outsourcing mixed mode, component production efficiency has improved, but production costs have also increased with the increase in outsourcing volume. At the same time, due to the costs of mold conversion in the production of different types of components, manufacturers usually adopt batch production, comprehensively considering factors such as order requirement time, number of personnel and their skills, and the cost difference between self-production and outsourcing to arrange a reasonable component production sequence and production method to ensure that the order is completed on time. It can be seen that the workload allocation between self-production and outsourcing, the determination of production batch sequence, the arrangement of production time, and the scheduling of specific self-owned human resources are closely related and need to be planned as a whole.

[0007] In response to the above problems, prefabricated component manufacturers need to develop a system that aims to minimize the total production cost and find the optimal prefabricated component production model, batch production plan and resource scheduling plan under the constraints of limited resources and different production modes such as outsourcing and self-production, so as to improve their operating profits and competitive advantages. Summary of the invention

[0008] Purpose of the invention: The purpose of the present invention is to solve the deficiencies in the prior art and to provide a method for optimizing the production scheduling of prefabricated components taking into account outsourcing and multi-skilled resource constraints.

[0009] Technical solution: A method for optimizing the production scheduling of prefabricated components considering outsourcing and multi-skilled resource constraints of the present invention comprises the following steps:

[0010] Step 1: Get initialization parameters and indicator data, including component type set , various types of components Contains category collection , self-produced production line collection , each production line Production batch collection , Own staff collection , Time period collection ;

[0011] Step 2: construct a prefabricated component production scheduling model with the goal of minimizing total production cost and considering outsourcing and multi-skilled resource constraints; the prefabricated component production scheduling model includes an objective function and constraint conditions;

[0012] (A) The objective function is shown in formula (1):

[0013] (1)

[0014] Among them, W is the total production cost, RC is the component self-production sub-cost, OC is the component outsourcing sub-cost, TC is the component production conversion sub-cost, and SC is the component storage sub-cost;

[0015] Component self-production cost The formula is as follows:

[0016] (2)

[0017] (3)

[0018] (4)

[0019] Formula (2) shows that the self-production cost of components is composed of fixed salary RFC Performance-based pay RIC It consists of two parts;

[0020] Formula (3) represents fixed salary RFC The calculation formula of express 0 / 1 Matrix, if you have your own employees Capable of production The skills of class components, ;otherwise , express The cost of hiring skills for component-like production;

[0021] Formula (4) represents performance pay RIC The calculation formula of Refers to the first Components of various sizes; It is the time period Top pair The demand for the components; It is the time period Outsourcing The number of components, It is self-produced Unit performance bonus for each component;

[0022] Cost of outsourcing components As shown in formula (5):

[0023]

[0024] yes Unit outsourcing cost of each component, , is the unit fixed cost of outsourcing, yes 0 / 1 Variable, if in the period t If there are outsourced components in production, , otherwise 0;

[0025] Component production conversion cost As shown in formula (6):

[0026]

[0027] In the self-production mode, if the production line In time period t Production started on Batch component types are ,but ; otherwise 0, The production line is produced by Switching components to production The conversion costs caused by the components;

[0028] Component storage sub-cost As shown in formula (7):

[0029] (7)

[0030] It is the time period on The total inventory of components, yes Unit inventory cost of each component;

[0031] (B) The constraints are shown in equations (8)-(24):

[0032] (8)

[0033] (9)

[0034] (10)

[0035] (11)

[0036] (12)

[0037] (13)

[0038] (14)

[0039] (15)

[0040] (16)

[0041] (17)

[0042] (18)

[0043] (19)

[0044] (20)

[0045] (twenty one)

[0046] (twenty two)

[0047] (twenty three)

[0048] (twenty four)

[0049] Equations (8) and (9) indicate that the self-produced and outsourced components can meet the needs of each time period; express Class component Fixed production quantity of a single batch of components; express The batch production time of each component;

[0050] Formula (10) indicates that the inventory of each component in any time period does not exceed the total inventory capacity of the component; express Total inventory capacity of the components;

[0051] Formula (11) indicates that the outsourcing volume in any time period will not exceed the maximum outsourcing volume; express Class component The unit volume of the component; It indicates the maximum amount that can be outsourced per unit time;

[0052] Equations (12) and (13) indicate whether the outsourced production line is enabled at time t;

[0053] Formula (14) indicates that each production batch of each production line has at most one start time and can only produce one component;

[0054] Formula (15) means that before the production batch of the production line is completed, the subsequent batches of products cannot be completed;

[0055] Formula (16) indicates that after the production line starts production, the start time of the next batch cannot be earlier than the end time of the previous batch; is a 0 / 1 variable. At time t', if the first m +1 batch is produced kind of component, then , otherwise 0;

[0056] Equations (17) and (18) indicate that the number of own employees in each time period should be related to the type of components produced; Indicates production The number of employees with production skills required for a component of this type, Indicates production line In the period What you need The number of employees with skills in component production; yes p Production line m The period from the start to the end of batch production;

[0057] Formula (19) indicates that for any production line, the total number of employees used must not exceed the total number of employees with the production skills of these components; express The cost of hiring skills for component-like production;

[0058] Formula (20) indicates that various types of resources cannot be reused;

[0059] Equations (21) to (24) represent the relevant constraints of decision variables;

[0060] Step 3: Solve the above-mentioned prefabricated component production scheduling model by combining the genetic algorithm RLGA with reinforcement learning, and finally obtain the optimal prefabricated component production mode, batch production plan and resource scheduling plan. The specific process is as follows:

[0061] Step 3.1: Generate the initial population. The chromosomes in the initial population are generated by the joint coding of the Scheduling Priority List (SPL) and the Production Line List (PLL). The feasibility of the generated chromosomes is judged so that the production time of the components in the self-production mode does not exceed the constraint time. , the number of components outsourced shall not exceed the maximum amount that can be outsourced;

[0062] Step 3.2: Starting with the initial population, use the incentive mechanism combined with reinforcement learning to select appropriate operators to evolve the population until the total production cost is minimized. .

[0063] Furthermore, the model linearization process in step 2 is as follows:

[0064] For equation (6) (component production conversion cost), we introduce a variable , , which means that in the self-production mode, if the production line Production Batch component types are , in The types of components produced in batches are ,but ; otherwise 0;

[0065] The linear formula constructed from this is as follows:

[0066] ;

[0067] ;

[0068] ;

[0069] ;

[0070] ;

[0071] ;

[0072] For formula (12), we introduce a maximum value , and then construct the following linear formula:

[0073] ;

[0074] ;

[0075] .

[0076] Furthermore, the detailed method of step 3.1 is:

[0077] Step 3.1.1, randomly generate a chromosome;

[0078] The joint code list position is sorted according to the size of the component type number, coded as the component batch list CBL, in the first k Positions, the number in CBL is the component type number j The number in SPL indicates the specific scheduling priority number of this batch of components. i The number in PLL indicates its production mode or the production line to which it is assigned. p, This means that this batch of components adopts the outsourced production model. Indicates the use of production line p Self-produced;

[0079] Step 3.1.2: Determine whether the production time of the components in the self-production mode in the generated chromosome exceeds the time constraint. If it exceeds, return to step 3.1.1; if it does not exceed, proceed to the next step; the time constraint refers to: ;

[0080] Step 3.1.3: Determine whether the components in the generated chromosome that adopt the outsourcing mode will exceed the production constraint. If so, return to step 3.1.1; if not, proceed to the next step; the production constraint means that the total outsourcing quantity cannot exceed the maximum outsourcing quantity: ;

[0081] Step 3.1.4, input the chromosome into the population;

[0082] Step 3.1.5: Determine whether the population has reached the maximum population size. If not, return to step 3.1.1; if reached, output the initial population.

[0083] Furthermore, the detailed method of step 3.2 is:

[0084] Step 3.2.1, use the greedy algorithm to find the best time arrangement for each solution to calculate the fitness of the chromosome; The population of chromosomes, The fitness of a chromosome is: ;

[0085] Step 3.2.2, calculate the population state, the population at time Status on The diversity coefficient Determine, define For a population in time The calculation formula is as follows:

[0086]

[0087] in, represents the maximum number of iterations, The calculation formula is as follows:

[0088]

[0089] in, refers to the population in time The average fitness on refers to the population in time The best fitness on Is the population with The number of chromosomes with the same fitness (including itself);

[0090] Step 3.2.3: Based on the population status and Q table, use Greedy method selects actions;

[0091] Step 3.2.4, select some chromosomes from the parent population to form a sub-population according to the roulette algorithm;

[0092] Step 3.2.5, perform actions on the sub-population to form a new population;

[0093] Step 3.2.6, mutate the chromosomes of the sub-population to generate feasible sub-populations;

[0094] Step 3.2.7, decode each chromosome of the sub-population and calculate the fitness;

[0095] Step 3.2.8, select the first half of chromosomes with the largest fitness in the parent-child population to form a new population;

[0096] Step 3.2.9, calculate the immediate reward of the action and update the Q table; the Q table is updated using the Q learning algorithm and is obtained through the following calculation formula. is the learning rate, is the discount rate;

[0097]

[0098] Step 3.2.10: Determine whether the maximum number of iterations has been reached. If not, return to step 3.2.2; if reached, end.

[0099] Furthermore, in step 3.2.1, when calculating the production plan and cost using the greedy algorithm, first input the corresponding parameters , 、SPL、PPL、 , , , , , , , , , , , , , , , , , , and , and initialize it, let , , , , , ; For each element in the time set T, starting from t=1, perform the following operations;

[0100] Step a: For each Value, pair set Each element of To get started, do the following;

[0101] Step b: and , find the highest priority batch of components that have not yet been produced: ;

[0102] Step c: Determine whether the corresponding production line is in production. If not, , if it is in production, jump to step h;

[0103] Step d: Determination Whether production at any time meets inventory requirements, that is, judging Is it true? If it is true, go to step f; if not, go to step h;

[0104] Step e: Judgment Whether production at any time meets the staffing requirements: Is it true? If it is true, go to step f; if not, go to step h;

[0105] Step f: Arrange the corresponding production plan. ;

[0106] Step g, updating corresponding sets and parameters;

[0107] ;

[0108] ;

[0109] ;

[0110] Step h: season , return to step b; otherwise, execute step i;

[0111] Step i: season , return to step a; otherwise, end the loop;

[0112] Step j: For each element of set T, To get started, do the following

[0113] step k、 judge Is there a shortage of stock at the moment? If out of stock, execute step l ; If it is not out of stock, execute step q ;

[0114] step l、 Determine whether there is currently outsourcing volume: , if outsourcing exists, execute step m ; If there is no outsourcing, execute step q ;

[0115] step m、 For each element of the set T, from To get started, do the following;

[0116] step n、 Arrange outsourced replenishment within the scope, namely:

[0117] make ;

[0118] step o、 Update parameters;

[0119] make ;

[0120] step p、 when season , execute steps n ; Otherwise, execute step q ;

[0121] step q、 when season , execute steps k ; Otherwise, for each element of the set T, in arrive Within the scope, perform the following operations;

[0122] step r、 calculate The gap between supply and demand at any given moment, namely:

[0123] ;

[0124] ;

[0125] ;

[0126] calculate Out-of-stock quantity and inventory quantity at any time ,Right now:

[0127] ;

[0128] Calculate total cost ,Right now:

[0129] ;

[0130] ;

[0131] ;

[0132] ;

[0133] ;

[0134] Finally, the decision variables are output 。

[0135] Furthermore, the step 3.2.3 utilizes When the greedy method selects actions, it uses two operators: 2-opt operator and single-point crossover operator. Based on the fact that the chromosomes in the initial population are jointly encoded, each layer can execute 2-opt or single-point crossover operator.

[0136] Apply the 2-opt operator to a single chromosome: When you choose to execute the 2-opt operator on the SPL or PLL coding layer, first Choose any two unequal numbers and , and then swap the order of the codes between these two positions in the code to get a new sequence;

[0137] Apply the single-point crossover operator to the double chromosomes: When you choose to perform a single-point crossover on a certain layer of encoding, first Any number is selected as the crossover point. All chromosome segments before the crossover point are retained in the offspring. As for the segments after the crossover point, for SPL, Children 1 obtains the genes not included in Parent 2 in order, and Children 2 obtains the genes not included in Parent 1 in order. For the production line list PLL, the segments after the crossover point are directly exchanged.

[0138] The final population includes a total of four directions when performing directional iteration, that is, there are four action options: Action 1: both coding layers execute 2-opt; Action 2: the SPL coding layer executes single-point crossover, and the PLL coding layer executes 2-opt; Action 3: the SPL coding layer executes 2-opt, and the PLL coding layer executes single-point crossover; Action 4: both coding layers execute single-point crossover.

[0139] Furthermore, the steps of mutating the chromosomes of the sub-populations in step 3.2.6 to generate feasible sub-populations are as follows:

[0140] Step A, create a new empty population;

[0141] Step B, performing mutation on the chromosomes in the population;

[0142] Step C, determine whether the chromosome is feasible, if feasible, execute step D; if not feasible, execute step E;

[0143] Step D: Insert the chromosome into the new population and jump to step J

[0144] Step E: determine whether the maximum number of mutations has been reached. If not, return to step B; otherwise, execute step F.

[0145] Step F, randomly generate a chromosome;

[0146] Step G, determine whether the time of the generated chromosome exceeds the time constraint, if so, return to step F; if not, execute step H;

[0147] Step H: determine whether the generated chromosome exceeds the production constraint. If so, return to step F; if not, execute step I.

[0148] Step I: inserting chromosomes into the new population;

[0149] Step J: Determine whether the population has reached the maximum population size. If not, return to step B; if reached, output the new population.

[0150] Beneficial effects: This invention constructs a flexible production scheduling optimization model for prefabricated components that takes into account outsourcing and multi-skilled resource constraints. It can select the appropriate production mode when facing fluctuating orders, thereby improving the overall production efficiency and minimizing the total production cost. Compared with the prior art, this invention has the following advantages:

[0151] 1) The present invention considers more factors and features. For example, components, production modes, and personnel skill sets are divided into different types and present different features. The mold conversion cost of batch production of different types of components is also considered. All of the above make the problem involve more sets, parameters, and constraints than traditional problems. Therefore, it can better meet the actual requirements of component production and has higher applicability.

[0152] 2) The present invention adds the decision variables of self-production and outsourcing allocation under the outsourcing background, and the decision here is closely related to the number of multi-skilled self-owned personnel and the batch production sequence decision. This is more in line with the needs of today's prefabricated component manufacturers and can provide better reference experience for current prefabricated component manufacturers. BRIEF DESCRIPTION OF THE DRAWINGS

[0153] Figure 1 is the RLGA flow chart of the present invention;

[0154] Figure 2 A schematic diagram of chromosome coding in the embodiment;

[0155] Figure 3 Schematic diagram of 2-opt operator in the embodiment;

[0156] Figure 4 A schematic diagram of a single-point crossover in an embodiment

[0157] Figure 5 Schematic diagram of production plan for example. DETAILED DESCRIPTION

[0158] The technical solution of the present invention is described in detail below, but the protection scope of the present invention is not limited to the embodiments.

[0159] To facilitate understanding of the technical solution of the present invention, the meanings of the relevant parameters of this embodiment are explained through Table 1.

[0160] Table 1

[0161]

[0162] like Figure 1 As shown, the method for optimizing the production scheduling of prefabricated components considering outsourcing and multi-skill resource constraints of the present invention comprises the following steps:

[0163] Step 1: Get initialization parameters and indicator data, including component type set , various types of components Contains category collection , self-produced production line collection , each production line Production batch collection , Own staff collection , Time period collection ;

[0164] Step 2: construct a prefabricated component production scheduling model with the goal of minimizing total production cost and considering outsourcing and multi-skilled resource constraints; the prefabricated component production scheduling model includes an objective function and constraint conditions;

[0165] (A) The objective function is shown in formula (1):

[0166] (1)

[0167] Among them, W is the total production cost, RC is the component self-production sub-cost, OC is the component outsourcing sub-cost, TC is the component production conversion sub-cost, and SC is the component storage sub-cost;

[0168] Component self-production cost The formula is as follows:

[0169] (2)

[0170] (3)

[0171] (4)

[0172] Formula (2) shows that the self-production cost of components is composed of fixed salary RFC Performance-based pay RIC It consists of two parts;

[0173] Formula (3) represents fixed salary RFC The calculation formula of express 0 / 1 Matrix, if you have your own employees Capable of production The skills of class components, ;otherwise , express The cost of hiring skills for component-like production;

[0174] Formula (4) represents performance pay RIC The calculation formula of means e Type component Components of various sizes; It is the time period Top pair The demand for the components; It is the time period Outsourcing The number of components, It is self-produced Unit performance bonus for each component;

[0175] Cost of outsourcing components As shown in formula (5):

[0176] (5)

[0177] yes Unit outsourcing cost of each component, , is the unit fixed cost of outsourcing, yes 0 / 1 Variable, if in the period t If there are outsourced components in production, , otherwise 0;

[0178] Component production conversion cost As shown in formula (6):

[0179] (6)

[0180] In the self-production mode, if the production line In time period t Production started on Batch component types are ,but ; otherwise 0, The production line is produced by Switching components to production The conversion costs caused by the components;

[0181] Component storage sub-cost As shown in formula (7):

[0182] (7)

[0183] It is the time period on The total inventory of components, yes Unit inventory cost of each component;

[0184] (B) The constraints are shown in equations (8)-(24):

[0185] (8)

[0186] (9)

[0187] (10)

[0188] (11)

[0189] (12)

[0190] (13)

[0191] (14)

[0192] (15)

[0193] (16)

[0194] (17)

[0195] (18)

[0196] (19)

[0197] (20)

[0198] (twenty one)

[0199] (twenty two)

[0200] (twenty three)

[0201] (twenty four)

[0202] Equations (8) and (9) indicate that the self-produced and outsourced components can meet the needs of each time period; express Class component Fixed production quantity of a single batch of components; express The batch production time of each component;

[0203] Formula (10) indicates that the inventory of each component in any time period does not exceed the total inventory capacity of the component; express Total inventory capacity of the components;

[0204] Formula (11) indicates that the outsourcing volume in any time period will not exceed the maximum outsourcing volume; express Class component The unit volume of the component; It indicates the maximum amount that can be outsourced per unit time;

[0205] Equations (12) and (13) indicate whether the outsourced production line is enabled at time t;

[0206] Formula (14) indicates that each production batch of each production line has at most one start time and can only produce one component;

[0207] Formula (15) means that before the production batch of the production line is completed, the subsequent batches of products cannot be completed;

[0208] Formula (16) indicates that after the production line starts production, the start time of the next batch cannot be earlier than the end time of the previous batch; is a 0 / 1 variable. At time t', if the first m +1 batch is produced kind of component, then , otherwise = 0;

[0209] Equations (17) and (18) indicate that the number of own employees in each time period should be related to the type of components produced; Indicates production The number of employees with production skills required for a component of this type, Indicates production line In the period What you need The number of employees with skills in component production; yes p Production line m The period from the start to the end of batch production;

[0210] Formula (19) indicates that for any production line, the total number of employees used must not exceed the total number of employees with the production skills of these components; express The cost of hiring skills for component-like production;

[0211] Formula (20) indicates that various types of resources cannot be reused;

[0212] Equations (21) to (24) represent the relevant constraints of decision variables;

[0213] (C) Model linearization: In order to obtain the optimal solution of the model, the nonlinear formulas in the model need to be linearized.

[0214] For equation (6) (component production conversion cost), we introduce a variable , , which means that in the self-production mode, if the production line Production Batch component types are , in The types of components produced in batches are ,but ; otherwise 0.

[0215] The linear formula constructed from this is as follows:

[0216] ;

[0217] ;

[0218] ;

[0219] ;

[0220] ;

[0221] ;

[0222] For formula (12), we introduce a maximum value , and then construct the following linear formula:

[0223] ;

[0224] ;

[0225] .

[0226] Step 3: Solve the above-mentioned prefabricated component production scheduling model by combining the genetic algorithm RLGA with reinforcement learning, and finally obtain the optimal prefabricated component production mode, batch production plan and resource scheduling plan. The specific process is as follows:

[0227] Step 3.1: Generate the initial population. The chromosomes in the initial population are generated by the joint coding of the scheduling priority list SPL and the production line allocation list PLL, and the feasibility of the generated chromosomes is judged so that the production time of the components in the self-production mode does not exceed the constraint time. , the number of components outsourced shall not exceed the maximum amount that can be outsourced.

[0228] The detailed method of step 3.1 of this embodiment is:

[0229] Step 3.1.1, randomly generate a chromosome;

[0230] The joint code list position is sorted according to the size of the component type number, coded as the component batch list CBL, in the first k Positions, the number in CBL is the component type number j The number in SPL indicates the specific scheduling priority number of this batch of components.i The number in PLL indicates its production mode or the production line to which it is assigned. p, This means that this batch of components adopts the outsourced production model. Indicates the use of production line p Self-produced.

[0231] like Figure 2 As shown in the figure, it is a production allocation plan for 2 production lines and 3 types of components. Among them, the first type of component needs to be produced in 2 batches, the second type of component and the third type of component need to be produced in 3 batches respectively, so the total number of component production batches is In SPL, the smallest code is the first position, and its corresponding component type 1, production mode =0 means outsourcing; the position with the second smallest code is the 6th position, and its corresponding component type 3, assign production lines It is self-produced production line 2, so the first type of production component of production line 2 is type 3.

[0232] By decoding the above code, the corresponding component production allocation plan can be obtained, including the types of outsourced components and batch quantity sets. , each production line Production batch quantity And the types of components corresponding to each batch , this information becomes the basic data for production schedule.

[0233] Step 3.1.2: Determine whether the time for generating chromosomes exceeds the time constraint. If so, return to step 3.1.1; if not, proceed to the next step. The time constraint is: ;

[0234] Step 3.1.3: Determine whether the generated chromosome will exceed the production constraint. If so, return to step 3.1.1; if not, proceed to the next step; the production constraint means that the total outsourcing quantity cannot exceed the maximum outsourcing quantity: ;

[0235] Step 3.1.4, input the chromosome into the population;

[0236] Step 3.1.5: Determine whether the population has reached the maximum population size. If not, return to step 3.1.1; if reached, output the initial population;

[0237] Step 3.2: Starting with the initial population, use the incentive mechanism combined with reinforcement learning to select appropriate operators to evolve the population until the total production cost is minimized. , the specific method is:

[0238] Step 3.2.1, use the greedy algorithm to find the best time arrangement for each solution to calculate the fitness of the chromosome; The population of chromosomes, The fitness of a chromosome is: ;

[0239] Step 3.2.2, calculate the population state, the population at time Status on The diversity coefficient Determine, define For a population in time The calculation formula is as follows:

[0240]

[0241] in, represents the maximum number of iterations, The calculation formula is as follows:

[0242]

[0243] in, refers to the population in time The average fitness on refers to the population in time The best fitness on Is the population with The number of chromosomes with the same fitness (including itself);

[0244] Step 3.2.3: Based on the population status and Q table, use Greedy method selects actions;

[0245] Step 3.2.4, select some chromosomes from the parent population to form a sub-population according to the roulette algorithm;

[0246] Step 3.2.5, perform actions on the sub-population to form a new population;

[0247] Step 3.2.6, mutate the chromosomes of the sub-population to generate feasible sub-populations;

[0248] Step 3.2.7, decode each chromosome of the sub-population and calculate the fitness;

[0249] Step 3.2.8, select the first half of chromosomes with the largest fitness in the parent-child population to form a new population;

[0250] Step 3.2.9, calculate the immediate reward of the action and update the Q table; the Q table is updated using the Q learning algorithm and is obtained through the following calculation formula. is the learning rate, is the discount rate;

[0251]

[0252] Step 3.2.10: Determine whether the maximum number of iterations has been reached. If not, return to step 3.2.2; if reached, end.

[0253] In step 3.2.1 of this embodiment, when using the greedy algorithm to calculate the production plan and cost, first enter the corresponding parameters , 、SPL、PPL、 , , , , , , , , , , , , , , , , , , and , and initialize it, let , , , , , ; For each element in the time set T, starting from t=1, perform the following operations;

[0254] Step a: For each Value, pair set Each element of To get started, do the following;

[0255] Step b: and , find the highest priority batch of components that have not yet been produced: ;

[0256] Step c: Determine whether the corresponding production line is in production. If not, , if it is in production, jump to step h;

[0257] Step d: Determination Whether production at any time meets inventory requirements, that is, judging Is it true? If it is true, go to step f; if not, go to step h;

[0258] Step e: Judgment Whether production at any time meets the staffing requirements: Is it true? If it is true, go to step f; if not, go to step h;

[0259] Step f: Arrange the corresponding production plan. ;

[0260] Step g, updating corresponding sets and parameters;

[0261] ;

[0262] ;

[0263] ;

[0264] Step h: season , return to step b; otherwise, execute step i;

[0265] Step i: season , return to step a; otherwise, end the loop;

[0266] Step j: For each element of set T, To get started, do the following

[0267] step k、 judge Is there a shortage of stock at the moment? , if out of stock, execute step l ; If it is not out of stock, execute step q ;

[0268] step l、 Determine whether there is currently outsourcing capacity: , if outsourcing exists, execute step m ; If there is no outsourcing, execute step q ;

[0269] step m、 For each element of the set T, from To get started, do the following;

[0270] step n、 Arrange outsourced replenishment within the scope, namely:

[0271] make ;

[0272] step o、 Update parameters;

[0273] make ;

[0274] step p、 when season , execute steps n ; Otherwise, execute step q ;

[0275] step q、 when season , execute steps k ; Otherwise, for each element of the set T, in arrive Within the scope, perform the following operations;

[0276] step r、 calculate The gap between supply and demand at any given moment, namely:

[0277] ;

[0278] ;

[0279] ;

[0280] calculate Out-of-stock quantity and inventory quantity at any time ,Right now:

[0281] ;

[0282] Calculate total cost ,Right now:

[0283] ;

[0284] ;

[0285] ;

[0286] ;

[0287] ;

[0288] Finally, the decision variables are output .

[0289] In this example, step 3.2.3 uses When the greedy method selects actions, it uses two operators: 2-opt operator and single-point crossover operator. Based on the fact that the chromosomes in the initial population are jointly encoded, each layer can execute 2-opt or single-point crossover operator.

[0290] like Figure 3 As shown, the 2-opt operator is applied to a single chromosome: When the 2-opt operator is selected to be executed on the SPL or PLL coding layer, first Choose any two unequal numbers and , and then swap the order of the codes between these two positions in the code to get a new sequence;

[0291] like Figure 4 As shown in the figure, the single-point crossover operator is applied to the double chromosomes: When a single-point crossover is selected on a certain layer of coding, first Any number is selected as the crossover point. All chromosome segments before the crossover point are retained in the offspring. As for the segments after the crossover point, for SPL, Children 1 obtains the genes not included in Parent 2 in order, and Children 2 obtains the genes not included in Parent 1 in order. For the production line list PLL, the segments after the crossover point are directly exchanged.

[0292] The final population includes a total of four directions when performing directional iteration, that is, there are four action options: Action 1: both coding layers execute 2-opt; Action 2: the SPL coding layer executes single-point crossover, and the PLL coding layer executes 2-opt; Action 3: the SPL coding layer executes 2-opt, and the PLL coding layer executes single-point crossover; Action 4: both coding layers execute single-point crossover.

[0293] The above step 3.2.6 mutates the chromosomes of the sub-population, and the steps to generate a feasible sub-population are as follows:

[0294] Step A, create a new empty population;

[0295] Step B, performing mutation on the chromosomes in the population;

[0296] Step C, determine whether the chromosome is feasible, if feasible, execute step D; if not feasible, execute step E;

[0297] Step D: Insert the chromosome into the new population and jump to step J

[0298] Step E: determine whether the maximum number of mutations has been reached. If not, return to step B; otherwise, execute step F.

[0299] Step F, randomly generate a chromosome;

[0300] Step G, determine whether the time of the generated chromosome exceeds the time constraint, if so, return to step F; if not, execute step H;

[0301] Step H: determine whether the generated chromosome exceeds the production constraint. If so, return to step F; if not, execute step I.

[0302] Step I: inserting chromosomes into the new population;

[0303] Step J: Determine whether the population has reached the maximum population size. If not, return to step B; if reached, output the new population.

[0304] Example:

[0305] The actual background of a prefabricated component production plant in East my country is used as an engineering example to illustrate the implementation process of this invention. The plant has 31 employees, and the skills mastered by each employee are shown in Table 2, where the production skill type corresponds to the component type. The employee employment cost is 75 / person / day.

[0306] Table 2 Skill information of our own employees

[0307]

[0308] The factory contracted to produce 11 types of components in three categories for four prefabricated building projects within 100 kilometers. The basic information of the components produced is shown in Table 3. In addition, the conversion cost of component production is 180.

[0309] Table 3 Component information

[0310]

[0311] The component demand orders for 20 days in a certain production period in 2023 of the factory are selected as an example. The specific component demand information is shown in Table 4.

[0312] Table 4 Component requirement information

[0313]

[0314] The above case is solved using the proposed RLGA algorithm, and the population size is set during the solution process , the maximum number of genetic generations , crossover probability , mutation probability , learning rate , discount rate , the greedy rate of action selection The algorithm was implemented in Matlab and run on a personal computer with Windows 11 operating system and a 12thGen Intel(R) Core(TM) i7-12700H 2.30 GHz processor. The production plan obtained is as follows: Figure 5 The optimal production plan cost is , which is 1.77% larger than the optimal solution obtained by Cplex, but the calculation time is reduced by 92.93%, which fully demonstrates that the proposed RLGA algorithm can obtain a better solution in a limited time.

Claims

1. A method for optimizing production scheduling of prefabricated components considering outsourcing and multi-skilled resource constraints, characterized in that: The following steps are involved: Step 1: Get initialization parameters and indicator data, including component type set , various types of components Contains category collection , self-produced production line collection , each production line Production batch collection , Own staff collection , Time period collection ; Step 2: construct a prefabricated component production scheduling model with the goal of minimizing total production cost and considering outsourcing and multi-skilled resource constraints; the prefabricated component production scheduling model includes an objective function and constraint conditions; (A) The objective function is shown in formula (1): (1) Among them, W is the total production cost, RC is the component self-production sub-cost, OC is the component outsourcing sub-cost, TC is the component production conversion sub-cost, and SC is the component storage sub-cost; Component self-production cost The formula is as follows: (2) (3) (4) Formula (2) shows that the self-production cost of components is composed of fixed salary RFC Performance-based pay RIC It consists of two parts; Formula (3) represents fixed salary RFC The calculation formula of express 0 / 1 Matrix, if you have your own employees Capable of production The skills of class components, ;otherwise , express The cost of hiring skills for component-like production; Formula (4) represents performance pay RIC The calculation formula of means e Type component Components of various sizes; It is the time period Top pair The demand for the components; It is the time period Outsourcing The number of components, It is self-produced Unit performance bonus for each component; Cost of outsourcing components As shown in formula (5): (5) yes Unit outsourcing cost of each component, , is the unit fixed cost of outsourcing, yes 0 / 1 Variable, if in the period t If there are outsourced components in production, , otherwise 0; Component production conversion cost As shown in formula (6): (6) In self-production mode, if the production line In time period t Production started on Batch component types are ,but ; otherwise 0, The production line is produced by Switching components to production The conversion costs caused by the components; Component storage sub-cost As shown in formula (7): (7) It is the time period on The total inventory of components, yes Unit inventory cost of each component; (B) The constraints are shown in equations (8)-(24): (8) (9) (10) (11) (12) (13) (14) (15) (16) (17) (18) (19) (20) (21) (22) (23) (24) Equations (8) and (9) indicate that the self-produced and outsourced components can meet the needs of each time period; express Class component Fixed production quantity of a single batch of components; express The batch production time of each component; Formula (10) indicates that the inventory of each component in any time period does not exceed the total inventory capacity of the component; express Total inventory capacity of the components; Formula (11) indicates that the outsourcing volume in any time period will not exceed the maximum outsourcing volume; express Class component The unit volume of the component; It indicates the maximum amount that can be outsourced per unit time; Equations (12) and (13) indicate whether the outsourced production line is enabled at time t; Formula (14) indicates that each production batch of each production line has at most one start time and can only produce one component; Formula (15) means that before the production batch of the production line is completed, the subsequent batches of products cannot be completed; Formula (16) indicates that after the production line starts production, the start time of the next batch cannot be earlier than the end time of the previous batch; is a 0 / 1 variable. At time t', if the first m +1 batch is produced kind of component, then , otherwise = 0; Equations (17) and (18) indicate that the number of own employees in each time period should be related to the type of components produced; Indicates production The number of employees with production skills required for a component of this type, Indicates production line In the period What you need The number of employees with skills in component production; yes p Production line m The period from the start to the end of batch production; Formula (19) indicates that for any production line, the total number of employees used must not exceed the total number of employees with the production skills of these components; express The cost of hiring skills for component-like production; Formula (20) indicates that various types of resources cannot be reused; Formula (21)-Formula (24) represent the relevant constraints of the decision variables; Step 3, the above-obtained prefabricated component production scheduling model is solved by combining the genetic algorithm RLGA with reinforcement learning, and finally the optimal prefabricated component production mode, batch production plan and resource scheduling plan are obtained. The specific process is as follows: Step 3.1: Generate the initial population. The chromosomes in the initial population are generated by the joint coding of the scheduling priority list SPL and the production line allocation list PLL, and the feasibility of the generated chromosomes is judged so that the production time of the components in the self-production mode does not exceed the constraint time. , the number of components outsourced shall not exceed the maximum amount that can be outsourced; Step 3.2: Starting with the initial population, use the incentive mechanism combined with reinforcement learning to select the corresponding operator to evolve the population until the total production cost is minimized. .

2. The method for optimizing production scheduling of prefabricated components considering outsourcing and multi-skilled resource constraints according to claim 1 is characterized in that: After the objective function and constraint function are constructed in step 2, in order to find the optimal solution of the model, the nonlinear formulas in the model need to be linearized: For the component production conversion cost formula (6), we introduce a variable , , which means that in the self-production mode, if the production line Production Batch component types are , in The types of components produced in batches are ,but ; otherwise 0; The linear formula constructed from this is as follows: ; ; ; ; ; For formula (12), we introduce a maximum value , and then construct the following linear formula: ; ; 。 3. The method for optimizing production scheduling of prefabricated components considering outsourcing and multi-skilled resource constraints according to claim 1 is characterized in that: The detailed method of step 3.1 is as follows: Step 3.1.1, randomly generate a chromosome; The joint code list position is sorted according to the size of the component type number, coded as the component batch list CBL, in the first k Positions, the number in CBL is the component type number j The number in SPL indicates the specific scheduling priority number of this batch of components. i The number in PLL indicates its production mode or the production line to which it is assigned. p, This means that this batch of components adopts the outsourced production model. Indicates the use of production line p Self-produced; Step 3.1.2: Determine whether the production time of the components in the self-production mode in the generated chromosome exceeds the time constraint. If it exceeds, return to step 3.1.1; if it does not exceed, proceed to the next step; the time constraint refers to: ; Step 3.1.3: Determine whether the components in the generated chromosome that adopt the outsourcing mode will exceed the production constraint. If so, return to step 3.1.1; if not, proceed to the next step; the production constraint means that the total outsourcing quantity cannot exceed the maximum outsourcing quantity: ; Step 3.1.4, input the chromosome into the population; Step 3.1.5: Determine whether the population has reached the maximum population size. If not, return to step 3.1.1; If reached, output the initial population.

4. The method for optimizing production scheduling of prefabricated components considering outsourcing and multi-skilled resource constraints according to claim 1, characterized in that: The detailed method of step 3.2 is as follows: Step 3.2.1, use the greedy algorithm to find the best time arrangement for each solution to calculate the fitness of the chromosome; The population of chromosomes, The fitness of a chromosome is: ; Step 3.2.2, calculate the population state, the population at time Status on The diversity coefficient Determine, define For a population at time The calculation formula is as follows: ; in, represents the maximum number of iterations, The calculation formula is as follows: ; in, refers to the population in time The average fitness on refers to the population in time The best fitness on Is the population with The number of chromosomes with the same fitness; Step 3.2.3: Based on the population status and Q table, use Greedy method selects actions; Step 3.2.4, select some chromosomes from the parent population to form a sub-population according to the roulette algorithm; Step 3.2.5, perform actions on the sub-population to form a new population; Step 3.2.6, mutate the chromosomes of the sub-population to generate feasible sub-populations; Step 3.2.7, decode each chromosome of the sub-population and calculate the fitness; Step 3.2.8, select the first half of chromosomes with the largest fitness in the parent-child population to form a new population; Step 3.2.9, calculate the immediate reward of the action and update the Q table; the Q table is updated using the Q learning algorithm and is obtained through the following calculation formula, where, is the learning rate, is the discount rate; ,in represents the population state before the tth iteration, represents the evolutionary action executed in the tth iteration, represents the Q table of the tth iteration, It represents the maximum immediate reward that can be obtained by taking an action for the state after the tth iteration in the Q table of the tth iteration; Step 3.2.10: Determine whether the maximum number of iterations has been reached. If not, return to step 3.2.2; if reached, end.

5. The method for optimizing production scheduling of prefabricated components considering outsourcing and multi-skilled resource constraints according to claim 4 is characterized in that: When using the greedy algorithm to calculate the production plan and cost in step 3.2.1, first enter the corresponding parameters , 、SPL、PPL、 , , , , , , , , , , , , , , , , , , and , and initialize it, let , , , , , ; For each element in the time set T, starting from t=1, perform the following operations; Step a: For each Value, pair set Each element of To get started, do the following; Step b: and , find the highest priority batch of components that have not yet been produced: ; Step c: Determine whether the corresponding production line is in production. If not, , if it is in production, jump to step h; Step d: Determination Whether production at any time meets inventory requirements, that is, judging Is it true? If so, go to step f; If not satisfied, execute step h; Step e: Judgment Whether production at any time meets the staffing requirements: Is it true? If it is true, go to step f; if not, go to step h; Step f: Arrange the corresponding production plan. ; Step g, updating corresponding sets and parameters; ; ; ; Step h: season , return to step b; otherwise, execute step i; Step i: season , return to step a; otherwise, end the loop; Step j: For each element of set T, To get started, do the following step k、 judge Is there a shortage of stock at the moment? If out of stock, execute step l ; If it is not out of stock, execute step q ; step l、 Determine whether there is currently outsourcing capacity: , if outsourcing exists, execute step m ; If there is no outsourcing, execute step q ; step m、 For each element of the set T, from To get started, do the following; step n、 Arrange outsourced replenishment within the scope, namely: make , ; step o、 Update the parameters, let ; step p、 when season , execute steps n ; Otherwise, execute step q ; step q、 when season , execute steps k ; Otherwise, for each element of the set T, in arrive Within the scope, perform the following operations; step r、 calculate The gap between supply and demand at any given moment, namely: ; ; ; calculate Out-of-stock quantity and inventory quantity at any time ,Right now: ; Calculate total cost ,Right now: ; ; ; ; ; Finally, the decision variables are output .

6. The method for optimizing production scheduling of prefabricated components considering outsourcing and multi-skilled resource constraints according to claim 4 is characterized in that: Step 3.2.3 utilizes When the greedy method selects actions, it uses two operators: 2-opt operator and single-point crossover operator. Based on the joint encoding of chromosomes in the initial population, each layer can execute 2-opt or single-point crossover operator. Apply the 2-opt operator to a single chromosome: When you choose to execute the 2-opt operator on the SPL or PLL coding layer, first Choose any two unequal numbers and , and then swap the order of the codes between these two positions in the code to get a new sequence; Apply the single-point crossover operator to the double chromosomes: When you choose to perform a single-point crossover on a certain layer of encoding, first Any number is selected as the crossover point. All chromosome segments before the crossover point are retained in the offspring. As for the segments after the crossover point, for SPL, Children 1 obtains the genes not included in Parent 2 in order, and Children 2 obtains the genes not included in Parent 1 in order. For the production line list PLL, the segments after the crossover point are directly exchanged. The final population includes a total of four directions when performing directional iteration, that is, there are four action options: Action 1: both coding layers execute 2-opt; Action 2: the SPL coding layer executes single-point crossover, and the PLL coding layer executes 2-opt; Action 3: the SPL coding layer executes 2-opt, and the PLL coding layer executes single-point crossover; Action 4: both coding layers execute single-point crossover.

7. The method for optimizing production scheduling of prefabricated components considering outsourcing and multi-skilled resource constraints according to claim 4 is characterized in that: The steps of mutating the chromosomes of the sub-population in step 3.2.6 to generate a feasible sub-population are as follows: Step A, create a new empty population; Step B, performing mutation on the chromosomes in the population; Step C, determine whether the chromosome is feasible, if feasible, execute step D; if not feasible, execute step E; Step D: Insert the chromosome into the new population and jump to step J Step E: determine whether the maximum number of mutations has been reached. If not, return to step B; otherwise, execute step F. Step F, randomly generate a chromosome; Step G, determine whether the time of the generated chromosome exceeds the time constraint, if so, return to step F; if not, execute step H; Step H: determine whether the generated chromosome exceeds the production constraint. If so, return to step F; if not, execute step I. Step I: inserting chromosomes into the new population; Step J: Determine whether the population has reached the maximum population size. If not, return to step B; if reached, output the new population.