Product assembly workshop scheduling method, device, equipment, medium and program product
By building a human resource model and using hybrid coding rules and multi-objective genetic algorithms, the scheduling of complex product assembly workshops is optimized, solving the problem of difficult scheduling and improving efficiency and quality.
Patent Information
- Application Number
- CN202411112602.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-10-11
AI Technical Summary
Scheduling in complex product assembly workshops is difficult, and existing technology fails to effectively consider human factors, resulting in low scheduling efficiency and quality.
Construct a human resource model, including worker skill level, fatigue and interpersonal relationship models, combined with hybrid coding rules and an improved multi-objective genetic algorithm, to generate Pareto optimal scheduling solutions and optimize task sequencing and worker allocation.
The scheduling efficiency and quality of complex product assembly workshops have been improved. By comprehensively considering human resource factors, team selection and task sequencing have been optimized, and the maximum completion time and team load have been reduced.
Smart Images

Figure CN118760098A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of production scheduling, and in particular to a method, device, equipment, medium and program product for scheduling a product assembly workshop. Background Art
[0002] Complex products refer to products with complex customer requirements, complex product configurations, complex product technologies, complex manufacturing processes, and complex project management, such as satellites, missiles, and aircraft. Assembly, as an important part of the production process, plays a decisive role in the quality and life of complex products. In recent years, with the advancement of Industry 5.0, more and more studies have begun to consider human factors. The complex product assembly workshop scheduling problem is a hybrid flow shop scheduling problem (HFSP) with unrelated parallel shifts that considers human factors. The scheduling difficulty of the complex product assembly workshop scheduling problem that considers human factors is relatively high. Summary of the invention
[0003] The technical solution of the present invention aims to provide a method, device, equipment, medium and program product for scheduling a product assembly workshop, which are used to solve the problem of greater scheduling difficulty in product assembly workshops in the prior art.
[0004] To achieve the above object, the present invention is achieved by:
[0005] In a first aspect, an embodiment of the present invention provides a method for scheduling a product assembly workshop, comprising:
[0006] Build a human resource model;
[0007] According to the human resource model, a scheduling model of the product assembly workshop is constructed;
[0008] Using a preset hybrid coding rule, an initial feasible scheduling solution set of the scheduling model is generated, wherein a feasible scheduling solution includes a first-stage task sequencing scheduling solution and a worker allocation scheduling solution;
[0009] Using the improved multi-objective genetic algorithm and the initial feasible scheduling solution set, a Pareto optimal scheduling solution set is obtained;
[0010] The optimal scheduling result is selected according to the Pareto optimal scheduling solution set and the preset decoding rules. The preset decoding rules include the team selection rules and the task sorting rules in the subsequent stages. The optimal scheduling result includes the task sorting results in each stage, the team selection results of each task in each stage, and the job allocation results of the workers.
[0011] Optionally, in the product assembly workshop scheduling method, the human resource model includes at least one of the following:
[0012] Model of worker skill levels;
[0013] Worker fatigue model;
[0014] Models of worker interpersonal relationships and work experiences.
[0015] Optionally, the product assembly workshop scheduling method, wherein a scheduling model for a complex product assembly workshop is constructed based on the human resource model, comprises:
[0016] Constructing a scheduling-related set, wherein the scheduling-related set includes at least one of an assembly task set, a stage set, a worker set, a worker skill set, an assembly team set, a team set for each stage, a set of coefficients of influence of worker skill levels on assembly time, and a set of coefficients of influence of interpersonal relationships between workers on assembly time;
[0017] According to the human resource model and the scheduling related set, a scheduling model for the product assembly workshop is constructed with the minimum maximum completion time, team load balance, minimum total task waiting time and minimum transportation time as optimization goals.
[0018] Optionally, in the product assembly workshop scheduling method, the scheduling model includes:
[0019] The objective function represents the optimization goals of minimizing the maximum completion time, balancing the team load, minimizing the total waiting time of the task, and minimizing the transportation time;
[0020] And, all of the following constraint functions:
[0021] It means that in all assembly teams at the same stage, any assembly task has only one predecessor task.
[0022] A constraint function that means that in all assembly teams at the same stage, any assembly task has only one subsequent task;
[0023] A constraint function that indicates that the number of variables of the predecessor task is equal to the number of variables of the successor task;
[0024] A constraint function indicating that there is no close relationship between assembly tasks in the same stage and the same assembly team;
[0025] A constraint function indicating that any worker is assigned to only one assembly team;
[0026] A constraint function that indicates that any assembly task at any stage is only assembled by one assembly team;
[0027] A constraint function that indicates that the assembly task enters the next stage when the previous stage is completed;
[0028] A constraint function that indicates that the assembly team will enter the next assembly task when the previous assembly task is completed;
[0029] A constraint function that indicates that the completion time of any assembly task in any process is not less than the preset time;
[0030] The maximum completion time constraint function represents the maximum end time of all assembly tasks in the final stage.
[0031] Optionally, the product assembly workshop scheduling method, wherein a preset hybrid coding rule is used to generate an initial feasible scheduling solution set of the scheduling model, includes:
[0032] Using the real integer encoding rule in the preset hybrid encoding rule to generate the worker allocation chromosome;
[0033] Using the arrangement coding rule in the preset hybrid coding rule, or generating the task sorting chromosome according to the worker allocation chromosome and the heuristic rule; generating the chromosome structure according to the sorting order chromosome and the worker allocation chromosome;
[0034] The step of generating the chromosome structure is repeated a number of times equal to the population size to generate an initial feasible scheduling solution set of the scheduling model.
[0035] Optionally, the product assembly workshop scheduling method, wherein generating a task sorting chromosome according to the worker allocation chromosome and the heuristic rule, comprises:
[0036] According to the worker allocation chromosome, the assembly team and skills assigned to each worker are obtained;
[0037] According to the assembly team and skills assigned to each worker, obtain the assembly time of each assembly team for different assembly tasks;
[0038] According to the assembly time of each assembly team for different assembly tasks, the minimum assembly time of each assembly task is obtained;
[0039] Each assembly task is sorted according to its minimum assembly time to generate a task sorting chromosome.
[0040] Optionally, the product assembly workshop scheduling method, wherein the Pareto optimal scheduling solution set is obtained by using an improved multi-objective genetic algorithm and the initial feasible scheduling solution set, comprises:
[0041] Setting initial control parameters, including the maximum number of iterations and population rules of the genetic algorithm, and setting the number of iterations to 0;
[0042] Taking the initial feasible scheduling solution set as the first parent population;
[0043] Using a destruction and reconstruction strategy to optimize a first preset number of individuals in the first parent population to generate a second parent population;
[0044] Performing a crossover operation on a second preset number of individuals in the second parent population to generate a first offspring population, and performing a mutation operation on a third preset number of individuals in the second parent population to generate a second offspring population;
[0045] Generate a third offspring population according to the Pareto stratification and non-dominated sorting of all individuals in the second parent population, the first offspring population, and the second offspring population;
[0046] Update the number of iterations;
[0047] When the number of iterations is less than or equal to the maximum number of iterations, repeating the step of generating the third offspring population;
[0048] When the number of iterations is greater than the maximum number of iterations, a Pareto optimal scheduling solution set is obtained according to the third child population.
[0049] Optionally, the product assembly workshop scheduling method, wherein a destruction and reconstruction strategy is used to optimize a first preset number of individuals in the first parent population to generate a second parent population, comprises:
[0050] Optimizing the task sorting chromosome of a first individual in the first parent population to obtain an optimized task sorting chromosome of the first individual, wherein the first individual is any individual in the first parent population;
[0051] Generate an optimized first individual according to the worker allocation chromosomes of the first individual and the optimized task sorting chromosomes;
[0052] Repeating the step of generating the optimized first individual for a number of times equal to a first preset number to generate the optimized first preset number of individuals;
[0053] Deleting a first preset number of individuals from the first parent population to obtain a first parent population after deletion;
[0054] A second parent population is generated according to the deleted first parent population and the optimized first preset number of individuals.
[0055] Optionally, the product assembly workshop scheduling method, wherein optimizing the task sorting chromosome of the first individual in the first parent population to obtain the optimized task sorting chromosome of the first individual, comprises:
[0056] Sorting multiple genes selected from the chromosome according to the task of the first individual to obtain a first gene sequence and a second gene sequence;
[0057] Deleting the first gene in the second gene sequence from the second gene sequence, and traversally inserting the first gene in the second gene sequence into different positions of the first gene sequence to obtain the maximum completion time corresponding to the different positions;
[0058] inserting the first gene in the second gene sequence into the position corresponding to the minimum maximum completion time in the first gene sequence;
[0059] Each gene in the second gene sequence except the first gene is inserted into the first gene sequence, into the position corresponding to the minimum maximum completion time in the first gene sequence, so as to obtain the optimized task sorting chromosome of the first individual.
[0060] Optionally, in the product assembly workshop scheduling method, the team selection rule satisfies the following items in sequence:
[0061] For each assembly task, select the assembly team whose total fatigue level of workers in each skill is less than the number of workers performing the corresponding skill;
[0062] For at least two assembly teams whose fatigue levels meet the requirements, select the assembly team with the shortest assembly completion time for the current process;
[0063] For at least two assembly teams whose fatigue levels meet the requirements and whose current process ends at the same time, select the assembly team with the smallest load;
[0064] For at least two assembly teams whose fatigue levels meet the requirements, whose current process end time is the same and whose loads are the same, the assembly team with the shortest assembly time is selected.
[0065] Optionally, in the product assembly workshop scheduling method, the task sequencing rule of the subsequent stage is determined according to at least one of the following:
[0066] Preset first-stage task sorting rules;
[0067] The priority of tasks entering the current stage is determined based on the end time of the previous stage.
[0068] In a second aspect, an embodiment of the present invention further provides a product assembly workshop scheduling device, comprising:
[0069] The first building module is used to build a human resource model;
[0070] A second building module is used to build a scheduling model for a product assembly workshop according to the human resource model;
[0071] A generation module, used to generate an initial feasible scheduling solution set of the scheduling model by using a preset hybrid coding rule, wherein a feasible scheduling solution includes a first-stage task sorting scheduling solution and a worker allocation scheduling solution;
[0072] An acquisition module, used to obtain a Pareto optimal scheduling solution set by using an improved multi-objective genetic algorithm and the initial feasible scheduling solution set;
[0073] A selection module is used to select an optimal scheduling result according to the Pareto optimal scheduling solution set and preset decoding rules, wherein the preset decoding rules include team selection rules and task sorting rules for subsequent stages, and the optimal scheduling result includes the task sorting result of each stage, the team selection result of each task in each stage, and the job allocation result of the workers.
[0074] In a third aspect, an embodiment of the present invention further provides a product assembly workshop scheduling device, comprising: a processor, a memory, and a program stored on the memory and executable on the processor, wherein when the program is executed by the processor, the product assembly workshop scheduling method as described in the first aspect is implemented.
[0075] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium having a program stored thereon, and when the program is executed by a processor, the product assembly workshop scheduling method as described in the first aspect is implemented.
[0076] In a fifth aspect, an embodiment of the present invention further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the product assembly workshop scheduling method as described in the first aspect.
[0077] The beneficial effects of the above technical solution of the present invention are as follows:
[0078] The method for scheduling a product assembly workshop described in the embodiment of the present invention is used to construct a human resource model; based on the human resource model, a scheduling model for a product assembly workshop is constructed; a preset hybrid coding rule is used to generate an initial feasible scheduling solution set for the scheduling model, wherein a feasible scheduling solution includes a task sorting scheduling solution for the first stage and a worker allocation scheduling solution; an improved multi-objective genetic algorithm and the initial feasible scheduling solution set are used to obtain a Pareto optimal scheduling solution set; based on the Pareto optimal scheduling solution set and preset decoding rules, an optimal scheduling result is selected, wherein the preset decoding rules include a team selection rule and a task sorting rule for the subsequent stage, and the optimal scheduling result includes a task sorting result for each stage, a team selection result for each task in each stage, and a worker position allocation result. In this way, the problem of high scheduling difficulty in the product assembly workshop is solved, and the quality and efficiency of the optimal scheduling result are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] Figure 1 A simplified illustration of a complex product assembly shop scheduling problem provided by an embodiment of the present invention;
[0080] Figure 2 A schematic diagram of a process flow of a product assembly workshop scheduling method provided by an embodiment of the present invention;
[0081] Figure 3 A schematic diagram of a curve showing the fatigue level of workers during a production process provided by an embodiment of the present invention;
[0082] Figure 4 A schematic diagram of a chromosome structure provided by an embodiment of the present invention;
[0083] Figure 5 A schematic diagram of the coding of a chromosome structure example provided by an embodiment of the present invention;
[0084] Figure 6 A schematic diagram of a flow chart of one implementation of a method for scheduling a product assembly workshop provided by an embodiment of the present invention;
[0085] Figure 7 A schematic diagram of a team selection rule provided by an embodiment of the present invention;
[0086] Figure 8 A structural block diagram of a product assembly workshop scheduling device provided by an embodiment of the present invention;
[0087] Fig. 9 A schematic diagram of the hardware structure of a product assembly workshop scheduling device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0088] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0089] The embodiments of the present invention aim at the problem that product assembly workshops in the prior art have relatively great scheduling difficulties, and provide a method, device, equipment, medium and program product for scheduling a product assembly workshop.
[0090] First, combine Figure 1 The complex product assembly workshop scheduling problem that can be solved by the product assembly workshop scheduling method according to the embodiment of the present invention is described as follows:
[0091] The assembly stations and the corresponding assembly teams at the production site are fixed. Due to the complexity of the process of complex products, multiple processes with unchanged stations are combined into one stage. For all n assembly tasks, their assembly needs to go through s stages with a known and consistent sequence. Among them, there is L at stage k k There are different speed parallel assembly teams to choose from. The assembly time of this stage is determined by the number of workers in the assembly team and the workers' skill level. The goal is to determine the most suitable assembly team for each task at each stage after the workers in the assembly team are determined, that is, to determine the optimal worker configuration for each team and the optimal assembly order for n assembly tasks to enter each stage. In addition, the following basic assumptions need to be met:
[0092] (1) All assembly tasks can be assembled at time zero;
[0093] (2) Each assembly task can only be assembled by one assembly team at a time;
[0094] (3) Each assembly task can only enter the next stage after the previous stage is completed;
[0095] (4) Once an assembly task is started by the assembly team, it cannot be interrupted;
[0096] (5) Each assembly team can only perform one assembly task at a time;
[0097] (6) The preparation time for each stage of each assembly task is already included in the assembly time of that stage;
[0098] (7) Each worker can only perform assembly operations within one assembly team;
[0099] (8) Each assembly task requires transportation between adjacent stages, and the time P for transporting the task from assembly team a at stage k to assembly team b at stage k+1 is kab known;
[0100] (9) The time required for a worker with skill level 1 from team m to assemble task j at stage k Known.
[0101] (10) Each assembly team is assigned a team leader with a skill level of 1 in all aspects.
[0102] Next, the symbols used in the embodiments of the present invention are described using the following Table 1:
[0103]
[0104]
[0105]
[0106] Table 1
[0107] like Figure 2 As shown, an embodiment of the present invention provides a product assembly workshop scheduling method, including:
[0108] Step 201: construct a human resource model.
[0109] Optionally, a human resource model is constructed based on actual production demand information of the assembly workshop.
[0110] Optionally, the human resource model includes at least one of the following:
[0111] Model of worker skill levels;
[0112] Worker fatigue model;
[0113] Models of worker interpersonal relationships and work experiences.
[0114] The following is an explanation of each human resource model:
[0115] Worker skill level model: The assembly process of complex products involves a wide range of professional fields and requires high capabilities of workers. Multi-skilled workers can make work allocation more flexible to cope with the ever-changing needs of product assembly workshops, especially when key positions are short of people, manpower can be replenished in a timely manner. There are large differences in working hours in different assembly stages of complex products. Reasonable job allocation of multi-skilled workers can ensure the balance of workers' workload, and can also reduce workers' employment costs and potential overproduction. Therefore, the embodiment of the present invention configures multi-skilled workers as important assembly workshop production resources.
[0116] In addition to the distinction between skill types, workers with the same skill may have different levels, and a worker may have different skill levels. Therefore, the embodiment of the present invention assigns different levels to each skill of each worker, and based on the worker skill level model, uses parameter α op To describe the level of worker p's execution of skill o. Parameter α op The larger it is, the more proficient the worker p is in mastering skill o. The assembly time is corrected according to the following formula (1):
[0117]
[0118] Worker fatigue model: Figure 3 A schematic diagram of a curve showing the fatigue level of workers during the production process provided by an embodiment of the present invention. Figure 3 As shown in the figure, at the production site, workers in the assembly workshop often repeat operations or maintain forced postures for a long time during the work process due to the needs of product production, which easily leads to cumulative work fatigue, resulting in a decrease in the workers' work efficiency. Here, an exponential fatigue model that comprehensively considers fatigue increment and recovery can be used. Its fatigue increment and recovery expressions are as follows: Formulas (2) and (3):
[0119]
[0120] Among them, F in formula (2) p (t i ) for worker p at t i The cumulative degree of fatigue at the moment, F in formula (3) p (t i ) for worker p from t i-1 Rest until t i Residual fatigue at the moment. p (t i ) can be collectively referred to as workers p in t i Fatigue level at the end of the moment, the value range is [0,1]. p (t i )=0 means worker p is in t i The time is not tired, F p (t i )=1 means worker p is in t i Complete fatigue and loss of working ability at the end of the time. p and μ p is the fatigue accumulation rate and recovery rate of worker p, which controls the change speed of the fatigue state of worker p.
[0121] Assume that worker p is at t i The fatigue level at the end of the time is F 0, and it keeps working until time T, then the above formula (2) can be equivalent to the following formula (4):
[0122]
[0123] Similarly, suppose worker p is at t i The fatigue level at the end of the time is F 0 , and it keeps working until time T, then the above formula (3) can be equivalent to the following formula (5):
[0124]
[0125] Here, the embodiment of the present invention adopts a logarithmic expression to quantify the processing time, and corrects the assembly time according to the following formula (6):
[0126]
[0127] Among them, P jkm is the time for team m to assemble process k of task j after correction, δ is the parameter affecting the assembly time due to team leader’s fatigue, λ is the fatigue accumulation rate of team leader, δ p is the parameter affecting the assembly time due to worker p’s fatigue, δ p =0 means that worker p’s fatigue has no effect on the assembly time.
[0128] In addition, the worker's fatigue accumulation rate λ p Affected by many factors, such as the physical fitness of workers, the production environment of the workshop, etc., it is assumed in the embodiment of the present invention that when workers perform different assembly tasks, p It will be reset with a certain probability.
[0129] Worker interpersonal relationships and worker work experience model: In addition to workers' skill levels and fatigue levels, there are many human factors that affect workers' productivity, such as interpersonal relationships and work experience. People with bad relationships working together will lead to lower workers' work enthusiasm, while people with too close relationships working together will lead to insufficient concentration of workers, all of which will lead to lower workers' productivity. In addition, for products with complex assembly processes, workers with similar model assembly experience can guide the assembly process, which is conducive to improving product production efficiency.
[0130] The embodiment of the present invention is based on the worker interpersonal relationship and worker work experience model, using parameters o pq To describe the impact of the interpersonal relationship between workers p and q on production, we use the parameter Y jp Describes whether worker p has similar model experience for task j, Y jp =1 means there is experience with similar models, Yjp =0 means there is no experience with similar models, and the assembly time is corrected according to the following formula (7):
[0131]
[0132] Among them, θ p is the influence coefficient of similar model experience on task assembly time.
[0133] Step 202: construct a scheduling model for the product assembly workshop based on the human resource model.
[0134] Step 203, using a preset hybrid coding rule to generate an initial feasible scheduling solution set of the scheduling model, a feasible scheduling solution includes a first-stage task sorting scheduling solution and a worker allocation scheduling solution.
[0135] The initial feasible scheduling solution set may be understood as an initial feasible scheduling solution set, which includes multiple feasible scheduling solutions.
[0136] In the embodiment of the present invention, the preset hybrid coding rule includes a permutation coding rule for generating a task sequencing scheduling solution of the first stage (representing the first stage) and a real integer coding rule for generating a worker allocation scheduling solution.
[0137] Step 204, using the improved multi-objective genetic algorithm search and the initial feasible scheduling solution set to obtain the Pareto optimal scheduling solution set.
[0138] In the embodiment of the present invention, an improved NSGA-II (multi-objective genetic algorithm) is used to obtain a Pareto optimal scheduling solution set. Here, the improved NSGA-II is referred to as iNSGA2.
[0139] Step 205, selecting the optimal scheduling result according to the Pareto optimal scheduling solution set and the preset decoding rules, wherein the preset decoding rules include the team selection rules and the task sorting rules of the subsequent stages, and the optimal scheduling result includes the task sorting results of each stage, the team selection results of each task in each stage, and the job allocation results of the workers.
[0140] In one implementation mode, optionally, a scheduling model for a complex product assembly workshop is constructed based on the human resource model, including:
[0141] Constructing a scheduling-related set, wherein the scheduling-related set includes at least one of an assembly task set, a stage set, a worker set, a worker skill set, an assembly team set, a team set for each stage, a set of coefficients of influence of worker skill levels on assembly time, and a set of coefficients of influence of interpersonal relationships between workers on assembly time;
[0142] According to the human resource model and the scheduling related set, a scheduling model for the product assembly workshop is constructed with the minimum maximum completion time, team load balance, minimum total task waiting time and minimum transportation time as optimization goals.
[0143] Optionally, the scheduling model includes:
[0144] The objective function represents the optimization goals of minimizing the maximum completion time, balancing the team load, minimizing the total waiting time of the task, and minimizing the transportation time, which is described by the following formula (8):
[0145]
[0146] And, all of the following constraint functions:
[0147] It represents the constraint function that any assembly task has only one predecessor task in all assembly teams at the same stage, which is described by the following formula (9):
[0148]
[0149] It represents the constraint function that any assembly task has only one subsequent task in all assembly teams at the same stage, which is described by the following formula (10):
[0150]
[0151] The constraint function that the number of variables of the predecessor task is equal to the number of variables of the successor task is described by the following formula (11):
[0152]
[0153] The constraint function that indicates that there is no close relationship between assembly tasks in the same stage and the same assembly team is described by the following formula (12):
[0154]
[0155] The constraint function that any worker is assigned to only one assembly team is described by the following formula (13):
[0156]
[0157] The constraint function that any assembly task at any stage is assembled by only one assembly team is described by the following formula (14):
[0158]
[0159] The constraint function that represents the assembly task entering the next stage when the previous stage is completed is described by the following formula (15):
[0160]
[0161] The constraint function that indicates that the assembly team enters the next assembly task when the previous assembly task is completed is described by the following formula (16):
[0162]
[0163] The constraint function that the completion time of any assembly task at any stage is not less than the preset time is described by the following formula (17):
[0164]
[0165] Here, the preset time is 0;
[0166] The maximum end time of all assembly tasks in the final stage is the constraint function of the maximum completion time, which is described by the following formula (18):
[0167]
[0168] In addition, the constraint function described by the following formula (19) may also be included:
[0169]
[0170] In one implementation mode, optionally, a preset hybrid coding rule is used to generate an initial feasible scheduling solution set of the scheduling model, including:
[0171] Using the real integer encoding rule in the preset hybrid encoding rule to generate the worker allocation chromosome;
[0172] Using an arrangement coding rule in a preset hybrid coding rule, or generating a task sorting chromosome according to the worker allocation chromosome and a heuristic rule;
[0173] Generating a chromosome structure according to the task sorting chromosomes and the worker allocation chromosomes;
[0174] The step of generating the chromosome structure is repeated a number of times equal to the population size to generate an initial feasible scheduling solution set of the scheduling model.
[0175] In one implementation mode, optionally, generating a task sorting chromosome according to the worker allocation chromosome and heuristic rules includes:
[0176] According to the worker allocation chromosome, the assembly team and skills assigned to each worker are obtained;
[0177] According to the assembly team and skills assigned to each worker, obtain the assembly time of each assembly team for different assembly tasks;
[0178] According to the assembly time of each assembly team for different assembly tasks, the minimum assembly time of each assembly task is obtained;
[0179] Each assembly task is sorted according to its minimum assembly time to generate a task sorting chromosome.
[0180] First, combine Figure 4 The chromosome structure is described as follows:
[0181] like Figure 4 As shown, the chromosome structure in the embodiment of the present invention includes chromosome 1, namely, task ordering (TO) chromosome, and chromosome 2, namely, worker allocation (WA) chromosome.
[0182] A task sorting chromosome is generated based on the arrangement coding rule, with a length equal to the number of assembly tasks n. Each gene locus represents the order in which the assembly task enters the first stage (representing the first stage) for assembly operations, and each gene value represents the sequence number of the assembly task.
[0183] The worker allocation chromosome is generated based on the real integer coding rule. The length is the number of workers e. Each locus represents the worker's serial number, and each gene value represents the position to which the worker is assigned (including the assembly team serial number and the skill serial number that needs to be performed).
[0184] That is to say, the embodiment of the present invention adopts a hybrid coding rule based on permutation and real integers and uses two chromosomes to collaboratively express individual information, thereby solving the two scheduling problems of task sorting and worker allocation.
[0185] Next, combine Figure 5 The chromosome structure example is described as follows:
[0186] like Figure 5 As shown in the figure, the encoding process of a chromosome structure instance consisting of 3 assembly tasks and 7 workers is shown. The first 3 genes constitute the task sorting chromosome, indicating that the 3 assembly tasks enter the first stage in the order of 3→1→2 and select the teams of the first stage in turn. The last 7 genes constitute the worker allocation chromosome, indicating the positions to which the 7 workers are assigned. Among them, the first 2 means that worker 1 is assigned to the second position (1,3) among his optional positions, that is, worker 1 is assigned to assembly team 1 to perform skill 3; similarly, the first 1 means that worker 2 is assigned to assembly team 1 to perform skill 1.
[0187] So far, based on the above description, the steps of generating an initial feasible scheduling solution set of the scheduling model in the embodiment of the present invention are further described as follows:
[0188] Using real integer coding rules, randomly generate worker assignment chromosomes to determine the position to which each worker is assigned, including the assembly team number and the skill number to be performed;
[0189] Using an arrangement encoding rule, or generating a task sorting chromosome according to the worker allocation chromosome and a heuristic rule;
[0190] Among them, according to the worker allocation chromosome and heuristic rules, the task sorting chromosome is generated, including the following process:
[0191] Considering the three human factors of worker skill level, worker interpersonal relationship and worker work experience, the assembly time of each assembly team for different assembly tasks is calculated;
[0192] Calculate the minimum total assembly time for each assembly task to complete all assembly processes;
[0193] Arrange the minimum total assembly time in ascending order to generate a task sorting chromosome, where products with the same minimum total assembly time are randomly arranged;
[0194] Generating a chromosome structure based on the task sorting chromosomes and worker allocation chromosomes generated above;
[0195] The step of generating the chromosome structure is repeated a certain number of times, which is equal to the population size, to generate an initial feasible scheduling solution set of the scheduling model. Therefore, the embodiment of the present invention generates an initial feasible scheduling solution set of the scheduling model through the above-mentioned random method and heuristic method.
[0196] It should be noted that the diversity of the first parent population is ensured by randomly generating chromosomes for worker allocation, and the quality of each individual in the first parent population is ensured by sequentially arranging the minimum total assembly time to generate task sorting chromosomes.
[0197] In one implementation mode, optionally, using an improved multi-objective genetic algorithm and the initial feasible scheduling solution set to obtain a Pareto optimal scheduling solution set includes:
[0198] Setting initial control parameters (initial control parameters), wherein the control parameters include the maximum number of iterations and the population size of the multi-objective genetic algorithm, and setting the number of iterations to 0;
[0199] Taking the initial feasible scheduling solution set as the first parent population;
[0200] Using a destruction and reconstruction strategy to optimize a first preset number of individuals in the first parent population to generate a second parent population; wherein the first preset number is related to the population size, for example, equal to one tenth of the population size;
[0201] Performing a crossover operation on a second preset number of individuals in the second parent population to generate a first offspring population, and performing a mutation operation on a third preset number of individuals in the second parent population to generate a second offspring population; wherein the second preset number is equal to the third preset number and is equal to half of the first preset number;
[0202] Generate a third offspring population according to the Pareto stratification and non-dominated sorting of all individuals in the second parent population, the first offspring population, and the second offspring population;
[0203] Update the number of iterations;
[0204] When the number of iterations is less than or equal to the maximum number of iterations, repeating the step of generating the third offspring population;
[0205] When the number of iterations is greater than the maximum number of iterations, a Pareto optimal scheduling solution set is obtained according to the third child population.
[0206] Next, combine Figure 6 The steps of searching the feasible scheduling solution set by using the improved multi-objective genetic algorithm in the embodiment of the present invention to obtain the Pareto optimal scheduling solution set are described as follows:
[0207] Setting initial control parameters, wherein the control parameters include the maximum number of iterations MAXGEN of the multi-objective genetic algorithm, the population size NIND, and the number of iterations i is 0;
[0208] Generate a first parent population P1. Specifically, generate an initial feasible scheduling solution set by using a preset hybrid coding method and a heuristic method, and use the initial feasible scheduling solution set as the first parent population P1;
[0209] The destruction and reconstruction strategy is used to optimize some individuals of the first parent population P1 to generate the second parent population P2;
[0210] Set the crossover probability and mutation probability to 1;
[0211] The first offspring population P3 is generated by processing half of the individuals in the second parent population P2 through a crossover operation, and the second offspring population P4 is generated by processing the other half of the individuals in the second parent population P2 through a mutation operation;
[0212] Generate a third offspring population P5 according to the second parent population P2, the first offspring population P3 and the second offspring population P4. Specifically, merge the second parent population P2, the first offspring population P3 and the second offspring population P4, and obtain individuals equal to the population size according to the Pareto ranking and crowding degree, so as to generate the third offspring population P5;
[0213] Update the number of iterations, i=i+1;
[0214] Determine whether the current number of iterations is greater than the maximum number of iterations. If so, obtain the Pareto optimal scheduling solution set; if not, repeat the step of generating the third generation population P5.
[0215] In one implementation mode, optionally, a destruction and reconstruction strategy is used to optimize a first preset number of individuals in the first parent population to generate a second parent population, including:
[0216] Optimizing the task sorting chromosome of a first individual in the first parent population to obtain an optimized task sorting chromosome of the first individual, wherein the first individual is any individual in the first parent population;
[0217] Generate an optimized first individual according to the worker allocation chromosomes of the first individual and the optimized task sorting chromosomes;
[0218] Repeating the step of generating the optimized first individual for a number of times equal to a first preset number to generate the optimized first preset number of individuals;
[0219] Deleting a first preset number of individuals from the first parent population to obtain a first parent population after deletion;
[0220] A second parent population is generated according to the deleted first parent population and the optimized first preset number of individuals.
[0221] In an embodiment of the present invention, a first preset number of individuals are randomly selected from a first parent population P1, and the first preset number of individuals are deleted from the first parent population P1 to obtain the deleted first parent population P1; the task sorting chromosome of each individual in the first preset number of individuals is optimized to obtain an optimized task sorting chromosome; optimized individuals are generated according to the optimized task sorting chromosome of each individual and the corresponding worker allocation chromosome, and the step of generating the optimized individuals is repeated a number of times equal to the first preset number, thereby generating the optimized first preset number of individuals; the deleted first parent population P1 and the optimized first preset number of individuals are combined to generate a second parent population P2.
[0222] In one implementation manner, optionally, optimizing the task sequence chromosome of the first individual in the first parent population to obtain the optimized task sequence chromosome of the first individual includes:
[0223] Sorting multiple genes selected from the chromosome according to the task of the first individual to obtain a first gene sequence and a second gene sequence;
[0224] Deleting the first gene in the second gene sequence from the second gene sequence, and traversally inserting the first gene in the second gene sequence into different positions of the first gene sequence to obtain the maximum completion time corresponding to the different positions;
[0225] inserting the first gene in the second gene sequence into the position corresponding to the minimum maximum completion time in the first gene sequence;
[0226] Each gene in the second gene sequence except the first gene is inserted into the first gene sequence, into the position corresponding to the minimum maximum completion time in the first gene sequence, so as to obtain the optimized task sorting chromosome of the first individual.
[0227] In an embodiment of the present invention, an individual (i.e., the first individual) is randomly selected from the first parent population P1 and the first individual is deleted from the first parent population; multiple genes are randomly selected from the task sorting chromosome of the first individual, and the multiple genes are arranged in sequence according to the selection order to obtain a first gene sequence and a second gene sequence; the first gene is taken out from the second gene sequence and deleted from the second gene sequence, and the maximum completion time corresponding to each position when the first gene is inserted into the first gene sequence is calculated by traversal, and the position corresponding to the minimum maximum completion time is found, and the first gene is inserted into the position; according to the above-mentioned method of inserting the first gene into the first gene sequence, all the remaining genes in the second gene sequence are inserted into the first gene sequence, so as to generate a complete and optimized task sorting chromosome.
[0228] It should be noted that the embodiment of the present invention ensures the quality of each individual in the second parent population by obtaining the optimized task sorting chromosome of the first individual.
[0229] The embodiment of the present invention generates a first parent population through a random method and a heuristic method, and adopts a destruction and reconstruction strategy to optimize the first parent population to obtain a second parent population, and generates a first child population and a second child population by performing a crossover operation and a mutation operation on the second parent population, and generates a third child population according to the second parent population, the first child population and the second child population, thereby improving the evolution process of the multi-objective genetic algorithm and achieving the goal of improving the quality of the parent population while ensuring the diversity of the population.
[0230] Optionally, the team selection rule satisfies the following items in sequence:
[0231] For each assembly task, select the assembly team whose total fatigue level of workers in each skill is less than the number of workers performing the corresponding skill;
[0232] For at least two assembly teams whose fatigue levels meet the requirements, select the assembly team with the shortest assembly completion time in the current stage;
[0233] For at least two assembly teams whose fatigue levels meet the requirements and whose current process ends at the same time, select the assembly team with the smallest load;
[0234] For at least two assembly teams whose fatigue levels meet the requirements, whose current process end time is the same and whose loads are the same, the assembly team with the shortest assembly time is selected.
[0235] Here, combined Figure 7 The team selection rules are explained as follows:
[0236] The team selection rule in the embodiment of the present invention can be understood as an improved First Available Machine (FAM) rule, and the team selection rule satisfies the following items in sequence:
[0237] For each assembly task j, select an assembly team whose total fatigue level of workers in each skill is less than the number of workers performing the corresponding skill to perform the assembly operation;
[0238] For assembly teams that meet the fatigue requirements and have the same end time for the current process, the assembly team with the smallest load is given priority based on the consideration of team load balance;
[0239] For assembly teams that meet the fatigue requirements and have the same end time and load for the current process, based on the principle of maximizing efficiency, the team with the shortest assembly time is given priority;
[0240] For assembly teams with the same current process end time, load and assembly time, a random selection is made among these teams.
[0241] Optionally, the task sequencing rule of the subsequent stage is determined according to at least one of the following:
[0242] The preset coding rules for the first stage task sorting;
[0243] The priority of tasks entering the current stage is determined based on the end time of the previous stage.
[0244] In an embodiment of the present invention, the task sequencing rule of the subsequent stage is determined according to at least one of the following:
[0245] In the first stage, the task ordering rules are determined according to the preset encoding rules and the generation method of the parent population, and then in the subsequent stage, the task ordering rules are determined based on the "first come first served" heuristic rule to sort the task assemblies;
[0246] In non-first phases, the priority of tasks entering the current phase is determined based on the end time of the previous phase. For example, tasks with an earlier end time in the previous phase have a higher priority for entering the current phase. Multiple tasks with the same end time in the previous phase have the same priority for entering the current phase, and the order of entering the current phase is random.
[0247] Next, numerical experiments are used to supplement the embodiments of the present invention:
[0248] In the experiment, the total number of stages that each complex product needs to go through is set to 5, and the number of assembly teams corresponding to each stage is L k They are 5, 4, 3, 5, 3, respectively. The transportation time of the task is P kab The worker's skill level follows the probability distribution of [0, 0.8, 1, 2, 5] and [0.5, 0.1, 0.2, 0.15, 0.05]. The basic time required for each skill at different stages of each task (i.e., α op = 1) the time that worker p performs skill o on task j alone at stage k) It obeys the discrete uniform distribution of [20, 150]. The numerical experiments consider 9 problem instances with 10, 30, 60 tasks and 30, 60, 90 workers. Each algorithm runs 30 times for each instance, and the Pareto optimal scheduling solution set, the corresponding objective function value (IGD) and the performance index (HV) obtained from the 30 runs are recorded.
[0249] The genetic algorithm (iNSGA2) adopted in the embodiment of the present invention is compared with NSGA2, NSGA3, awGA, and RVEA algorithms, and two common multi-objective optimization algorithm performance indicators, inverse generation distance (IGD) and hypervolume (HV), are selected to evaluate the performance of the comparison algorithm. In order to compare the performance of the genetic algorithm adopted in the embodiment of the present invention with other algorithms, the parameters of all algorithms are set uniformly. The genetic population size NIND is set to 120, and the maximum number of algorithm iterations MAXGEN is set to 50. The crossover probability of the algorithms without special requirements is set to 0.9, and the mutation probability is set to 0.5.
[0250] In order to reduce the impact of randomness of the algorithm operation results, all non-dominated solutions in the union of the Pareto optimal scheduling solution sets obtained by running each algorithm 10 times are taken to form the final Pareto frontier as the reference frontier for calculating the IGD and HV indicators.
[0251] Taking 30 products and 30 workers as an example, each algorithm is run 10 times to compare the algorithms. The IGD and HV indicators are shown in Tables 2 and 3.
[0252]
[0253] Table 2
[0254]
[0255]
[0256] Table 3
[0257] The IGD index represents the average of the shortest distances between each solution in the optimal Pareto front and the solution in the obtained Pareto front, and can comprehensively evaluate the convergence and distribution of the solutions obtained by the algorithm. The smaller the IGD index, the closer the obtained Pareto front is to the Pareto reference front, which means the better the performance of the algorithm. As can be seen from Table 2, the Pareto front of iNSGA2 proposed in the embodiment of the present invention is closest to the optimal Pareto front of the reference.
[0258] The HV index represents the volume of the hypercube from all solutions to the reference point in the obtained Pareto front, and comprehensively evaluates the convergence and distribution of the solutions obtained by the algorithm. The larger the HV index, the larger the solution space covered by the solution obtained by the algorithm, and the better the quality of the solution. As can be seen from Table 3, the solution space covered by the solution obtained by iNSGA2 proposed in the embodiment of the present invention is the largest.
[0259] Therefore, from the comparison results of the IGD and HV indicators, it can be seen that the iNSGA2 proposed in the embodiment of the present invention has obvious advantages in convergence and distribution.
[0260] In summary, the complex product assembly scheduling problem that can be solved by the embodiment of the present invention is a problem involving assembly task sequencing, assembly team selection and worker allocation. Therefore, the complex product assembly scheduling problem can be understood as a hybrid flow shop worker allocation problem (HFSWAP), and the optimization objectives are to minimize the maximum completion time, balance the team load, minimize the total waiting time of the task, and minimize the transportation time. In order to solve HFSWAP, a human resource model and a corresponding scheduling model that comprehensively consider the worker's skill level, fatigue level, work experience and human-machine relationship are established. In addition, a hybrid coding rule is adopted. And, an improved multi-objective genetic algorithm is proposed, including a destruction and reconstruction strategy and an improved evolutionary process.
[0261] like Figure 8 As shown, an embodiment of the present invention further provides a product assembly workshop scheduling device, comprising:
[0262] The first building module 801 is used to build a human resource model;
[0263] The second construction module 802 is used to construct a scheduling model of the product assembly workshop according to the human resource model;
[0264] A generation module 803 is used to generate an initial feasible scheduling solution set of the scheduling model by using a preset hybrid coding rule, wherein a feasible scheduling solution includes a first-stage task sorting scheduling solution and a worker allocation scheduling solution;
[0265] An acquisition module 804 is used to facilitate the improved multi-objective genetic algorithm and the initial feasible scheduling solution set to obtain a Pareto optimal scheduling solution set;
[0266] The selection module 805 is used to select the optimal scheduling result according to the Pareto optimal scheduling solution set and the preset decoding rules. The preset decoding rules include the team selection rules and the task sorting rules of the subsequent stage. The optimal scheduling result includes the task sorting result of each stage, the team selection result of each task in each stage and the job allocation result of the workers.
[0267] Optionally, in the product assembly workshop scheduling device, the human resource model includes at least one of the following:
[0268] Model of worker skill levels;
[0269] Worker fatigue model;
[0270] Models of worker interpersonal relationships and work experiences.
[0271] Optionally, in the product assembly workshop scheduling device, the second building module 802 is specifically used to:
[0272] Constructing a scheduling-related set, wherein the scheduling-related set includes at least one of an assembly task set, a stage set, a worker set, a worker skill set, an assembly team set, a team set for each stage, a set of coefficients of influence of worker skill levels on assembly time, and a set of coefficients of influence of interpersonal relationships between workers on assembly time;
[0273] According to the human resource model and the scheduling related set, and with the minimization of maximum completion time, team load balance, minimization of total task waiting time and minimization of transportation time as optimization goals, a scheduling model for a product assembly workshop is constructed.
[0274] Optionally, in the product assembly workshop scheduling device, the scheduling model includes:
[0275] The objective function represents the optimization goals of minimizing the maximum completion time, balancing the team load, minimizing the total waiting time of the task, and minimizing the transportation time;
[0276] And, all of the following constraint functions:
[0277] It means that in all assembly teams at the same stage, any assembly task has only one predecessor task.
[0278] A constraint function that means that in all assembly teams at the same stage, any assembly task has only one subsequent task;
[0279] A constraint function that indicates that the number of variables of the predecessor task is equal to the number of variables of the successor task;
[0280] A constraint function indicating that there is no close relationship between assembly tasks in the same stage and the same assembly team;
[0281] A constraint function indicating that any worker is assigned to only one assembly team;
[0282] A constraint function that indicates that any assembly task at any stage is only assembled by one assembly team;
[0283] A constraint function that indicates that the assembly task enters the next stage when the previous stage is completed;
[0284] A constraint function that indicates that the assembly team will enter the next assembly task when the previous assembly task is completed;
[0285] A constraint function that indicates that the completion time of any assembly task at any stage is not less than the preset time;
[0286] The maximum completion time constraint function represents the maximum end time of all assembly tasks in the final stage.
[0287] Optionally, in the product assembly workshop scheduling device, the generating module 803 includes:
[0288] The first generation submodule is used to generate a worker allocation chromosome by adopting a real integer encoding rule in a preset hybrid encoding rule;
[0289] A second generation submodule is used to generate a task sorting chromosome by adopting an arrangement coding rule in a preset hybrid coding rule, or by generating a task sorting chromosome according to the worker allocation chromosome and a heuristic rule;
[0290] A third generation submodule is used to generate a chromosome structure according to the task sorting chromosomes and the worker allocation chromosomes;
[0291] The fourth generation submodule is used to repeat the step of generating the chromosome structure a number of times equal to the population size to generate an initial feasible scheduling solution set of the scheduling model.
[0292] Optionally, in the product assembly workshop scheduling device, the second generation submodule is specifically used to:
[0293] According to the worker allocation chromosome, the assembly team and skills assigned to each worker are obtained;
[0294] According to the assembly team and skills assigned to each worker, obtain the assembly time of each assembly team for different assembly tasks;
[0295] According to the assembly time of each assembly team for different assembly tasks, the minimum assembly time of each assembly task is obtained;
[0296] Each assembly task is sorted according to its minimum assembly time to generate a task sorting chromosome.
[0297] Optionally, in the product assembly workshop scheduling device, the obtaining module 804 includes:
[0298] A setting submodule is used to set initial control parameters, wherein the control parameters include the maximum number of iterations and the population size of the multi-objective genetic algorithm, and to set the number of iterations to 0;
[0299] As a submodule, used to use the initial feasible scheduling solution set as the first parent population;
[0300] a fifth generation submodule, configured to optimize a first preset number of individuals in the first parent population by adopting a destruction and reconstruction strategy to generate a second parent population;
[0301] a sixth generation submodule, configured to perform a crossover operation on a second preset number of individuals in the second parent population to generate a first offspring population, and to perform a mutation operation on a third preset number of individuals in the second parent population to generate a second offspring population;
[0302] A seventh generation submodule, configured to generate a third offspring population according to the Pareto stratification and non-dominated sorting of all individuals in the second parent population, the first offspring population, and the second offspring population;
[0303] Update submodule, used to update the number of iterations;
[0304] an eighth generation submodule, configured to repeat the step of generating the third offspring population when the number of iterations is less than or equal to the maximum number of iterations;
[0305] The obtaining submodule is used to obtain the Pareto optimal scheduling solution set according to the third child population when the number of iterations is greater than the maximum number of iterations.
[0306] Optionally, in the product assembly workshop scheduling device, the fifth generation submodule includes:
[0307] A first obtaining unit is used to optimize the task sorting chromosome of a first individual in the first parent population to obtain the optimized task sorting chromosome of the first individual, wherein the first individual is any individual in the first parent population;
[0308] A first generating unit, configured to generate an optimized first individual according to the worker allocation chromosome of the first individual and the optimized task sorting chromosome;
[0309] A second generating unit, configured to repeat the step of generating the optimized first individual for a number of times equal to a first preset number, to generate the optimized first preset number of individuals;
[0310] A second obtaining unit is used to delete a first preset number of individuals from the first parent population to obtain the deleted first parent population;
[0311] The third generating unit is used to generate a second parent population according to the deleted first parent population and the optimized first preset number of individuals.
[0312] Optionally, in the product assembly workshop scheduling device, the first obtaining unit is specifically used to:
[0313] Sorting multiple genes selected from the chromosome according to the task of the first individual to obtain a first gene sequence and a second gene sequence;
[0314] Deleting the first gene in the second gene sequence from the second gene sequence, and traversally inserting the first gene in the second gene sequence into different positions of the first gene sequence to obtain the maximum completion time corresponding to the different positions;
[0315] inserting the first gene in the second gene sequence into the position corresponding to the minimum maximum completion time in the first gene sequence;
[0316] Each gene in the second gene sequence except the first gene is inserted into the first gene sequence, into the position corresponding to the minimum maximum completion time in the first gene sequence, so as to obtain the optimized task sorting chromosome of the first individual.
[0317] Optionally, in the product assembly workshop scheduling device, the team selection rule satisfies the following items in sequence:
[0318] For each assembly task, select the assembly team whose total fatigue level of workers in each skill is less than the number of workers performing the corresponding skill;
[0319] For at least two assembly teams whose fatigue levels meet the requirements, select the assembly team with the shortest assembly completion time in the current stage;
[0320] For at least two assembly teams whose fatigue levels meet the requirements and whose current process ends at the same time, select the assembly team with the smallest load;
[0321] For at least two assembly teams whose fatigue levels meet the requirements, whose current process end time is the same and whose loads are the same, the assembly team with the shortest assembly time is selected.
[0322] Optionally, in the product assembly workshop scheduling device, the task sequencing rule of the subsequent stage is determined according to at least one of the following:
[0323] Preset first-stage task sorting rules;
[0324] The priority of tasks entering the current stage is determined based on the end time of the previous stage.
[0325] The product assembly workshop scheduling device provided in the embodiment of the present invention can execute the above-mentioned product assembly workshop scheduling method embodiment, and its implementation principle and technical effect are similar, which will not be repeated in this embodiment.
[0326] like Fig. 9 As shown, the linear object segmentation device of an embodiment of the present invention includes: a processor 901; and a memory 902 connected to the processor 901 through a bus interface, the memory 902 is used to store programs and data used by the processor 901 when performing operations, and the processor 901 calls and executes the programs and data stored in the memory 902.
[0327] The processor 901 is used to read the program in the memory 902 and execute the following process:
[0328] Build a human resource model;
[0329] According to the human resource model, a scheduling model of the product assembly workshop is constructed;
[0330] Using a preset hybrid coding rule, an initial feasible scheduling solution set of the scheduling model is generated, wherein a feasible scheduling solution includes a first-stage task sequencing scheduling solution and a worker allocation scheduling solution;
[0331] Using the improved multi-objective genetic algorithm and the initial feasible scheduling solution set, a Pareto optimal scheduling solution set is obtained;
[0332] The optimal scheduling result is selected according to the Pareto optimal scheduling solution set and the preset decoding rules. The preset decoding rules include the team selection rules and the task sorting rules in the subsequent stages. The optimal scheduling result includes the optimal task sorting result in each stage, the team selection result of each task in each stage, and the job allocation result of the workers.
[0333] The transceiver 903 is used to receive and send data in the controller of the processor 901.
[0334] Among them, Fig. 9 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 901 and various circuits of memory represented by memory 902 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 903 may be a plurality of components, namely, a transmitter and a transceiver, providing a unit for communicating with various other devices on a transmission medium. For different user devices, the user interface 904 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
[0335] The processor 901 is responsible for managing the bus architecture and general processing, and the memory 902 can store data used by the processor 901 when performing operations.
[0336] Optionally, the human resource model includes at least one of the following:
[0337] Model of worker skill levels;
[0338] Worker fatigue model;
[0339] Models of worker interpersonal relationships and work experiences.
[0340] Optionally, the processor 901 is specifically configured to read the computer program and execute the following steps:
[0341] Constructing a scheduling-related set, wherein the scheduling-related set includes at least one of an assembly task set, a stage set, a worker set, a worker skill set, an assembly team set, a team set for each stage, a set of coefficients of influence of worker skill levels on assembly time, and a set of coefficients of influence of interpersonal relationships between workers on assembly time;
[0342] According to the human resource model and the scheduling related set, a scheduling model for complex product assembly workshops is constructed with the minimum maximum completion time, team load balance, minimum total task waiting time and minimum transportation time as optimization goals.
[0343] Optionally, the scheduling model includes:
[0344] The objective function represents the optimization goals of minimizing the maximum completion time, balancing the team load, minimizing the total waiting time of the task, and minimizing the transportation time;
[0345] And, all of the following constraint functions:
[0346] It means that in all assembly teams at the same stage, any assembly task has only one predecessor task.
[0347] A constraint function that means that in all assembly teams at the same stage, any assembly task has only one subsequent task;
[0348] A constraint function that indicates that the number of variables of the predecessor task is equal to the number of variables of the successor task;
[0349] A constraint function indicating that there is no close relationship between assembly tasks in the same stage and the same assembly team;
[0350] A constraint function indicating that any worker is assigned to only one assembly team;
[0351] A constraint function that indicates that any assembly task at any stage is only assembled by one assembly team;
[0352] A constraint function that indicates that the assembly task enters the next stage when the previous stage is completed;
[0353] A constraint function that indicates that the assembly team will enter the next assembly task when the previous assembly task is completed;
[0354] A constraint function that indicates that the completion time of any assembly task at any stage is not less than the preset time;
[0355] The maximum completion time constraint function represents the maximum end time of all assembly tasks in the final stage.
[0356] Optionally, the processor 901 is specifically configured to read the computer program and execute the following steps:
[0357] Using the real integer encoding rule in the preset encoding rule to generate the worker allocation chromosome;
[0358] Using the arrangement coding rule in the preset hybrid coding rule, or generating the task sorting chromosome according to the worker allocation chromosome and the heuristic rule; generating the chromosome structure according to the task sorting chromosome and the worker allocation chromosome;
[0359] The step of generating the chromosome structure is repeated a number of times equal to the population size to generate a feasible scheduling solution set of the scheduling model.
[0360] Optionally, the processor 901 is specifically configured to read the computer program and execute the following steps:
[0361] According to the worker allocation chromosome, the assembly team and skills assigned to each worker are obtained;
[0362] According to the assembly team and skills assigned to each worker, obtain the assembly time of each assembly team for different assembly tasks;
[0363] According to the assembly time of each assembly team for different assembly tasks, the minimum assembly time of each assembly task is obtained;
[0364] Each assembly task is sorted according to its minimum assembly time to generate a task sorting chromosome.
[0365] Optionally, the processor 901 is specifically configured to read the computer program and execute the following steps:
[0366] Setting initial control parameters, including a maximum number of iterations and a population size of the multi-objective genetic algorithm, and setting the number of iterations to 0;
[0367] Taking the initial feasible scheduling solution set as the first parent population;
[0368] Using a destruction and reconstruction strategy to optimize a first preset number of individuals in the first parent population to generate a second parent population;
[0369] Performing a crossover operation on a second preset number of individuals in the second parent population to generate a first offspring population, and performing a mutation operation on a third preset number of individuals in the second parent population to generate a second offspring population;
[0370] Generate a third offspring population according to the Pareto stratification and non-dominated sorting of all individuals in the second parent population, the first offspring population, and the second offspring population;
[0371] Update the number of iterations;
[0372] When the number of iterations is less than or equal to the maximum number of iterations, repeating the step of generating the third offspring population;
[0373] When the number of iterations is greater than the maximum number of iterations, a Pareto optimal scheduling solution set is obtained according to the third child population.
[0374] Optionally, the processor 901 is specifically configured to read the computer program and execute the following steps:
[0375] Optimizing the task sorting chromosome of a first individual in the first parent population to obtain an optimized task sorting chromosome of the first individual, wherein the first individual is any individual in the first parent population;
[0376] Generate an optimized first individual according to the worker allocation chromosomes of the first individual and the optimized task sorting chromosomes;
[0377] Repeating the step of generating the optimized first individual for a number of times equal to a first preset number to generate the optimized first preset number of individuals;
[0378] Deleting a first preset number of individuals from the first parent population to obtain a first parent population after deletion;
[0379] A second parent population is generated according to the deleted first parent population and the optimized first preset number of individuals.
[0380] Optionally, the processor 901 is specifically configured to read the computer program and execute the following steps:
[0381] Sorting multiple genes selected from the chromosome according to the task of the first individual to obtain a first gene sequence and a second gene sequence;
[0382] Deleting the first gene in the second gene sequence from the second gene sequence, and traversally inserting the first gene in the second gene sequence into different positions of the first gene sequence to obtain the maximum completion time corresponding to the different positions;
[0383] inserting the first gene in the second gene sequence into the position corresponding to the minimum maximum completion time in the first gene sequence;
[0384] Each gene in the second gene sequence except the first gene is inserted into the first gene sequence, into the position corresponding to the minimum maximum completion time in the first gene sequence, so as to obtain the optimized task sorting chromosome of the first individual.
[0385] Optionally, the team selection rule satisfies the following items in sequence:
[0386] For each assembly task, select the assembly team whose total fatigue level of workers in each skill is less than the number of workers performing the corresponding skill;
[0387] For at least two assembly teams whose fatigue levels meet the requirements, select the assembly team with the shortest assembly completion time in the current stage;
[0388] For at least two assembly teams whose fatigue levels meet the requirements and whose current process ends at the same time, select the assembly team with the smallest load;
[0389] For at least two assembly teams whose fatigue levels meet the requirements, whose current process end time is the same and whose loads are the same, the assembly team with the shortest assembly time is selected.
[0390] Optionally, the task sequencing rule of the subsequent stage is determined according to at least one of the following:
[0391] Preset first-stage task sorting rules;
[0392] The priority of tasks entering the current stage is determined based on the end time of the previous stage.
[0393] A specific embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the above-mentioned product assembly workshop scheduling method are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0394] In addition, an embodiment of the present invention further provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 2 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0395] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0396] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0397] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the sending and receiving methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0398] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for scheduling a product assembly workshop, characterized in that: include: Build a human resource model; According to the human resource model, a scheduling model of the product assembly workshop is constructed; Using a preset hybrid coding rule, an initial feasible scheduling solution set of the scheduling model is generated, wherein a feasible scheduling solution includes a first-stage task sequencing scheduling solution and a worker allocation scheduling solution; Using an improved multi-objective genetic algorithm and the initial feasible scheduling solution set, a Pareto optimal scheduling solution set is obtained; The optimal scheduling result is selected according to the Pareto optimal scheduling solution set and the preset decoding rules. The preset decoding rules include the team selection rules and the task sorting rules in the subsequent stages. The optimal scheduling result includes the task sorting results in each stage, the team selection results of each task in each stage, and the job allocation results of the workers.
2. The method for scheduling a product assembly workshop according to claim 1, characterized in that: The human resource model includes at least one of the following: Model of worker skill levels; Worker fatigue model; Models of worker interpersonal relationships and work experiences.
3. The product assembly workshop scheduling method according to claim 1 or 2, characterized in that: According to the human resource model, a scheduling model for the product assembly workshop is constructed, including: Constructing a scheduling-related set, wherein the scheduling-related set includes at least one of an assembly task set, a stage set, a worker set, a worker skill set, an assembly team set, a team set for each stage, a set of coefficients of influence of worker skill levels on assembly time, and a set of coefficients of influence of interpersonal relationships between workers on assembly time; According to the human resource model and the scheduling related set, a scheduling model for a product assembly workshop is constructed with the minimization of maximum completion time, team load balance, minimization of total task waiting time and minimization of transportation time as optimization goals.
4. The method for scheduling a product assembly workshop according to claim 1, characterized in that: The scheduling model includes: The objective function represents the optimization goals of minimizing the maximum completion time, balancing the team load, minimizing the total waiting time of the task, and minimizing the transportation time; And, all of the following constraint functions: It means that in all assembly teams at the same stage, any assembly task has only one predecessor task. A constraint function that means that in all assembly teams at the same stage, any assembly task has only one subsequent task; A constraint function that indicates that the number of variables of the predecessor task is equal to the number of variables of the successor task; A constraint function indicating that there is no close relationship between assembly tasks in the same stage and the same assembly team; A constraint function indicating that any worker is assigned to only one assembly team; A constraint function that indicates that any assembly task at any stage is only assembled by one assembly team; A constraint function that indicates that the assembly task enters the next stage when the previous stage is completed; A constraint function that indicates that the assembly team will enter the next assembly task when the previous assembly task is completed; A constraint function that indicates that the completion time of any assembly task at any stage is not less than the preset time; The maximum completion time constraint function represents the maximum end time of all assembly tasks in the final stage.
5. The product assembly workshop scheduling method according to claim 1, characterized in that: The preset hybrid coding rule is used to generate an initial feasible scheduling solution set of the scheduling model, including: Using the real integer encoding rule in the preset hybrid encoding rule to generate the worker allocation chromosome; Using an arrangement coding rule in a preset hybrid coding rule, or generating a task sorting chromosome according to the worker allocation chromosome and a heuristic rule; Generating a chromosome structure according to the task sorting chromosomes and the worker allocation chromosomes; The step of generating the chromosome structure is repeated a number of times equal to the population size to generate an initial feasible scheduling solution set of the scheduling model.
6. The method for scheduling a product assembly workshop according to claim 5, characterized in that: According to the worker allocation chromosome and the heuristic rule, a task sorting chromosome is generated, including: According to the worker allocation chromosome, the assembly team and skills assigned to each worker are obtained; According to the assembly team and skills assigned to each worker, obtain the assembly time of each assembly team for different assembly tasks; According to the assembly time of each assembly team for different assembly tasks, the minimum assembly time of each assembly task is obtained; Each assembly task is sorted according to its minimum assembly time to generate a task sorting chromosome.
7. The method for scheduling a product assembly workshop according to claim 1, characterized in that: By using the improved multi-objective genetic algorithm search and the initial feasible scheduling solution set, the Pareto optimal scheduling solution set is obtained, including: Setting initial control parameters, including the maximum number of iterations of the multi-objective genetic algorithm and the size of the population, and setting the number of iterations to 0; Taking the initial feasible scheduling solution set as the first parent population; Using a destruction and reconstruction strategy to optimize a first preset number of individuals in the first parent population to generate a second parent population; Performing a crossover operation on a second preset number of individuals in the second parent population to generate a first offspring population, and performing a mutation operation on a third preset number of individuals in the second parent population to generate a second offspring population; Generate a third offspring population according to the Pareto stratification and non-dominated sorting of all individuals in the second parent population, the first offspring population, and the second offspring population; Update the number of iterations; When the number of iterations is less than or equal to the maximum number of iterations, repeating the step of generating the third offspring population; When the number of iterations is greater than the maximum number of iterations, a Pareto optimal scheduling solution set is obtained according to the third child population.
8. The method for scheduling a product assembly workshop according to claim 7, characterized in that: The first preset number of individuals in the first parent population is optimized by using a destruction and reconstruction strategy to generate a second parent population, including: Optimizing the task sorting chromosome of a first individual in the first parent population to obtain an optimized task sorting chromosome of the first individual, wherein the first individual is any individual in the first parent population; Generate an optimized first individual according to the worker allocation chromosomes of the first individual and the optimized task sorting chromosomes; Repeating the step of generating the optimized first individual for a number of times equal to a first preset number to generate the optimized first preset number of individuals; Deleting a first preset number of individuals from the first parent population to obtain a first parent population after deletion; A second parent population is generated according to the deleted first parent population and the optimized first preset number of individuals.
9. The method for scheduling a product assembly workshop according to claim 8, characterized in that: Optimizing the task order chromosome of the first individual in the first parent population to obtain the optimized task order chromosome of the first individual includes: Sorting multiple genes selected from the chromosome according to the task of the first individual to obtain a first gene sequence and a second gene sequence; Deleting the first gene in the second gene sequence from the second gene sequence, and traversally inserting the first gene in the second gene sequence into different positions of the first gene sequence to obtain the maximum completion time corresponding to the different positions; inserting the first gene in the second gene sequence into the position corresponding to the minimum maximum completion time in the first gene sequence; Each gene in the second gene sequence except the first gene is inserted into the first gene sequence, into the position corresponding to the minimum maximum completion time in the first gene sequence, so as to obtain the optimized task sorting chromosome of the first individual.
10. The method for scheduling a product assembly workshop according to claim 1, characterized in that: The team selection rules satisfy the following items in order: For each assembly task, select the assembly team whose total fatigue level of workers in each skill is less than the number of workers performing the corresponding skill; For at least two assembly teams whose fatigue levels meet the requirements, select the assembly team with the shortest assembly completion time in the current stage; For at least two assembly teams whose fatigue levels meet the requirements and whose current process ends at the same time, select the assembly team with the smallest load; For at least two assembly teams whose fatigue levels meet the requirements, whose current process end time is the same and whose loads are the same, the assembly team with the shortest assembly time is selected.
11. The method for scheduling a product assembly workshop according to claim 1, characterized in that: The task sequencing rule of the subsequent stage is determined according to at least one of the following: Preset first-stage task sorting rules; The priority of tasks entering the current stage is determined based on the end time of the previous stage.
12. A product assembly workshop scheduling device, characterized in that: include: The first building module is used to build a human resource model; A second building module is used to build a scheduling model for a product assembly workshop according to the human resource model; A generation module, used to generate an initial feasible scheduling solution set of the scheduling model by using a preset hybrid coding rule, wherein a feasible scheduling solution includes a first-stage task sorting scheduling solution and a worker allocation scheduling solution; An acquisition module, used to obtain a Pareto optimal scheduling solution set by using an improved multi-objective genetic algorithm and the initial feasible scheduling solution set; A selection module is used to select an optimal scheduling result according to the Pareto optimal scheduling solution set and preset decoding rules, wherein the preset decoding rules include team selection rules and task sorting rules in subsequent stages, and the optimal scheduling result includes the task sorting result of each stage, the team selection result of each task in each stage, and the job allocation result of the workers.
13. A product assembly workshop scheduling device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the product assembly workshop scheduling method according to any one of claims 1 to 11 is implemented.
14. A readable storage medium, characterized in that: The readable storage medium stores a program, and when the program is executed by the processor, the product assembly workshop scheduling method according to any one of claims 1 to 11 is implemented.
15. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the product assembly workshop scheduling method according to any one of claims 1 to 11.
Citation Information
Cited By
Building enterprise project group human resource allocation system based on multi-objective optimization
CN120355385A
Construction enterprise project group human resource allocation method based on multi-objective optimization
CN120450664A
