[go: up one dir, main page]

CN111652412A - A kind of neighborhood search scheduling method and device applied to replacement flow workshop - Google Patents

A kind of neighborhood search scheduling method and device applied to replacement flow workshop Download PDF

Info

Publication number
CN111652412A
CN111652412A CN202010430023.1A CN202010430023A CN111652412A CN 111652412 A CN111652412 A CN 111652412A CN 202010430023 A CN202010430023 A CN 202010430023A CN 111652412 A CN111652412 A CN 111652412A
Authority
CN
China
Prior art keywords
workpiece
workpieces
algorithm
neighborhood
sequence
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.)
Granted
Application number
CN202010430023.1A
Other languages
Chinese (zh)
Other versions
CN111652412B (en
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.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN202010430023.1A priority Critical patent/CN111652412B/en
Publication of CN111652412A publication Critical patent/CN111652412A/en
Application granted granted Critical
Publication of CN111652412B publication Critical patent/CN111652412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • 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

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Manufacturing & Machinery (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • General Factory Administration (AREA)

Abstract

本发明公开了一种应用于置换流水车间的邻域搜索调度方法及装置,所述方法包括:获取关于机床、工件和工件加工时间的时间矩阵,生成工件的初始加工序列,并形成甘特图;确定所述初始加工序列下的关键路径,所述关键路径为总加工时间最长的工序路径;基于目标工件及其相邻工件,确定邻域特征块和关键点,所述目标工件为首尾工件以及每个机床关键路径上的第一个工件,所述邻域特征块为交换相邻工件后所述甘特图结构发生改变的区域,所述关键点为所述关键路径与所述邻域特征块的交点;交换所述目标工件及其相邻工件后,若关键点前移,则进行交换;若关键点后移,则不进行交换;如此,在保证计算精度的同时大幅减少计算次数。

Figure 202010430023

The invention discloses a neighborhood search scheduling method and device applied to a replacement flow shop. The method includes: acquiring a time matrix about a machine tool, a workpiece and the processing time of the workpiece, generating an initial processing sequence of the workpiece, and forming a Gantt chart ; Determine the critical path under the initial processing sequence, and the critical path is the process path with the longest total processing time; Based on the target workpiece and its adjacent workpieces, determine the neighborhood feature blocks and key points, and the target workpiece is the head and tail The workpiece and the first workpiece on the critical path of each machine tool, the neighborhood feature block is the area where the Gantt chart structure changes after the adjacent workpiece is exchanged, and the key point is the critical path and the adjacent workpiece. The intersection of the domain feature block; after exchanging the target workpiece and its adjacent workpieces, if the key point moves forward, the exchange is performed; if the key point moves backward, the exchange is not performed; in this way, the calculation accuracy is ensured and the calculation is greatly reduced. frequency.

Figure 202010430023

Description

一种应用于置换流水车间的邻域搜索调度方法及装置A kind of neighborhood search scheduling method and device applied to replacement flow workshop

技术领域technical field

本发明属于车间调度领域,更具体地,涉及一种应用于置换流水车间的邻域搜索调度方法及装置。The invention belongs to the field of workshop scheduling, and more particularly, relates to a method and device for neighborhood search and scheduling applied to a replacement flow workshop.

背景技术Background technique

生产调度是在某些生产条件的约束下,合理确定每个加工对象的加工路径、加工时间和操作等,以实现某些生产目标,可以定义为“把有限的资源在时间上分配给若干任务,以满足一个或多个目标”。生产调度问题大量存在于制造业中,在智能制造的趋势下,越来越多的生产企业将生产的重点集中到了生产调度问题上,开发更好的调度算法,努力追求更优的解决方案,以实现降低成本、提高生产效益的目标。其中,置换流水车间调度问题(Permutation Flowshop Scheduling Problem,PFSP)属于经典的NP-hard问题,该问题具有指数爆炸,工序相关性等复杂性。Production scheduling is to reasonably determine the processing path, processing time and operation of each processing object under the constraints of certain production conditions to achieve certain production goals, which can be defined as "allocating limited resources to several tasks in time. , to meet one or more objectives". A large number of production scheduling problems exist in the manufacturing industry. Under the trend of intelligent manufacturing, more and more production enterprises focus on production scheduling problems, develop better scheduling algorithms, and strive to pursue better solutions. In order to achieve the goal of reducing costs and improving production efficiency. Among them, the Permutation Flowshop Scheduling Problem (PFSP) belongs to the classical NP-hard problem, which has complexities such as exponential explosion and process correlation.

传统的“模型+算法”式车间调度已经十分成熟,人们在相关领域取得了非常丰富的成果。但是随着智能化和柔性化车间的发展,车间数据量越来越庞大,相应的启发式算法以及元启发式算法的解空间也变得越来越复杂,这对算法本身的性能提出了更高的挑战。The traditional "model + algorithm" workshop scheduling is very mature, and people have achieved very rich results in related fields. However, with the development of intelligent and flexible workshops, the amount of workshop data becomes larger and larger, and the solution space of the corresponding heuristic algorithms and meta-heuristic algorithms becomes more and more complex, which puts forward more challenges for the performance of the algorithm itself. high challenge.

而当前的算法均为泛化式算法,并未针对制造系统问题本身的结构和特性进行分析和改进,已经不足以解决日趋复杂的实际生产问题。因此,亟需对问题结构的本身进行分析,发现其中规律,与元启发式算法相结合,实现新时代下的智能调度。However, the current algorithms are generalized algorithms, which do not analyze and improve the structure and characteristics of the manufacturing system problem itself, and are not enough to solve the increasingly complex actual production problems. Therefore, it is urgent to analyze the problem structure itself, find the rules, and combine with meta-heuristic algorithms to realize intelligent scheduling in the new era.

发明内容SUMMARY OF THE INVENTION

针对现有技术的缺陷和改进需求,本发明提供了一种应用于置换流水车间的邻域搜索调度方法及装置,用以解决现有的车间调度方法无法适用于庞大的车间数据的技术问题。Aiming at the defects and improvement requirements of the prior art, the present invention provides a neighborhood search scheduling method and device applied to a replacement flow shop to solve the technical problem that the existing shop scheduling method cannot be applied to huge workshop data.

为实现上述目的,本发明提供了一种应用于置换流水车间的邻域搜索调度方法,包括以下步骤:In order to achieve the above object, the present invention provides a neighborhood search and scheduling method applied to a replacement flow shop, comprising the following steps:

S1:获取关于机床、工件和工件加工时间的时间矩阵,生成工件的初始加工序列,并形成甘特图;S1: Obtain the time matrix about the machine tool, the workpiece and the processing time of the workpiece, generate the initial processing sequence of the workpiece, and form a Gantt chart;

S2:确定所述初始加工序列下的关键路径,所述关键路径为总加工时间最长的工序路径;基于目标工件及其相邻工件,确定邻域特征块和关键点,所述目标工件为首尾工件以及每个机床关键路径上的第一个工件,所述邻域特征块为交换相邻工件后所述甘特图结构发生改变的区域,所述关键点为所述关键路径与所述邻域特征块的交点;S2: Determine the critical path under the initial processing sequence, the critical path is the process path with the longest total processing time; based on the target workpiece and its adjacent workpieces, determine the neighborhood feature blocks and key points, and the target workpiece is The first and last workpieces and the first workpiece on the critical path of each machine tool, the neighborhood feature block is the area where the Gantt chart structure changes after the adjacent workpieces are exchanged, and the key point is the relationship between the critical path and the The intersection of neighborhood feature blocks;

S3:交换所述目标工件及其相邻工件后,若关键点前移,则进行交换;若关键点后移,则不进行交换;S3: After exchanging the target workpiece and its adjacent workpieces, if the key point moves forward, the exchange is performed; if the key point moves backward, the exchange is not performed;

S4:将得到的新加工序列重复步骤S2和S3的操作,直至交换所有相邻工件均无法缩短总加工时间,则输出最优加工序列。S4: Repeat the operations of steps S2 and S3 for the new machining sequence obtained, until the total machining time cannot be shortened by exchanging all adjacent workpieces, then output the optimal machining sequence.

进一步地,在所述步骤S2之前,对所述初始加工序列进行多邻域搜索操作;Further, before the step S2, a multi-neighbor search operation is performed on the initial processing sequence;

所述多邻域搜索操作包括:The multi-neighbor search operation includes:

在所述新加工序列中随机选择两个工件,颠倒两个工件之间所有工件的顺序;或者randomly select two workpieces in said new machining sequence, reversing the order of all workpieces between the two workpieces; or

在所述新加工序列中随机选择三个工件,交换三个工件之间的两段序列的位置;或者randomly select three workpieces in the new machining sequence, and swap the positions of the two sequences between the three workpieces; or

在所述新加工序列中随机选择两个工件,交换两个工件的位置。Two workpieces are randomly selected in the new machining sequence, and the positions of the two workpieces are swapped.

进一步地,在所述步骤S4之后,结合元启发式算法,对所述最优加工序列进行所述多邻域搜索操作,并重复步骤S2~S4,以得到全局最优解。Further, after the step S4, combined with the meta-heuristic algorithm, the multi-neighbor search operation is performed on the optimal processing sequence, and steps S2-S4 are repeated to obtain a global optimal solution.

进一步地,所述元启发式算法包括以下之一:Further, the meta-heuristic algorithm includes one of the following:

模拟退火算法、禁忌搜索算法、遗传算法、蚁群优化算法、粒子群优化算法、人工鱼群算法、人工蜂群算法、人工神经网络算法。Simulated annealing algorithm, tabu search algorithm, genetic algorithm, ant colony optimization algorithm, particle swarm optimization algorithm, artificial fish swarm algorithm, artificial bee colony algorithm, artificial neural network algorithm.

本发明另一方面提供了一种应用于置换流水车间的邻域搜索调度装置,包括:Another aspect of the present invention provides a neighborhood search and scheduling device applied to a replacement flow shop, comprising:

初始化模块,用于获取关于机床、工件和工件加工时间的时间矩阵,生成工件的初始加工序列,并形成甘特图;The initialization module is used to obtain the time matrix about the machine tool, the workpiece and the processing time of the workpiece, generate the initial processing sequence of the workpiece, and form a Gantt chart;

计算模块,用于确定所述初始加工序列下的关键路径,所述关键路径为总加工时间最长的工序路径;基于目标工件及其相邻工件,确定邻域特征块和关键点,所述目标工件为首尾工件以及每个机床关键路径上的第一个工件,所述邻域特征块为交换相邻工件后所述甘特图结构发生改变的区域,所述关键点为所述关键路径与所述邻域特征块的交点;The calculation module is used to determine the critical path under the initial processing sequence, the critical path is the process path with the longest total processing time; based on the target workpiece and its adjacent workpieces, determine the neighborhood feature blocks and key points, the The target workpiece is the first workpiece on the first and last workpieces on the critical path of each machine tool, the neighborhood feature block is the area where the Gantt chart structure changes after the adjacent workpieces are exchanged, and the key point is the critical path the intersection with the neighborhood feature block;

交换模块,用于交换所述目标工件及其相邻工件后,若关键点前移,则进行交换;若关键点后移,则不进行交换;The exchange module is used to exchange the target workpiece and its adjacent workpieces, if the key point moves forward, the exchange is performed; if the key point moves backward, the exchange is not performed;

输出模块,用于将得到的新加工序列重新输入所述计算模块和所述交换模块中,直至交换所有相邻工件均无法缩短总加工时间,则输出最优加工序列。The output module is configured to re-input the obtained new processing sequence into the calculation module and the exchange module, and output the optimal processing sequence until the total processing time cannot be shortened by exchanging all adjacent workpieces.

进一步地,所述装置还包括:Further, the device also includes:

多邻域搜索操作模块,用于对所述初始加工序列进行多邻域搜索操作;a multi-neighborhood search operation module for performing a multi-neighborhood search operation on the initial processing sequence;

所述多邻域搜索操作包括:The multi-neighbor search operation includes:

在所述新加工序列中随机选择两个工件,颠倒两个工件之间所有工件的顺序;或者randomly select two workpieces in said new machining sequence, reversing the order of all workpieces between the two workpieces; or

在所述新加工序列中随机选择三个工件,交换三个工件之间的两段序列的位置;或者randomly select three workpieces in the new machining sequence, and swap the positions of the two sequences between the three workpieces; or

在所述新加工序列中随机选择两个工件,交换两个工件的位置。Two workpieces are randomly selected in the new machining sequence, and the positions of the two workpieces are swapped.

进一步地,所述多邻域搜索操作模块,还用于结合元启发式算法,对所述最优加工序列进行所述多邻域搜索操作,以得到全局最优解。Further, the multi-neighborhood search operation module is further configured to perform the multi-neighborhood search operation on the optimal processing sequence in combination with a meta-heuristic algorithm to obtain a global optimal solution.

进一步地,所述元启发式算法包括以下之一:Further, the meta-heuristic algorithm includes one of the following:

模拟退火算法、禁忌搜索算法、遗传算法、蚁群优化算法、粒子群优化算法、人工鱼群算法、人工蜂群算法、人工神经网络算法。Simulated annealing algorithm, tabu search algorithm, genetic algorithm, ant colony optimization algorithm, particle swarm optimization algorithm, artificial fish swarm algorithm, artificial bee colony algorithm, artificial neural network algorithm.

总体而言,通过本发明所构思的以上技术方案,能够取得以下有益效果:In general, through the above technical solutions conceived by the present invention, the following beneficial effects can be achieved:

(1)本发明通过定义一种新的邻域结构,确定关键路径、邻域特征块和关键点,并挖掘其相关规律,运用至置换流水车间的调度问题上,从而缩短了计算最优解的时间,且提高了计算精度,进而提高生产稳定性以及产品质量,降低产品制造周期。(1) By defining a new neighborhood structure, the present invention determines key paths, neighborhood feature blocks and key points, and excavates their related laws, and applies them to the scheduling problem of the replacement assembly shop, thereby shortening the calculation of the optimal solution. time, and improve the calculation accuracy, thereby improving the production stability and product quality, and reducing the product manufacturing cycle.

(2)本发明对计算总加工时间的简化操作以及剔除无效计算的操作可以使得算法的效率大幅上升,能够去除工件数量增加带来的组合爆炸问题,降低了对计算机性能的要求,扩大了应用范围,普适性更高。(2) The simplified operation of calculating the total processing time and the operation of eliminating invalid calculation in the present invention can greatly increase the efficiency of the algorithm, eliminate the problem of combined explosion caused by the increase in the number of workpieces, reduce the requirements for computer performance, and expand the application. range, higher universality.

(3)本发明通过采用多邻域搜索操作的方式,避免了单一的搜寻方式易陷入局部最优解,从而使解的质量下降的问题。(3) The present invention avoids the problem that a single search method is easy to fall into a local optimal solution by adopting a multi-neighbor search operation, thereby reducing the quality of the solution.

附图说明Description of drawings

图1为本发明提供的一种应用于置换流水车间的邻域搜索调度方法流程图;1 is a flowchart of a neighborhood search and scheduling method applied to a replacement flow shop provided by the present invention;

图2为本发明实施例提供的置换流水车间邻域结构示意图;2 is a schematic diagram of the neighborhood structure of a replacement flow workshop provided by an embodiment of the present invention;

图3为本发明实施例提供的置换流水车间关键路径示意图;3 is a schematic diagram of a critical path of a replacement flow workshop provided by an embodiment of the present invention;

图4为本发明实施例提供的置换流水车间邻域特征块示意图;4 is a schematic diagram of a neighborhood feature block of a replacement flow shop provided by an embodiment of the present invention;

图5为本发明实施例提供的置换流水车间关键点示意图;5 is a schematic diagram of key points of a displacement flow workshop provided by an embodiment of the present invention;

图6为本发明实施例提供的置换流水车间关键点简化方法示意图;6 is a schematic diagram of a method for simplifying key points of a replacement flow workshop provided by an embodiment of the present invention;

图7为本发明实施例提供的模拟退火算法与邻域搜索结合的流程图。FIG. 7 is a flowchart of the combination of simulated annealing algorithm and neighborhood search provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

如图1所示,为本发明提供的一种应用于置换流水车间的邻域搜索调度方法的流程图,包括以下步骤:As shown in Figure 1, it is a flowchart of a neighborhood search and scheduling method applied to a replacement flow shop provided by the present invention, comprising the following steps:

S1:获取关于机床、工件和工件加工时间的时间矩阵,生成工件的初始加工序列,并形成甘特图;S1: Obtain the time matrix about the machine tool, the workpiece and the processing time of the workpiece, generate the initial processing sequence of the workpiece, and form a Gantt chart;

S2:确定所述初始加工序列下的关键路径,所述关键路径为总加工时间最长的工序路径;基于目标工件及其相邻工件,确定邻域特征块和关键点,所述目标工件为首尾工件以及每个机床关键路径上的第一个工件,所述邻域特征块为交换相邻工件后所述甘特图结构发生改变的区域,所述关键点为所述关键路径与所述邻域特征块的交点;S2: Determine the critical path under the initial processing sequence, the critical path is the process path with the longest total processing time; based on the target workpiece and its adjacent workpieces, determine the neighborhood feature blocks and key points, and the target workpiece is The first and last workpieces and the first workpiece on the critical path of each machine tool, the neighborhood feature block is the area where the Gantt chart structure changes after the adjacent workpieces are exchanged, and the key point is the relationship between the critical path and the The intersection of neighborhood feature blocks;

S3:交换所述目标工件及其相邻工件后,若关键点前移,则进行交换;若关键点后移,则不进行交换;S3: After exchanging the target workpiece and its adjacent workpieces, if the key point moves forward, the exchange is performed; if the key point moves backward, the exchange is not performed;

S4:将得到的新加工序列重复步骤S2和S3的操作,直至交换所有相邻工件均无法缩短总加工时间,则输出最优加工序列。S4: Repeat the operations of steps S2 and S3 for the new machining sequence obtained, until the total machining time cannot be shortened by exchanging all adjacent workpieces, then output the optimal machining sequence.

下面具体介绍相关名词,以便于更好地理解本发明。The related terms are specifically introduced below to facilitate a better understanding of the present invention.

一、置换流水车间邻域与关键路径定义1. Definition of neighborhood and critical path of replacement flow workshop

在置换流水车间当前的模型中,并未出现相关的邻域搜索和关键路径的定义。在本发明中定义置换流水车间的邻域和关键路径如下:In the current model of the replacement flow shop, the associated neighborhood search and critical path definitions do not appear. In the present invention, the neighborhood and critical path of the replacement flow shop are defined as follows:

(1)置换流水车间邻域搜索定义(1) Definition of neighborhood search for replacement flow shop

依次交换所有相邻两个工件的加工顺序,如果解的质量变好,则更新,否则继续交换下一组工件,直到序列中任意两个相邻工件交换位置,无法使得结果变好,则默认取得当前邻域下的局部最优解。Swap the processing order of all two adjacent workpieces in turn. If the quality of the solution becomes better, update it, otherwise continue to exchange the next set of workpieces until any two adjacent workpieces in the sequence exchange positions, and the result cannot be improved, the default Obtain the local optimal solution in the current neighborhood.

如图2所示,在当前邻域搜索下,交换工件9和工件8的位置,如果该交换使得最终的完成时间变小,则进行交换,否则继续判断工件8与工件5是否能使完成时间变小。在多次迭代后,如果该图中任意交换相邻工件均不能使得完成时间变小,则判断达到当前邻域下的局部最优解,完成本次邻域搜索。As shown in Figure 2, under the current neighborhood search, the positions of workpiece 9 and workpiece 8 are exchanged. If the exchange makes the final completion time smaller, the exchange is performed, otherwise, continue to judge whether workpiece 8 and workpiece 5 can make the completion time become smaller. After several iterations, if any exchange of adjacent workpieces in the graph cannot make the completion time smaller, it is judged that the local optimal solution in the current neighborhood is reached, and the neighborhood search is completed.

(2)置换流水车间关键路径定义(2) Definition of critical path of replacement flow workshop

关键路径的概念最早出现在作业车间调度问题中,在关键路径上的工件的加工工序满足的性质为:加工时间最长的工序路径或者在非关键路径上工序进行移动,加工时间不会改变。如果工序满足上述性质,则判定其在关键路径上。按照这个定义,在置换流水车间问题中关键路径如图3所示。由于工序顺序不可改变,所以等于说所有的工件都在关键路径上。The concept of the critical path first appeared in the job shop scheduling problem. The machining process of the workpiece on the critical path satisfies the property: the process path with the longest processing time or the process moves on the non-critical path, and the processing time will not change. If the process satisfies the above properties, it is judged to be on the critical path. Following this definition, the critical path in the permutation flow shop problem is shown in Figure 3. Since the sequence of operations cannot be changed, it means that all workpieces are on the critical path.

二、置换流水车间邻域搜索计算简化2. Simplified calculation of neighborhood search for replacement flow workshop

按照本发明所定义的邻域搜索方式,已经可以对问题进行计算,但是与传统的方式一样,当问题规模增大时,由于需要重复计算整个加工过程的完成时间,所以计算量会出现指数爆炸的问题,计算时间和精度也会大幅下滑,无法满足当前调度的需求。因此,本发明结合关键路径的定义,对该邻域搜索方式进行简化。具体操作如下:According to the neighborhood search method defined in the present invention, the problem can already be calculated, but as with the traditional method, when the scale of the problem increases, the calculation amount will explode exponentially due to the need to repeatedly calculate the completion time of the entire processing process. , the calculation time and accuracy will also drop sharply, which cannot meet the current scheduling needs. Therefore, the present invention simplifies the neighborhood search method in combination with the definition of the critical path. The specific operations are as follows:

1、邻域特征块简化1. Neighborhood feature block simplification

如图4所示,假设当前交换的工件为8和5,那么原始甘特图中出现变化的部分仅仅为图中阶梯形所示区域,其余部分的结构不会发生改变。因此,在计算过程中,只需要计算阶梯形区域的变化情况,即可得知整体的加工时间变化。应用此方法,可以减小一定的计算量。As shown in Figure 4, assuming that the currently exchanged workpieces are 8 and 5, then the changed part of the original Gantt chart is only the area shown by the step shape in the figure, and the structure of the rest will not change. Therefore, in the calculation process, it is only necessary to calculate the change of the stepped area, and then the overall processing time change can be known. By applying this method, a certain amount of calculation can be reduced.

2、关键点的简化2. Simplification of key points

将上述阶梯形邻域特征块与关键路径相结合,可以找到一个交点,设为关键点。如图5所示。Combining the above step-shaped neighborhood feature block with the critical path, an intersection can be found and set as a key point. As shown in Figure 5.

关键点的数值等于关键路径与所选特征块区域相邻的工序的开始时间。结合关键路径,可以得到:当关键点后移,最后的结果一定不会变好;当关键点前移,最后的结果一定不会变差。The value of the keypoint is equal to the start time of the operation where the critical path is adjacent to the selected feature block area. Combined with the critical path, it can be obtained: when the key point is moved backward, the final result will not be better; when the key point is moved forward, the final result will not be worse.

所以仅需要计算关键点的移动即可判断最终的变化,可以大幅降低计算量以及机床数量对最终结果的影响。Therefore, it is only necessary to calculate the movement of key points to determine the final change, which can greatly reduce the amount of calculation and the influence of the number of machine tools on the final result.

3、关键点计算次数简化3. The number of key point calculations is simplified

当加工的工件数量较多时,需要频繁计算关键路径和关键点,这一样会影响整体的计算效率。因此,本发明通过分析找到了相应甘特图规律,可以大幅降低计算次数。When the number of workpieces to be processed is large, the critical paths and key points need to be calculated frequently, which will also affect the overall calculation efficiency. Therefore, the present invention finds the corresponding Gantt chart rule through analysis, which can greatly reduce the number of calculations.

如图6所示,该邻域满足规律如下:(1)同一个机床上有连续4个及以上的关键工件时,交换中间工序,最后结果不会变好;(2)只需要计算首尾以及每个机床关键路径上的第一个工件的相邻工件。As shown in Figure 6, the neighborhood satisfies the following rules: (1) When there are 4 or more consecutive key workpieces on the same machine tool, the intermediate process is exchanged, and the final result will not be better; (2) Only the beginning and end and The workpiece adjacent to the first workpiece on the critical path of each machine tool.

在该甘特图中可能会使得结果变好的交换序列仅为1和15,5和11,11和7,7和14,14和1,6和13,13和10,2和3。因此,仅仅需要按照上述关键点的计算方法计算8次,即可得到最优解。Swap sequences that might make the results better in this Gantt are only 1 and 15, 5 and 11, 11 and 7, 7 and 14, 14 and 1, 6 and 13, 13 and 10, 2 and 3. Therefore, the optimal solution only needs to be calculated 8 times according to the calculation method of the above key points.

按照上述两条规律筛选之后,无论多大规模的问题,最多只需要计算2m+2次即可得到当前邻域下的最优解,其中m为机床数;若不使用该规律,则需要计算n(n-1)/2次,其中n为工件数。After screening according to the above two rules, no matter how large the problem is, it only needs to calculate 2m+2 times at most to get the optimal solution in the current neighborhood, where m is the number of machine tools; if this rule is not used, it is necessary to calculate n (n-1)/2 times, where n is the number of workpieces.

下面以模拟退火算法为例,将新的邻域搜索方法嵌套在元启发式算法中,整体的流程图如图7所示。具体步骤如下:Taking the simulated annealing algorithm as an example, the new neighborhood search method is nested in the meta-heuristic algorithm. The overall flow chart is shown in Figure 7. Specific steps are as follows:

1、采集置换流水车间的机床的数量、工件的数量、每个工件在每台机床上的加工时间,以此形成多个关于机床、工件和工件加工时间的时间矩阵,建立所述置换流水车间加工时间最短的调度模型。1. Collect the number of machine tools in the replacement flow workshop, the number of workpieces, and the processing time of each workpiece on each machine tool, so as to form multiple time matrices about the machining time of machine tools, workpieces and workpieces, and establish the replacement flow workshop The scheduling model with the shortest processing time.

2、SA算法的初始解状态S为NEH算法生成的1~n序列。选择控制参数初值时,一般要求初始值T0的值要充分大,一开始即处于高温状态,且Metropolis的接收率约为1。2. The initial solution state S of the SA algorithm is the 1-n sequence generated by the NEH algorithm. When selecting the initial value of the control parameter, it is generally required that the value of the initial value T 0 should be sufficiently large, it is in a high temperature state at the beginning, and the acceptance rate of Metropolis is about 1.

常规SA算法的初始温度均为随机设定,但是常会影响算法的最终收敛性能。因此,本文随机产生一组状态,确定两两状态间的最大目标值差|Δmax|,然后根据差值,利用初始接受概率确定初温,相关的表达式为T0=-|Δmax|/p0,式中p0为初始接受概率。The initial temperature of the conventional SA algorithm is randomly set, but it often affects the final convergence performance of the algorithm. Therefore, this paper randomly generates a set of states, determines the maximum target value difference |Δ max | between the two states, and then uses the initial acceptance probability to determine the initial temperature according to the difference. The relevant expression is T 0 =-|Δ max | /p 0 , where p 0 is the initial acceptance probability.

3、在大规模问题下,单一的搜寻方式极易陷入局部最优解,从而使解的质量下降。为了提升算法在大规模问题下的普适性,本发明采用基于概率选择的多邻域搜索操作协同的方式生成新解。3种邻域搜索操作如下:3. Under large-scale problems, a single search method is easy to fall into the local optimal solution, which reduces the quality of the solution. In order to improve the ubiquity of the algorithm under large-scale problems, the present invention generates a new solution in a coordinated manner of multi-neighbor search operations based on probability selection. The three neighborhood search operations are as follows:

(1)二交换:在编码序列中随机选择两点,颠倒两点间所有工件的顺序。(1) Two exchange: randomly select two points in the coding sequence, and reverse the order of all workpieces between the two points.

(2)三交换:在编码序列中随机选择三点,交换三点之间的两段序列位置。(2) Three exchanges: randomly select three points in the coding sequence, and exchange two sequence positions between the three points.

(3)点交换:在编码序列中随机选择两点,交换这两点的工件位置。(3) Point exchange: randomly select two points in the coding sequence, and exchange the workpiece positions of these two points.

为了提升算法的运算速度,当按照上述方法所生成新解的最优适应度在一定的迭代次数内仍未改变,则判定算法结束,完成当前温度下的搜索。In order to improve the operation speed of the algorithm, when the optimal fitness of the new solution generated according to the above method does not change within a certain number of iterations, the algorithm is determined to end and the search at the current temperature is completed.

4、完成搜索后,进入新的邻域搜索阶段,首先求出当前加工顺序下的关键路径以及关键点。依次判断首尾以及每个机床关键路径上的第一个工件的相邻工件关键点的变化情况。若是关键点前移,则保留当前加工顺序交换。若是后移,则放弃当前加工顺序交换。将得到的新加工顺序重新进行新的邻域搜索操作,直至所有相邻工序进行交换均无法进行优化,则该步骤结束。4. After completing the search, enter the new neighborhood search stage, first find the key path and key points under the current processing order. The changes of the adjacent workpiece key points of the first workpiece on the critical path of each machine tool are judged in turn. If the key point is moved forward, the current machining sequence exchange is retained. If it is moved backward, the current processing sequence exchange will be abandoned. Perform a new neighborhood search operation on the obtained new processing sequence until all adjacent processes are exchanged and cannot be optimized, then this step ends.

5、通过Metropolis准则判断是否接受新解。在判断完后,额外设置变量E_best保存全局最优解,该解不受Metropolis准则判定的影响,以免在之后的迭代中被取代。5. Judge whether to accept the new solution through the Metropolis criterion. After the judgment, the variable E_best is additionally set to save the global optimal solution, which is not affected by the Metropolis criterion judgment, so as not to be replaced in subsequent iterations.

6、与标准的SA算法不同,本文启用“多普勒”型衰减函数代替了原本的指数函数。这种新型的衰减函数可以提升大规模环境下解的收敛速度。多普勒效应型温度递减曲线表达式为:6. Different from the standard SA algorithm, this paper uses the "Doppler" attenuation function instead of the original exponential function. This new decay function can improve the convergence speed of the solution in large-scale environments. The Doppler effect type temperature decreasing curve is expressed as:

Figure BDA0002500187520000091
Figure BDA0002500187520000091

其中,k为迭代次数,K为总降温次数,a为自定义的迭代系数。利用该函数不断衰减温度T,直到达到终止温度时终止迭代,温度衰减完毕,返回最优目标函数值,得到当前置换流水车间的加工序列。Among them, k is the number of iterations, K is the total cooling times, and a is a custom iteration coefficient. This function is used to continuously attenuate the temperature T, and the iteration is terminated when the end temperature is reached. After the temperature decay is completed, the optimal objective function value is returned to obtain the processing sequence of the current replacement flow shop.

在上述模型和求解算法的基础上,为了证明本发明的实际应用效果,本发明在标准测试实例中选择了大规模TA类问题进行仿真测试(工件数量大于100),并和其它目前已有的算法效果进行对比,其中KP+SA是本发明中的邻域搜索嵌套在SA算法后的结果。On the basis of the above-mentioned model and solving algorithm, in order to prove the practical application effect of the present invention, the present invention selects a large-scale TA type problem in the standard test example for simulation testing (the number of workpieces is greater than 100), and compares it with other existing existing The algorithm effects are compared, wherein KP+SA is the result of the neighborhood search nested in the SA algorithm in the present invention.

表1算例参数及算例结果Table 1 Example parameters and example results

Figure BDA0002500187520000092
Figure BDA0002500187520000092

如表1所示,表中数值表示相应算法求得的最优解与已知最优解的相对误差,可以看出,本发明提出的方法远远优于同类型的算法,在置换流水车间问题的求解中,取得了巨大的优势,而且计算结果相当稳定和高效,可以用于指导实际生产。As shown in Table 1, the numerical values in the table represent the relative error between the optimal solution obtained by the corresponding algorithm and the known optimal solution. It can be seen that the method proposed by the present invention is far superior to the same type of algorithm. In solving the problem, great advantages have been achieved, and the calculation results are quite stable and efficient, and can be used to guide actual production.

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。Those skilled in the art can easily understand that the above are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, etc., All should be included within the protection scope of the present invention.

Claims (8)

1. A neighborhood search scheduling method applied to a replacement flow shop is characterized by comprising the following steps:
s1: acquiring a time matrix related to a machine tool, a workpiece and workpiece processing time, generating an initial processing sequence of the workpiece, and forming a Gantt chart;
s2: determining a critical path under the initial processing sequence, wherein the critical path is a process path with the longest total processing time; determining neighborhood feature blocks and key points based on a target workpiece and adjacent workpieces thereof, wherein the target workpiece is a head workpiece and a tail workpiece and a first workpiece on a key path of each machine tool, the neighborhood feature blocks are regions in which the Gantt chart structure is changed after the adjacent workpieces are exchanged, and the key points are intersection points of the key paths and the neighborhood feature blocks;
s3: after exchanging the target workpiece and the adjacent workpieces, if the key point moves forward, exchanging; if the key point moves backwards, no exchange is carried out;
s4: repeating the operations of steps S2 and S3 on the obtained new machining sequence until the total machining time cannot be shortened by exchanging all the adjacent workpieces, and outputting the optimal machining sequence.
2. The neighborhood search scheduling method applied to a replacement flow plant according to claim 1, wherein, before said step S2, a multi-neighborhood search operation is performed on said initial machining sequence;
the multi-neighborhood search operation comprises:
randomly selecting two workpieces in the new processing sequence, and reversing the sequence of all the workpieces between the two workpieces; or
Randomly selecting three workpieces in the new processing sequence, and exchanging the positions of two sequences among the three workpieces; or
And randomly selecting two workpieces in the new processing sequence, and exchanging the positions of the two workpieces.
3. The neighborhood search scheduling method applied to the replacement flow shop of claim 2, wherein after the step S4, the multi-neighborhood search operation is performed on the optimal processing sequence in combination with a meta-heuristic algorithm, and the steps S2-S4 are repeated to obtain a global optimal solution.
4. The neighborhood search scheduling method applied to a permuting water plant according to claim 3, wherein said meta-heuristic algorithm comprises one of:
the method comprises the following steps of simulated annealing algorithm, tabu search algorithm, genetic algorithm, ant colony optimization algorithm, particle swarm optimization algorithm, artificial fish colony algorithm, artificial bee colony algorithm and artificial neural network algorithm.
5. A neighborhood searching and scheduling device applied to a replacement flow shop is characterized by comprising:
the initialization module is used for acquiring a time matrix related to the machine tool, the workpiece and the workpiece processing time, generating an initial processing sequence of the workpiece and forming a Gantt chart;
the calculation module is used for determining a critical path under the initial processing sequence, wherein the critical path is a process path with the longest total processing time; determining neighborhood feature blocks and key points based on a target workpiece and adjacent workpieces thereof, wherein the target workpiece is a head workpiece and a tail workpiece and a first workpiece on a key path of each machine tool, the neighborhood feature blocks are regions in which the Gantt chart structure is changed after the adjacent workpieces are exchanged, and the key points are intersection points of the key paths and the neighborhood feature blocks;
the exchange module is used for exchanging the target workpiece and the adjacent workpiece and then exchanging if the key point moves forwards; if the key point moves backwards, no exchange is carried out;
and the output module is used for inputting the obtained new machining sequence into the calculation module and the exchange module again until the total machining time cannot be shortened by exchanging all adjacent workpieces, and outputting the optimal machining sequence.
6. The neighborhood search scheduling apparatus for replacing a plant as claimed in claim 5, further comprising:
the multi-neighborhood search operation module is used for performing multi-neighborhood search operation on the initial processing sequence;
the multi-neighborhood search operation comprises:
randomly selecting two workpieces in the new processing sequence, and reversing the sequence of all the workpieces between the two workpieces; or
Randomly selecting three workpieces in the new processing sequence, and exchanging the positions of two sequences among the three workpieces; or
And randomly selecting two workpieces in the new processing sequence, and exchanging the positions of the two workpieces.
7. The neighborhood search scheduling apparatus of claim 6, wherein said multi-neighborhood search operation module is further configured to perform said multi-neighborhood search operation on said optimal processing sequence in combination with a meta-heuristic algorithm to obtain a global optimal solution.
8. The neighborhood search scheduling apparatus for replacing a plant as claimed in claim 7, wherein said meta-heuristic algorithm comprises one of:
the method comprises the following steps of simulated annealing algorithm, tabu search algorithm, genetic algorithm, ant colony optimization algorithm, particle swarm optimization algorithm, artificial fish colony algorithm, artificial bee colony algorithm and artificial neural network algorithm.
CN202010430023.1A 2020-05-20 2020-05-20 Neighborhood search scheduling method and device applied to displacement flow shop Active CN111652412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010430023.1A CN111652412B (en) 2020-05-20 2020-05-20 Neighborhood search scheduling method and device applied to displacement flow shop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010430023.1A CN111652412B (en) 2020-05-20 2020-05-20 Neighborhood search scheduling method and device applied to displacement flow shop

Publications (2)

Publication Number Publication Date
CN111652412A true CN111652412A (en) 2020-09-11
CN111652412B CN111652412B (en) 2022-07-05

Family

ID=72346749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010430023.1A Active CN111652412B (en) 2020-05-20 2020-05-20 Neighborhood search scheduling method and device applied to displacement flow shop

Country Status (1)

Country Link
CN (1) CN111652412B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117333502A (en) * 2023-09-28 2024-01-02 腾讯科技(深圳)有限公司 Data processing methods, devices, equipment and readable storage media

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08180100A (en) * 1994-12-27 1996-07-12 Fujitsu Ltd Scheduling method and apparatus
US20030220772A1 (en) * 2002-05-22 2003-11-27 Hsiao-Dong Chiang Dynamical methods for solving large-scale discrete and continuous optimization problems
CN102880667A (en) * 2012-09-04 2013-01-16 北京航空航天大学 Test task scheduling method based on critical paths and tabu search
CN105512954A (en) * 2015-11-30 2016-04-20 清华大学 Integrated search method for large-scale flexible job shop scheduling
CN106611377A (en) * 2015-11-27 2017-05-03 四川用联信息技术有限公司 Critical path-combined hybrid neighborhood search algorithm for job-shop scheduling

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08180100A (en) * 1994-12-27 1996-07-12 Fujitsu Ltd Scheduling method and apparatus
US20030220772A1 (en) * 2002-05-22 2003-11-27 Hsiao-Dong Chiang Dynamical methods for solving large-scale discrete and continuous optimization problems
CN102880667A (en) * 2012-09-04 2013-01-16 北京航空航天大学 Test task scheduling method based on critical paths and tabu search
CN106611377A (en) * 2015-11-27 2017-05-03 四川用联信息技术有限公司 Critical path-combined hybrid neighborhood search algorithm for job-shop scheduling
CN105512954A (en) * 2015-11-30 2016-04-20 清华大学 Integrated search method for large-scale flexible job shop scheduling

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
吴树景: "变邻域保优遗传算法求解柔性车间调度问题", 《计算机工程与应用》 *
宋晓宇等: "求解Job Shop调度问题的改进禁忌搜索算法", 《系统工程与电子技术》 *
李新宇: "工艺规划与车间调度集成问题的求解方法研究", 《中国优秀硕士学位论文集》 *
赵诗奎等: "基于工序编码和邻域搜索策略的遗传算法优化作业车间调度", 《机械工程学报》 *
黎阳: "基于改进模拟退火算法的大规模置换流水车间调度", 《计算机集成制造系统》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117333502A (en) * 2023-09-28 2024-01-02 腾讯科技(深圳)有限公司 Data processing methods, devices, equipment and readable storage media
CN117333502B (en) * 2023-09-28 2025-04-08 腾讯科技(深圳)有限公司 Data processing method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN111652412B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
Zhang et al. A matrix cube-based estimation of distribution algorithm for the energy-efficient distributed assembly permutation flow-shop scheduling problem
Zolfaghari et al. Comparative study of simulated annealing, genetic algorithms and tabu search for solving binary and comprehensive machine-grouping problems
CN111797469B (en) Aeroengine case technological parameter optimization method based on machining cutter relieving deformation constraint
CN112381343B (en) Flexible job shop scheduling method based on genetic-backbone particle swarm hybrid algorithm
CN111290283B (en) A single machine scheduling method for additive manufacturing for selective laser melting process
CN110598279A (en) Method and device for part processing route planning
CN110378583B (en) A method for exchanging adjacent process of quasi-critical path with equipment
CN117852825B (en) Deadlock-free scheduling method of flexible manufacturing system containing central resources based on deep learning
CN105975701A (en) Parallel scheduling disassembly path forming method based on mixing fuzzy model
CN108647859A (en) Knowledge-driven permutation pipeline dual-population collaborative learning strategy and optimization method
CN111652412B (en) Neighborhood search scheduling method and device applied to displacement flow shop
CN109074348A (en) For being iterated the equipment and alternative manner of cluster to input data set
CN115981262A (en) IMOEA-based hydraulic cylinder part workshop production scheduling method
CN114116778A (en) A database query optimization method
CN115456202B (en) A method, device, equipment and medium for improving the learning performance of a working machine
CN115700647A (en) Workshop flexible operation scheduling method based on tabu search genetic algorithm
CN116090344A (en) A multi-stage impeller optimization method and related device suitable for large number of variables
CN111985162A (en) Replacement flow shop control method and system based on deep learning
CN118348930B (en) Shop floor scheduling method based on cuckoo-improved PSO in digital twin environment
CN112966822A (en) Mixed-flow manufacturing workshop scheduling method based on improved genetic algorithm
CN116300744A (en) Workshop production scheduling method based on improved heuristic algorithm
CN112183817A (en) Flexible workshop scheduling method
CN110298468A (en) A kind of single dimension chain optimization matching method based on ant group algorithm
CN116859869A (en) Flexible job shop scheduling method and device based on double-population hybrid genetic algorithm
CN104570759B (en) The quick Binomial Trees of control system midpoint orientation problem

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
GR01 Patent grant
GR01 Patent grant