CN115641049A - Multi-station multi-material task allocation and path planning method based on genetic algorithm - Google Patents

Multi-station multi-material task allocation and path planning method based on genetic algorithm Download PDF

Info

Publication number
CN115641049A
CN115641049A CN202211354338.8A CN202211354338A CN115641049A CN 115641049 A CN115641049 A CN 115641049A CN 202211354338 A CN202211354338 A CN 202211354338A CN 115641049 A CN115641049 A CN 115641049A
Authority
CN
China
Prior art keywords
station
distribution
genetic algorithm
method based
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211354338.8A
Other languages
Chinese (zh)
Inventor
刘俊
关勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Dianji University
Original Assignee
Shanghai Dianji University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Dianji University filed Critical Shanghai Dianji University
Priority to CN202211354338.8A priority Critical patent/CN115641049A/en
Publication of CN115641049A publication Critical patent/CN115641049A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Automatic Assembly (AREA)

Abstract

本发明提供一种基于遗传算法的多工位多物料任务分配和路径规划方法,包括步骤:S1:物料配送的预处理步骤;所述S1步骤进一步包括步骤:S11:模块化设计步骤;S12:物料聚类步骤;S13:关键物料筛选步骤;S14:考虑工位需求进行分批错时配送步骤;S2:以完工时间最短为优化目标建立数学模型;S3:根据约束条件,采用遗传算法求解所述数学模型。本发明的一种基于遗传算法的多工位多物料任务分配和路径规划方法,针对离散型装配车间多工位需求多物料的配送存在时间长配送繁琐,制约装配任务完成等问题,让多个工位在正确的时间窗内得到正确的物料种类,在完成物料配送完成的基础上尽可能使物料配送时间最短,提高车间效率。

Figure 202211354338

The present invention provides a multi-station and multi-material task distribution and path planning method based on genetic algorithm, comprising steps: S1: a preprocessing step for material distribution; the S1 step further includes steps: S11: a modular design step; S12: Material clustering step; S13: Key material screening step; S14: Considering the demand of the station for batch distribution step; S2: Establishing a mathematical model with the shortest completion time as the optimization goal; S3: According to the constraint conditions, using the genetic algorithm to solve the mathematical model. The multi-station multi-material task distribution and path planning method based on genetic algorithm of the present invention aims at the problems of long-time and cumbersome distribution of multi-station and multi-material distribution in discrete assembly workshops, which restricts the completion of assembly tasks, etc., allowing multiple The station gets the correct type of material within the correct time window, and on the basis of completing the material distribution, the material distribution time is minimized as much as possible to improve the efficiency of the workshop.

Figure 202211354338

Description

基于遗传算法的多工位多物料任务分配和路径规划方法Multi-station multi-material task assignment and path planning method based on genetic algorithm

技术领域technical field

本发明涉及车间物料配送路径优化方法技术领域,尤其涉及一种基于遗传算法的多工位多物料任务分配和路径规划方法。The present invention relates to the technical field of optimization methods for workshop material delivery routes, in particular to a multi-station and multi-material task assignment and route planning method based on genetic algorithms.

背景技术Background technique

(1)专利文件CN113344487A提出了一种基于线边集成超市的装配线物料配送方法和系统,其主要技术方案是根据构建最小化送料工雇用成本和送料成本的目标函数,采用改进型和声搜索算法,确定物料配送调度方案,该物料配送调度方案包括送料工的负责工位、每次补料行为的时间、工位和为每个工位配送的物料量。从而保证送料工的雇用成本和送料成本的最小化的同时高效可靠的完成物料配送任务。(2)专利文件CN113947310A提出了一种基于改进蚁群算法车间物料配送路径优化方法,其主要技术方案是在传统蚁群算法的基础上改进蚁群状态转移规则,使得蚁群在选择下一个点的时候考虑工位物料需求紧急程度和碳排放量,更符合实际生产情况。(3)专利文件CN113159687A提出一种车间AGV-UAV协同的物料配送路径规划方法及系统,其主要技术方案是采用改进遗传算法来求解路径规划的优化模型来提高配送效率等等。(1) Patent document CN113344487A proposes an assembly line material distribution method and system based on a line-side integrated supermarket. The main technical solution is to use an improved harmony search algorithm based on the objective function of minimizing the cost of hiring workers and feeding costs , to determine the material distribution scheduling plan, the material distribution scheduling plan includes the responsible station of the material delivery worker, the time of each replenishment behavior, the station and the amount of material distributed for each station. In this way, the employment cost of material delivery workers and the cost of material delivery are minimized, and at the same time, the material distribution tasks are efficiently and reliably completed. (2) The patent document CN113947310A proposes a method based on the improved ant colony algorithm workshop material distribution path optimization method, the main technical solution is to improve the ant colony state transition rules on the basis of the traditional ant colony algorithm, so that the ant colony can select the next point When considering the urgency of station material demand and carbon emissions, it is more in line with the actual production situation. (3) The patent document CN113159687A proposes a material distribution path planning method and system for workshop AGV-UAV collaboration. Its main technical solution is to use an improved genetic algorithm to solve the optimization model of path planning to improve distribution efficiency and so on.

现有技术具有以下缺点:Prior art has following shortcoming:

(1)专利文件CN113344487A其所述装配线物料配送方法需要送料工预先根据物料配送调度方案,在线边集成超市完成物料分拣和组配,并存放到料箱中,但需要为工位配送物料时,送料工取出若干个料箱并按序放置在各工位中。缺点就是物料配送的及时率和准确率需要送料工人来保证。(2)专利文件CN113947310A构建以车辆数目使用最少和车辆行驶距离最短为优化目标建立相关数学模型。但实际生产中多数生产车间保证生产质量会以完工时间最短为重,故数学模型某程度上脱离实际生产。(3)专利文件CN113159687A以车辆配送过程的能量消耗作为优化目标,实际生产并非以此为单一优化目标,实际借鉴意义小。同时对于车间地势复杂区域提出人工使用无人机配合进行物料配送,增加了复杂性。(1) The assembly line material distribution method described in the patent document CN113344487A requires the feeder to complete the material sorting and assembly in the online edge integrated supermarket according to the material distribution scheduling plan in advance, and store them in the material box, but when it is necessary to distribute materials for the station , the feeder takes out several material boxes and places them in each station in sequence. The disadvantage is that the timeliness and accuracy of material distribution need to be guaranteed by the delivery workers. (2) The patent document CN113947310A builds a relevant mathematical model with the least number of vehicles used and the shortest vehicle driving distance as the optimization objectives. However, in actual production, most production workshops will focus on the shortest completion time to ensure production quality, so the mathematical model is somewhat divorced from actual production. (3) The patent document CN113159687A takes the energy consumption of the vehicle distribution process as the optimization target, but the actual production does not take this as the single optimization target, and the actual reference value is small. At the same time, for areas with complex terrain in the workshop, it is proposed to manually use drones to cooperate with material distribution, which increases the complexity.

发明内容Contents of the invention

针对上述现有技术中的不足,本发明提供一种基于遗传算法的多工位多物料任务分配和路径规划方法,针对离散型装配车间多工位需求多物料的配送存在时间长配送繁琐,制约装配任务完成等问题,让多个工位在正确的时间窗内得到正确的物料种类,在完成物料配送完成的基础上尽可能使物料配送时间最短,提高车间效率。Aiming at the deficiencies in the above-mentioned prior art, the present invention provides a multi-station, multi-material task assignment and path planning method based on genetic algorithm, aiming at the distribution of multi-station requirements and multi-material in discrete assembly workshops, which takes a long time and is cumbersome and restrictive. Issues such as the completion of assembly tasks allow multiple stations to obtain the correct type of materials within the correct time window, and on the basis of completing material distribution, make the material distribution time as short as possible and improve workshop efficiency.

为了实现上述目的,本发明提供一种基于遗传算法的多工位多物料任务分配和路径规划方法,包括步骤:In order to achieve the above object, the present invention provides a kind of multi-station multi-material task distribution and path planning method based on genetic algorithm, comprising steps:

S1:物料配送的预处理步骤;S1: preprocessing step of material distribution;

所述S1步骤进一步包括步骤:The S1 step further comprises the steps of:

S11:模块化设计步骤;S11: Modular design steps;

S12:物料聚类步骤;S12: material clustering step;

S13:关键物料筛选步骤;S13: key material screening step;

S14:考虑工位需求进行分批错时配送步骤;S14: Taking into account the needs of the workstations, the batch delivery step is performed at the wrong time;

S2:以完工时间最短为优化目标建立数学模型;S2: Establish a mathematical model with the shortest completion time as the optimization goal;

S3:根据约束条件,采用遗传算法求解所述数学模型。S3: Solve the mathematical model by using a genetic algorithm according to the constraints.

优选地,所述S11步骤中:根据不同客户的不同要求和共性需求,设计工作时将整个机械设备的工作分成四个模块:基础模块,选配模块,定制模块和辅助模块。Preferably, in the step S11: according to the different requirements and common needs of different customers, the work of the entire mechanical equipment is divided into four modules when designing the work: basic module, optional module, customized module and auxiliary module.

优选地,所述S12步骤中:根据机械设备的固定的装配工序,利用工位对每件物料需求的时间窗不同和每个阶段的物料需求固定的特点为主要分类指标,将所述物料依据所处时间段不同分成四个类别,所述类别包括:基础、选配、定制和辅助。Preferably, in the step S12: according to the fixed assembly process of mechanical equipment, using the characteristics of different time windows for each material requirement of each station and fixed material requirements at each stage as the main classification index, the materials are classified according to The time period is divided into four categories, which include: basic, optional, customized and auxiliary.

优选地,所述S13步骤中:设立不同权重的评价指标来筛选关键物料,以所述物料的经济性、物料体积和物料所处的所述模块来综合考虑。Preferably, in the step S13: setting up evaluation indexes with different weights to screen key materials, taking into account the economy of the materials, the volume of the materials and the modules in which the materials are located.

优选地,所述S14步骤中:利用所述时间窗来刻画所述工位所需物料的次序和紧急程度,结合所述物料所在所述模块分配配送编号,为每辆运输车赋予初始值,并寻找下一个更紧急的所述工位或者是更紧急的所述物料进行配送,达到多个指标最短的最优路径,由多条配送子路径共同完成任务;所述指标包括路程、等待时间和惩罚时间。Preferably, in the step S14: use the time window to describe the order and urgency of the materials required by the station, assign a distribution number in combination with the module where the materials are located, and assign an initial value to each transport vehicle, And look for the next more urgent station or the more urgent material for delivery, to achieve the shortest optimal path with multiple indicators, and complete the task jointly by multiple delivery sub-paths; the indicators include distance, waiting time and penalty time.

优选地,所述S2步骤中:根据配送物料的实际情况对所述数学模型采取部分简化处理。Preferably, in the step S2: the mathematical model is partially simplified according to the actual situation of the delivered materials.

优选地,所述S3步骤进一步包括步骤:Preferably, the S3 step further comprises the steps of:

S31:采用一种基于自然数的多层编码方式进行对所述数学模型进行编码与解码;S31: Encoding and decoding the mathematical model by using a multi-layer encoding method based on natural numbers;

S32:以每条染色体代表的配送方案的总完工时间的倒数作为本遗传算法的适应度值;S32: Take the reciprocal of the total completion time of the delivery plan represented by each chromosome as the fitness value of the genetic algorithm;

S33:随机产出初始化种群,采用轮盘赌法和精英保留策略相结合的选择方法对所述初始种群进行选择操作;S33: Randomly generate an initial population, and use a selection method combining the roulette method and the elite retention strategy to select the initial population;

S34:通过采用一致交叉算子进行交叉操作和随机交换基因位进行变异操作;S34: performing a crossover operation by using a consistent crossover operator and performing a mutation operation by randomly exchanging gene bits;

S35:淘汰适应度较低的个体,经过多轮进化,获得最优解。S35: Eliminate individuals with low fitness, and obtain the optimal solution after multiple rounds of evolution.

本发明由于采用了以上技术方案,使其具有以下有益效果:The present invention has the following beneficial effects due to the adoption of the above technical scheme:

本发明首先根据机械设备的设计工作采用的模块化工作方式将所有物料并利用K-means算法改进传统的ABC物料分类准则来聚类成四大模块;再利用三个筛选指标将关键物料挑选出来重点关照;最后采用遗传算法对建立的以配送时间最短为主要优化目标的数学模型进行求解,得出带有工位次序和物料种类的双重配送路径。解决了离散型装配车间的多工位多物料配送问题。对比已有技术,增加了物料配送解决方案,同时也兼顾了实际生产的实用性。The present invention first clusters all materials into four modules according to the modular working mode adopted in the design work of mechanical equipment and uses the K-means algorithm to improve the traditional ABC material classification criteria; then uses three screening indicators to select key materials Focus on attention; finally, the genetic algorithm is used to solve the established mathematical model with the shortest delivery time as the main optimization goal, and a dual delivery route with station order and material type is obtained. The problem of multi-station and multi-material distribution in discrete assembly workshops is solved. Compared with the existing technology, the material distribution solution is added, and the practicability of actual production is also taken into account.

附图说明Description of drawings

图1为本发明实施例的基于遗传算法的多工位多物料任务分配和路径规划方法的流程图。FIG. 1 is a flow chart of a genetic algorithm-based multi-station and multi-material task assignment and path planning method according to an embodiment of the present invention.

具体实施方式Detailed ways

下面根据附图图1,给出本发明的较佳实施例,并予以详细描述,使能更好地理解本发明的功能、特点。Below according to accompanying drawing Fig. 1, provide the preferred embodiment of the present invention, and describe in detail, enable the function, characteristic of the present invention to be better understood.

请参阅图1,本发明实施例的一种基于遗传算法的多工位多物料任务分配和路径规划方法,首先根据机械设备的设计工作采用的模块化工作方式将所有物料利用K-means算法改进传统的ABC物料分类准则来聚类成四大模块;再利用三个筛选指标将关键物料挑选出来重点关照;最后采用遗传算法对建立的以配送时间最短为主要优化目标的数学模型进行求解,得出带有工位次序和物料种类的配送路径;包括步骤:Please refer to Fig. 1, a kind of multi-station and multi-material task distribution and path planning method based on genetic algorithm of the embodiment of the present invention, first all materials are improved by using K-means algorithm according to the modular working mode adopted in the design work of mechanical equipment The traditional ABC material classification criteria are used to cluster into four modules; then three screening indicators are used to select the key materials to focus on; finally, the genetic algorithm is used to solve the established mathematical model with the shortest delivery time as the main optimization goal, and the result is Output the distribution route with station sequence and material type; including steps:

S1:物料配送的预处理步骤;S1: preprocessing step of material distribution;

对于大中型流体机械设备的装配工作是最重要的,如何让物料准确而及时到达成为关键。故在物料配送前的三个工作组成预处理,分别是模块化设计,物料聚类与关键物料筛选,考虑工位需求进行分批错时配送。The assembly work of large and medium-sized fluid mechanical equipment is the most important, and how to make materials arrive accurately and in time becomes the key. Therefore, the three tasks before material distribution consist of pre-processing, namely modular design, material clustering and key material screening, and batch-time delivery in consideration of station requirements.

S1步骤进一步包括步骤:The S1 step further comprises the steps of:

S11:模块化设计步骤;S11: Modular design steps;

根据不同客户的不同要求和共性需求,设计工作时将整个机械设备的工作分成四个模块:基础模块,选配模块,定制模块和辅助模块。According to the different requirements and common needs of different customers, the work of the entire mechanical equipment is divided into four modules during the design work: basic module, optional module, customized module and auxiliary module.

S12:物料聚类步骤;S12: material clustering step;

根据机械设备的固定的装配工序,利用工位对每件物料需求的时间窗不同和每个阶段的物料需求固定的特点为主要分类指标,将物料依据所处时间段不同分成四个类别,类别包括:基础、选配、定制和辅助。According to the fixed assembly process of mechanical equipment, using the characteristics of different time windows for each material requirement of each station and the fixed material requirement of each stage as the main classification index, the materials are divided into four categories according to the different time periods. Includes: Basic, Optional, Custom and Auxiliary.

S13:关键物料筛选步骤;S13: key material screening step;

并非所有物料都需要专人配送,同时车间的物流资源有限,并不能覆盖全部物料。故设立不同权重的评价指标来筛选关键物料,以物料的经济性、物料体积和物料所处的模块来综合考虑。Not all materials need to be delivered by a special person. At the same time, the logistics resources of the workshop are limited and cannot cover all materials. Therefore, evaluation indicators with different weights are set up to screen key materials, and the economy of materials, material volume and the modules in which materials are located are considered comprehensively.

S14:考虑工位需求进行分批错时配送步骤;S14: Taking into account the needs of the workstations, the batch delivery step is performed at the wrong time;

考虑工位所需物料的模块大致相同,只是会在种类上有差别,利用时间窗来刻画工位所需物料的次序和紧急程度,结合物料所在模块分配配送编号,为每辆运输车赋予初始值,并寻找下一个更紧急的工位或者是更紧急的物料进行配送,达到多个指标最短的最优路径,由多条配送子路径共同完成任务;指标包括路程、等待时间和惩罚时间。Considering that the modules of the materials required by the stations are roughly the same, but there are differences in types, the time window is used to describe the order and urgency of the materials required by the stations, and the distribution number is allocated according to the modules where the materials are located, and each transport vehicle is assigned an initial Value, and find the next more urgent station or more urgent material for delivery, to achieve the optimal path with the shortest multiple indicators, and multiple distribution sub-paths to complete the task together; indicators include distance, waiting time and penalty time.

S2:以完工时间最短为优化目标建立数学模型;S2: Establish a mathematical model with the shortest completion time as the optimization goal;

车间的物料配送问题是指运输物料小车从配送中心获取物料从配送中心到各个需求工位行驶路线的规划,使得车辆可以按照符合要求的路径对不同工位配送不同物料并回到配送中心,目的是实现配送目标的同时满足工位需求,同时满足一定的条件约束。The material distribution problem in the workshop refers to the planning of the route for the transport material trolley to obtain materials from the distribution center and from the distribution center to each demand station, so that the vehicle can deliver different materials to different stations according to the required path and return to the distribution center. It is to achieve the delivery target while satisfying the demand of the station and satisfying certain conditions and constraints.

以完工时间最短为优化目标建立数学模型的具体实现过程如下:The specific implementation process of establishing a mathematical model with the shortest completion time as the optimization goal is as follows:

假设离散车间多工位多物料配送中满足以下条件:Assume that the following conditions are met in the multi-station and multi-material distribution of discrete workshops:

1、所有运输车从物料超市出发时,实际运载量不能超过其最大运载量;1. When all transport vehicles depart from the material supermarket, the actual carrying capacity cannot exceed their maximum carrying capacity;

2、物料超市到任意工位的距离和工位到工位之间的距离均已知;2. The distance from the material supermarket to any station and the distance between stations are known;

3、任务配送时,车辆从物料超市出发到各工位进行物料配送,当车辆重新回到物料超市认为一个物料配送路径结束;3. During task delivery, the vehicle departs from the material supermarket to each station for material delivery, and when the vehicle returns to the material supermarket, it is considered that a material delivery route is over;

4、一辆运输车可对一个工位或者多个工位进行一次或者多次配送;4. A transport vehicle can deliver one or more times to one station or multiple stations;

5、运输车的唤醒、等待等时间忽略不计,行驶速度恒定,不考虑碰撞等情况;5. The wake-up and waiting time of the transport vehicle are negligible, the driving speed is constant, and the collision and other situations are not considered;

参数:parameter:

C为最大完工时间;i/j为被服务的工位编号;k为运输车编号;ti为运输车到达工位的时间;wi为服务工位i必需的等待时间;si为在工位i的服务时间;dij为工位i和工位j之间的距离;v为车的平均速度;C is the maximum completion time; i/j is the station number being served; k is the number of the transport vehicle; t i is the time when the transport vehicle arrives at the station; w i is the necessary waiting time for the service station i ; The service time of station i; d ij is the distance between station i and station j; v is the average speed of the car;

模型:Model:

目标函数如下:The objective function is as follows:

Figure BDA0003920410590000051
Figure BDA0003920410590000051

其中:in:

Figure BDA0003920410590000052
Figure BDA0003920410590000052

Figure BDA0003920410590000053
Figure BDA0003920410590000053

Figure BDA0003920410590000061
Figure BDA0003920410590000061

Figure BDA0003920410590000062
Figure BDA0003920410590000062

Figure BDA0003920410590000063
Figure BDA0003920410590000063

Figure BDA0003920410590000064
Figure BDA0003920410590000064

∑dij≤L (8);∑d ij ≤ L (8);

同时根据配送物料的实际情况对模型采取部分简化处理如下:At the same time, according to the actual situation of the delivered materials, the model is partially simplified as follows:

Figure BDA0003920410590000065
当取值为1时,表示车辆k负责物料配送从工位i到工位j;
Figure BDA0003920410590000065
When the value is 1, it means that vehicle k is responsible for material distribution from station i to station j;

Figure BDA0003920410590000066
当取值为1时,表示车辆k负责配送到达工位j等待装卸物料;
Figure BDA0003920410590000066
When the value is 1, it means that vehicle k is responsible for delivery to station j and waits for loading and unloading materials;

Figure BDA0003920410590000067
当取值为1时,表示车辆k负责配送到达工位i进行服务中;
Figure BDA0003920410590000067
When the value is 1, it means that vehicle k is responsible for delivery to station i for service;

式(1)为完成配送任务的时间最短的目标函数。主要包括车辆行驶时间,在物料超市的等待时间,在工位的服务时间和超出设定的时间窗的惩罚时间。其中式(2)中的α,β分别为时间窗之前和之后到达的惩罚系数。式(3)确保各个工位上抵达车辆与离开车辆的数目一致。式(4)为工位时间窗的限制。式(5)是所有物料的配送需要在一定的时间内完成。式(6)是车辆从工位i到工位j的过程中,对其服务时间前后的约束。式(7)保证车辆的装载量在其最大载荷之内。式(8)确保车辆运行状态,不超过车辆的最远运行距离。Equation (1) is the objective function with the shortest time to complete the delivery task. It mainly includes vehicle driving time, waiting time at the material supermarket, service time at the station and penalty time for exceeding the set time window. Among them, α and β in formula (2) are the penalty coefficients arriving before and after the time window respectively. Equation (3) ensures that the number of arriving vehicles and leaving vehicles at each station is consistent. Equation (4) is the limitation of the station time window. Equation (5) means that the distribution of all materials needs to be completed within a certain period of time. Equation (6) is the constraint before and after the service time of the vehicle during the process from station i to station j. Equation (7) ensures that the loading capacity of the vehicle is within its maximum load. Equation (8) ensures that the running state of the vehicle does not exceed the furthest running distance of the vehicle.

S3:根据约束条件,采用遗传算法求解数学模型。S3: According to the constraints, the genetic algorithm is used to solve the mathematical model.

S3步骤进一步包括步骤:The S3 step further includes the steps of:

S31:采用一种基于自然数的多层编码方式进行对数学模型进行编码与解码;S31: Encoding and decoding the mathematical model by adopting a multi-layer encoding method based on natural numbers;

S32:以每条染色体代表的配送方案的总完工时间的倒数作为本遗传算法的适应度值;S32: Take the reciprocal of the total completion time of the delivery plan represented by each chromosome as the fitness value of the genetic algorithm;

S33:随机产出初始化种群,采用轮盘赌法和精英保留策略相结合的选择方法对初始种群进行选择操作;S33: Randomly generate the initial population, and use the selection method combining the roulette method and the elite retention strategy to select the initial population;

S34:通过采用一致交叉算子进行交叉操作和随机交换基因位进行变异操作;S34: performing a crossover operation by using a consistent crossover operator and performing a mutation operation by randomly exchanging gene bits;

S35:淘汰适应度较低的个体,经过多轮进化,获得最优解。S35: Eliminate individuals with low fitness, and obtain the optimal solution after multiple rounds of evolution.

以上结合附图实施例对本发明进行了详细说明,本领域中普通技术人员可根据上述说明对本发明做出种种变化例。因而,实施例中的某些细节不应构成对本发明的限定,本发明将以所附权利要求书界定的范围作为本发明的保护范围。The present invention has been described in detail above with reference to the embodiments of the accompanying drawings, and those skilled in the art can make various changes to the present invention according to the above description. Therefore, some details in the embodiments should not be construed as limiting the present invention, and the present invention will take the scope defined by the appended claims as the protection scope of the present invention.

Claims (7)

1.一种基于遗传算法的多工位多物料任务分配和路径规划方法,包括步骤:1. A multi-station multi-material task distribution and path planning method based on genetic algorithm, comprising steps: S1:物料配送的预处理步骤;S1: preprocessing step of material distribution; 所述S1步骤进一步包括步骤:The S1 step further comprises the steps of: S11:模块化设计步骤;S11: Modular design steps; S12:物料聚类步骤;S12: material clustering step; S13:关键物料筛选步骤;S13: key material screening step; S14:考虑工位需求进行分批错时配送步骤;S14: Taking into account the needs of the workstations, the batch delivery step is performed at the wrong time; S2:以完工时间最短为优化目标建立数学模型;S2: Establish a mathematical model with the shortest completion time as the optimization goal; S3:根据约束条件,采用遗传算法求解所述数学模型。S3: Solve the mathematical model by using a genetic algorithm according to the constraints. 2.根据权利要求1所述的基于遗传算法的多工位多物料任务分配和路径规划方法,其特征在于,所述S11步骤中:根据不同客户的不同要求和共性需求,设计工作时将整个机械设备的工作分成四个模块:基础模块,选配模块,定制模块和辅助模块。2. The multi-station and multi-material task assignment and path planning method based on genetic algorithm according to claim 1, characterized in that, in the S11 step: according to the different requirements and common requirements of different customers, the whole The work of mechanical equipment is divided into four modules: basic module, optional module, customized module and auxiliary module. 3.根据权利要求2所述的基于遗传算法的多工位多物料任务分配和路径规划方法,其特征在于,所述S12步骤中:根据机械设备的固定的装配工序,利用工位对每件物料需求的时间窗不同和每个阶段的物料需求固定的特点为主要分类指标,将所述物料依据所处时间段不同分成四个类别,所述类别包括:基础、选配、定制和辅助。3. The multi-station and multi-material task assignment and path planning method based on genetic algorithm according to claim 2, characterized in that, in the step S12: according to the fixed assembly process of mechanical equipment, each The main classification indicators are the different time windows of material requirements and the fixed material requirements of each stage. The materials are divided into four categories according to the different time periods. The categories include: basic, optional, customized and auxiliary. 4.根据权利要求3所述的基于遗传算法的多工位多物料任务分配和路径规划方法,其特征在于,所述S13步骤中:设立不同权重的评价指标来筛选关键物料,以所述物料的经济性、物料体积和物料所处的所述模块来综合考虑。4. The multi-station and multi-material task assignment and path planning method based on genetic algorithm according to claim 3, characterized in that, in the S13 step: set up evaluation indexes with different weights to screen key materials, and use the materials Consider comprehensively the economy, material volume and the module in which the material is located. 5.根据权利要求4所述的基于遗传算法的多工位多物料任务分配和路径规划方法,其特征在于,所述S14步骤中:利用所述时间窗来刻画所述工位所需物料的次序和紧急程度,结合所述物料所在所述模块分配配送编号,为每辆运输车赋予初始值,并寻找下一个更紧急的所述工位或者是更紧急的所述物料进行配送,达到多个指标最短的最优路径,由多条配送子路径共同完成任务;所述指标包括路程、等待时间和惩罚时间。5. The multi-station and multi-material task assignment and path planning method based on genetic algorithm according to claim 4, characterized in that, in the step S14: using the time window to describe the required material of the station The sequence and urgency, combined with the module where the material is located, assigns a distribution number, assigns an initial value to each transport vehicle, and searches for the next more urgent station or more urgent material for distribution, reaching as many as The optimal path with the shortest index is the shortest path, and multiple distribution sub-paths jointly complete the task; the index includes distance, waiting time and penalty time. 6.根据权利要求5所述的基于遗传算法的多工位多物料任务分配和路径规划方法,其特征在于,所述S2步骤中:根据配送物料的实际情况对所述数学模型采取部分简化处理。6. The multi-station and multi-material task assignment and path planning method based on genetic algorithm according to claim 5, characterized in that, in the S2 step: according to the actual situation of the distribution materials, the mathematical model is partially simplified . 7.根据权利要求6所述的基于遗传算法的多工位多物料任务分配和路径规划方法,其特征在于,所述S3步骤进一步包括步骤:7. The multi-station and multi-material task assignment and path planning method based on genetic algorithm according to claim 6, characterized in that, the S3 step further comprises the steps: S31:采用一种基于自然数的多层编码方式进行对所述数学模型进行编码与解码;S31: Encoding and decoding the mathematical model by using a multi-layer encoding method based on natural numbers; S32:以每条染色体代表的配送方案的总完工时间的倒数作为本遗传算法的适应度值;S32: Take the reciprocal of the total completion time of the delivery plan represented by each chromosome as the fitness value of the genetic algorithm; S33:随机产出初始化种群,采用轮盘赌法和精英保留策略相结合的选择方法对所述初始种群进行选择操作;S33: Randomly generate an initial population, and use a selection method combining the roulette method and the elite retention strategy to select the initial population; S34:通过采用一致交叉算子进行交叉操作和随机交换基因位进行变异操作;S34: performing a crossover operation by using a consistent crossover operator and performing a mutation operation by randomly exchanging gene bits; S35:淘汰适应度较低的个体,经过多轮进化,获得最优解。S35: Eliminate individuals with low fitness, and obtain the optimal solution after multiple rounds of evolution.
CN202211354338.8A 2022-11-01 2022-11-01 Multi-station multi-material task allocation and path planning method based on genetic algorithm Pending CN115641049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211354338.8A CN115641049A (en) 2022-11-01 2022-11-01 Multi-station multi-material task allocation and path planning method based on genetic algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211354338.8A CN115641049A (en) 2022-11-01 2022-11-01 Multi-station multi-material task allocation and path planning method based on genetic algorithm

Publications (1)

Publication Number Publication Date
CN115641049A true CN115641049A (en) 2023-01-24

Family

ID=84945949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211354338.8A Pending CN115641049A (en) 2022-11-01 2022-11-01 Multi-station multi-material task allocation and path planning method based on genetic algorithm

Country Status (1)

Country Link
CN (1) CN115641049A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116167541A (en) * 2023-04-19 2023-05-26 南京邮电大学 Path planning method based on self-adaptive distribution strategy under emergency condition
CN119067534A (en) * 2024-11-07 2024-12-03 中科云谷科技有限公司 Material distribution method, device, system, production workshop and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116167541A (en) * 2023-04-19 2023-05-26 南京邮电大学 Path planning method based on self-adaptive distribution strategy under emergency condition
CN116167541B (en) * 2023-04-19 2023-09-29 南京邮电大学 A path planning method based on adaptive distribution strategy in emergencies
CN119067534A (en) * 2024-11-07 2024-12-03 中科云谷科技有限公司 Material distribution method, device, system, production workshop and storage medium

Similar Documents

Publication Publication Date Title
CN112270135B (en) Intelligent distribution method, device and equipment for logistics dispatching and storage medium
CN115641049A (en) Multi-station multi-material task allocation and path planning method based on genetic algorithm
CN107180276B (en) A method for intelligent scheduling and route optimization of O2O food delivery platform
Payne et al. What is the right supply chain for your products?
CN116402309B (en) Port collection and distribution vehicle scheduling matching method and system
CN113298322A (en) Multidimensional optimized intelligent dispatching method for electric power work orders
CN108830528A (en) Express mail Distribution path planing method based on time-space attribute
CN103793800A (en) Intelligent paring technology for vehicle-cargo on-line loading
CN112085271B (en) A Crowdsourcing Model-Based Optimization Method for Collecting Goods in Traditional Industry Clusters
Wang et al. Collaborative multicenter reverse logistics network design with dynamic customer demands
CN110826968A (en) Urban crowdsourcing distribution task optimal scheduling method based on path planning
CN107844935A (en) A kind of vehicle scheduling and paths planning method based on environmental protection and cost savings
Chen et al. A data-driven genetic programming heuristic for real-world dynamic seaport container terminal truck dispatching
Fontes et al. A bi-objective multi-population biased random key genetic algorithm for joint scheduling quay cranes and speed adjustable vehicles in container terminals
CN117808273B (en) Inter-city carpooling scheduling method and device for passenger departure time cooperation and stage feedback
CN113642775A (en) A finished product warehouse delivery management method, device and computer equipment
CN110991665B (en) A Profit-Maximizing Integrated Vehicle Route Planning Method
CN113762893A (en) Intelligent workshop distributor model based on Internet of things technology and solving algorithm thereof
CN112801336A (en) Freight regulation and control method for combined loading
Sripriya et al. A hybrid genetic algorithm for vehicle routing problem with time windows
Woo et al. Proactive berth scheduling with data‐driven buffer time in container terminals
JP2004326711A (en) Vehicle allocation planning method and apparatus
Bergmann Optimization of the Design of Modular Production Systems
CN109583634A (en) A kind of take-away Distribution path selection method based on Modern Portfolio Theory
Kumar et al. Integrated scheduling of part, tool and automated guided vehicles in a flexible manufacturing system using modified genetic algorithm

Legal Events

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