CN112016801A - Flexible job shop scheduling method and system with transfer and switching time - Google Patents
Flexible job shop scheduling method and system with transfer and switching time Download PDFInfo
- Publication number
- CN112016801A CN112016801A CN202010693386.4A CN202010693386A CN112016801A CN 112016801 A CN112016801 A CN 112016801A CN 202010693386 A CN202010693386 A CN 202010693386A CN 112016801 A CN112016801 A CN 112016801A
- Authority
- CN
- China
- Prior art keywords
- job shop
- flexible job
- algorithm
- shop scheduling
- empire
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06313—Resource planning in a project environment
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/067—Enterprise or organisation modelling
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/04—Manufacturing
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Tourism & Hospitality (AREA)
- Game Theory and Decision Science (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Educational Administration (AREA)
- Development Economics (AREA)
- General Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Biophysics (AREA)
- Molecular Biology (AREA)
- Artificial Intelligence (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Biodiversity & Conservation Biology (AREA)
- Biomedical Technology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Manufacturing & Machinery (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明公开了带传输和切换时间的柔性作业车间调度方法及系统,包括:获取柔性作业车间的参数,所述参数包括:机床的数量、工件的数量、每个工件对应的加工工序、工件在机床上的加工时间、机床之间的传输时间和工件之间的切换时间;基于柔性作业车间的参数,构建柔性作业车间调度模型,所述柔性作业车间调度模型,包括:目标函数和约束条件;基于改进的帝国竞争算法,对柔性作业车间调度模型进行求解,求解过程中假设一个国家代表一组柔性作业车间调度问题的可行方案;求解最后输出柔性作业车间调度方案。
The invention discloses a flexible job shop scheduling method and system with transmission and switching time, comprising: acquiring parameters of the flexible job shop, the parameters including: the number of machine tools, the number of workpieces, the processing procedure corresponding to each workpiece, the The processing time on the machine tool, the transmission time between the machine tools and the switching time between the workpieces; based on the parameters of the flexible job shop, a flexible job shop scheduling model is constructed, and the flexible job shop scheduling model includes: objective functions and constraints; Based on the improved empire competition algorithm, the flexible job shop scheduling model is solved. In the solution process, it is assumed that a country represents a set of feasible solutions for the flexible job shop scheduling problem; the solution finally outputs the flexible job shop scheduling scheme.
Description
技术领域technical field
本申请涉及生产调度技术领域,特别是涉及带传输和切换时间的柔性作业车间调度方法及系统。The present application relates to the technical field of production scheduling, in particular to a flexible job shop scheduling method and system with transmission and switching time.
背景技术Background technique
本部分的陈述仅仅是提到了与本申请相关的背景技术,并不必然构成现有技术。The statements in this section merely mention the background art related to the present application and do not necessarily constitute prior art.
生产调度是制造系统的重要组成部分,近年来备受关注。该领域中最困难的问题之一是作业车间调度问题(JSP),即在一组机床上处理一组作业。每个作业由不同机床上的一组操作和操作序列组成,每个操作的特征是所需的机床和所需的处理时间。经典JSP的一个分支称为FJSP,它更接近实际生产情况。Production scheduling is an important part of manufacturing systems and has received much attention in recent years. One of the most difficult problems in this field is the Job Shop Scheduling Problem (JSP), which is the processing of a set of jobs on a set of machine tools. Each job consists of a set of operations and sequences of operations on different machine tools, and each operation is characterized by the required machine tool and the required processing time. A fork of classic JSP is called FJSP, which is closer to the actual production situation.
FJSP是组合优化和生产管理领域的重要研究课题。FJSP由两个子问题组成,第一个子问题是将一系列可用的机床分配给指定的操作,第二个子问题是计算分配给指定机床的操作序列的完成时间。虽然只需要比JSP多一步,就可以将一系列可选的机床分配给指定的进程,但要解决FJSP的个体编码、解码、交叉和变异问题,FJSP还需要做出相当大的改进。因此,要解决FJSP的问题就困难得多。Kacem提出了两种新的方法:局部化方法(AL)和由指派模型控制的进化方法来联合求解指派和FJSP。通过合理地混合局部搜索和全局搜索,Xia和Wu提出了一种求解多目标FJSP问题的混合方法。Vital-Soto等针对具有排序灵活性的FJSP问题,提出了一种最小化加权拖期的混合整数线性规划(MILP)公式。FJSP is an important research topic in the field of combinatorial optimization and production management. FJSP consists of two sub-problems, the first sub-problem is to assign a sequence of available machine tools to a specified operation, and the second sub-problem is to calculate the completion time of a sequence of operations assigned to a specified machine tool. While it only takes one more step than JSP to assign a range of optional machines to a given process, FJSP still needs considerable improvement to address its individual encoding, decoding, crossover, and mutation problems. So it's much harder to solve the problem with FJSP. Kacem proposes two new methods: a localized approach (AL) and an evolutionary approach controlled by an assignment model to jointly solve assignments and FJSP. By mixing local and global searches reasonably, Xia and Wu proposed a hybrid method for solving multi-objective FJSP problems. For the FJSP problem with sorting flexibility, Vital-Soto et al. proposed a mixed integer linear programming (MILP) formulation that minimizes weighted delays.
Ahmadi等人使用了两种进化算法,一种新的非支配排序遗传算法(NSGA-II)和非支配排序遗传算法(NRGA),来解决具有随机机床故障的多目标FJSP的稳定调度问题。为了求解FJSP,Singh和Mahapatra使用了一种具有高级全局搜索能力的量子行为粒子群算法(QPSO)。Gao等人采用了一种两阶段人工蜂群算法(TABC),并对其进行了改进,以求解具有模糊加工时间和新的作业插入约束的FJSP问题。Gao等人研究了一种求解FJSP问题的高效离散和谐搜索(DHS)算法。Brandimarte等人提出了一种基于禁忌搜索元启发式的分层FJSP算法。Pezzella等人提出了一种求解FJSP问题的遗传算法(GA),该算法集成了初始种群生成、选育个体和培育新个体的不同策略。Xing等人和Bagheri等人分别提出了基于知识的蚁群优化算法(KBACO)和基于集成方法的人工免疫算法(AIA)。Yuan等人提出了求解FJSP问题的混合差分进化(HDE)算法。Gao等人使用变邻域搜索(VNS)算法来解决这一问题.Moslehi等人提出了一种基于粒子群算法和局部搜索算法的混合算法来求解多目标FJSP问题。Sun等人针对模糊FJSP问题,提出了一种有效的混合协作协进化算法(HCEA)。Ahmadi et al. used two evolutionary algorithms, a new non-dominated sorting genetic algorithm (NSGA-II) and a non-dominated sorting genetic algorithm (NRGA), to solve the stable scheduling problem of multi-objective FJSP with random machine failures. To solve the FJSP, Singh and Mahapatra used a quantum behavioral particle swarm algorithm (QPSO) with advanced global search capabilities. Gao et al. adopted a two-stage artificial bee colony algorithm (TABC) and improved it to solve the FJSP problem with fuzzy processing time and new job insertion constraints. Gao et al. studied an efficient discrete harmonic search (DHS) algorithm for solving the FJSP problem. Brandimarte et al. proposed a hierarchical FJSP algorithm based on the tabu search meta-heuristic. Pezzella et al. proposed a Genetic Algorithm (GA) for solving the FJSP problem, which integrates different strategies for initial population generation, selection of individuals, and breeding of new individuals. Xing et al. and Bagheri et al. proposed a knowledge-based ant colony optimization algorithm (KBACO) and an ensemble-based artificial immune algorithm (AIA), respectively. Yuan et al. proposed a hybrid differential evolution (HDE) algorithm for solving the FJSP problem. Gao et al. used the variable neighborhood search (VNS) algorithm to solve this problem. Moslehi et al. proposed a hybrid algorithm based on particle swarm optimization and local search algorithm to solve the multi-objective FJSP problem. Sun et al. proposed an efficient hybrid cooperative co-evolutionary algorithm (HCEA) for the fuzzy FJSP problem.
发明人发现,现有技术存在的技术问题是:工件加工计划与实际的生产调度脱节,柔性作业车间调度问题没有解决。The inventor found that the technical problems existing in the prior art are: the workpiece processing plan is disconnected from the actual production scheduling, and the flexible job shop scheduling problem is not solved.
发明内容SUMMARY OF THE INVENTION
为了解决现有技术的不足,本申请提供了带传输和切换时间的柔性作业车间调度方法及系统;In order to solve the deficiencies of the prior art, the present application provides a flexible job shop scheduling method and system with transmission and switching time;
第一方面,本申请提供了带传输和切换时间的柔性作业车间调度方法;In a first aspect, the present application provides a flexible job shop scheduling method with transmission and switching time;
带传输和切换时间的柔性作业车间调度方法,包括:Flexible job shop scheduling method with transfer and switching times, including:
获取柔性作业车间的参数,所述参数包括:机床的数量、工件的数量、每个工件对应的加工工序、工件在机床上的加工时间、机床之间的传输时间和工件之间的切换时间;Obtain the parameters of the flexible job shop, the parameters include: the number of machine tools, the number of workpieces, the processing procedure corresponding to each workpiece, the processing time of the workpiece on the machine tool, the transmission time between the machine tools and the switching time between the workpieces;
基于柔性作业车间的参数,构建柔性作业车间调度模型,所述柔性作业车间调度模型,包括:目标函数和约束条件;Based on the parameters of the flexible job shop, a flexible job shop scheduling model is constructed, and the flexible job shop scheduling model includes: an objective function and constraints;
基于改进的帝国竞争算法,对柔性作业车间调度模型进行求解,求解过程中假设一个国家代表一组柔性作业车间调度问题的可行方案;求解最后输出柔性作业车间调度方案。Based on the improved empire competition algorithm, the flexible job shop scheduling model is solved. In the solution process, it is assumed that a country represents a set of feasible solutions for the flexible job shop scheduling problem; the solution finally outputs the flexible job shop scheduling scheme.
第二方面,本申请提供了带传输和切换时间的柔性作业车间调度系统;In a second aspect, the present application provides a flexible job shop scheduling system with transmission and switching times;
带传输和切换时间的柔性作业车间调度系统,包括:Flexible job shop scheduling system with transfer and switching times, including:
获取模块,其被配置为:获取柔性作业车间的参数,所述参数包括:机床的数量、工件的数量、每个工件对应的加工工序、工件在机床上的加工时间、机床之间的传输时间和工件之间的切换时间;an acquisition module, which is configured to: acquire parameters of the flexible job shop, the parameters include: the number of machine tools, the number of workpieces, the processing procedure corresponding to each workpiece, the processing time of the workpiece on the machine tool, and the transmission time between the machine tools and the switching time between the workpiece;
模型构建模块,其被配置为:基于柔性作业车间的参数,构建柔性作业车间调度模型,所述柔性作业车间调度模型,包括:目标函数和约束条件;a model building module configured to: construct a flexible job shop scheduling model based on the parameters of the flexible job shop, the flexible job shop scheduling model including: an objective function and constraints;
输出模块,其被配置为:基于改进的帝国竞争算法,对柔性作业车间调度模型进行求解,求解过程中假设一个国家代表一组柔性作业车间调度问题的可行方案;求解最后输出柔性作业车间调度方案。The output module is configured to: solve the flexible job shop scheduling model based on the improved empire competition algorithm, assuming that a country represents a feasible scheme of the flexible job shop scheduling problem during the solving process; the solution finally outputs the flexible job shop scheduling scheme .
第三方面,本申请还提供了一种电子设备,包括:一个或多个处理器、一个或多个存储器、以及一个或多个计算机程序;其中,处理器与存储器连接,上述一个或多个计算机程序被存储在存储器中,当电子设备运行时,该处理器执行该存储器存储的一个或多个计算机程序,以使电子设备执行上述第一方面所述的方法。In a third aspect, the present application also provides an electronic device, comprising: one or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and one or more of the above The computer program is stored in the memory, and when the electronic device runs, the processor executes one or more computer programs stored in the memory, so that the electronic device performs the method described in the first aspect above.
第四方面,本申请还提供了一种计算机可读存储介质,用于存储计算机指令,所述计算机指令被处理器执行时,完成第一方面所述的方法。In a fourth aspect, the present application further provides a computer-readable storage medium for storing computer instructions, and when the computer instructions are executed by a processor, the method described in the first aspect is completed.
第五方面,本申请还提供了一种计算机程序(产品),包括计算机程序,所述计算机程序当在一个或多个处理器上运行的时候用于实现前述第一方面任意一项的方法。In a fifth aspect, the present application also provides a computer program (product), including a computer program, which when run on one or more processors, is used to implement the method of any one of the foregoing first aspects.
与现有技术相比,本申请的有益效果是:Compared with the prior art, the beneficial effects of the present application are:
本申请通过将模拟退火算法与分布估计算法嵌入到帝国竞争算法中,形成混合帝国竞争算法,通过混合帝国竞争算法应用到柔性作业车间调度问题中,解决柔性作业车间调度方案快速找到最优解的技术问题,提高柔性车间调度的效率,缩小完工时间。In this application, the simulated annealing algorithm and the distribution estimation algorithm are embedded into the empire competition algorithm to form a hybrid empire competition algorithm, and the hybrid empire competition algorithm is applied to the flexible job shop scheduling problem to solve the flexible job shop scheduling scheme to quickly find the optimal solution. technical problems, improve the efficiency of flexible workshop scheduling, and shorten the completion time.
附图说明Description of drawings
构成本申请的一部分的说明书附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。The accompanying drawings that form a part of the present application are used to provide further understanding of the present application, and the schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute improper limitations on the present application.
图1为本申请实施例一的FJSP示意图;Fig. 1 is the FJSP schematic diagram of the first embodiment of the application;
图2为本申请实施例一的算法流程图;FIG. 2 is an algorithm flowchart of
图3为本申请实施例一的解的表示示意图;3 is a schematic representation of the solution of
图4(a)-图4(b)为本申请实施例一的突变过程示意图;4(a)-FIG. 4(b) are schematic diagrams of the mutation process of Example 1 of the application;
图5(a)-图5(b)为本申请实施例一的同化过程示意图;5(a)-FIG. 5(b) are schematic diagrams of the assimilation process of Example 1 of the application;
图6为本申请实施例一的帝国入侵示意图;6 is a schematic diagram of the imperial invasion of
图7(a)-图7(d)为本申请实施例一的邻域结构的示意图;7(a)-FIG. 7(d) are schematic diagrams of the neighborhood structure of
图8(a)-图8(d)为本申请实施例一的参数的主要影响示意图;FIG. 8(a)-FIG. 8(d) are schematic diagrams showing the main influence of the parameters of the first embodiment of the application;
图9(a)-图9(d)为本申请实施例一的HICA和HICA变异体的方差分析结果示意图;Figure 9 (a)-Figure 9 (d) are schematic diagrams of variance analysis results of HICA and HICA variants of Example 1 of the application;
图10(a)-图10(d)为本申请实施例一的HICA和HICA变异体的收敛性比较示意图;Fig. 10(a)-Fig. 10(d) are schematic diagrams showing the comparison of the convergence of HICA and HICA variants of Example 1 of the application;
图11(a)-图11(c)为本申请实施例一的方差分析结果用于比较多种算法示意图;Fig. 11(a)-Fig. 11(c) are schematic diagrams of the variance analysis results used to compare various algorithms in Example 1 of the present application;
图12(a)-图12(d)为本申请实施例一的HICA算法与其他算法的收敛性比较示意图;FIG. 12(a)-FIG. 12(d) are schematic diagrams showing the comparison of the convergence between the HICA algorithm of
图13为本申请实施例一的解的甘特图示意图。FIG. 13 is a schematic diagram of a Gantt chart of the solution of
具体实施方式Detailed ways
应该指出,以下详细说明都是示例性的,旨在对本申请提供进一步的说明。除非另有指明,本申请实施例使用的所有技术和科学术语具有与本申请所属技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed description is exemplary and intended to provide further explanation of the application. Unless otherwise specified, all technical and scientific terms used in the examples of this application have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本申请的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terminology used herein is for the purpose of describing specific embodiments only, and is not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural as well, furthermore, it is to be understood that the terms "including" and "having" and any conjugations thereof are intended to cover the non-exclusive A process, method, system, product or device comprising, for example, a series of steps or units is not necessarily limited to those steps or units expressly listed, but may include those steps or units not expressly listed or for such processes, methods, Other steps or units inherent to the product or equipment.
在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。Embodiments of the invention and features of the embodiments may be combined with each other without conflict.
术语解释:Terminology Explanation:
SA,模拟退火算法;SA, simulated annealing algorithm;
EDA,分布估计算法;EDA, distribution estimation algorithm;
HICA,混合帝国竞争算法;HICA, Hybrid Empire Competition Algorithm;
实施例一Example 1
本实施例提供了带传输和切换时间的柔性作业车间调度方法;The present embodiment provides a flexible job shop scheduling method with transmission and switching time;
带传输和切换时间的柔性作业车间调度方法,包括:Flexible job shop scheduling method with transfer and switching times, including:
S101:获取柔性作业车间的参数,所述参数包括:机床的数量、工件的数量、每个工件对应的加工工序、工件在机床上的加工时间、机床之间的传输时间和工件之间的切换时间;S101: Acquire parameters of the flexible job shop, the parameters include: the number of machine tools, the number of workpieces, the processing procedure corresponding to each workpiece, the processing time of the workpieces on the machine tools, the transmission time between machine tools, and the switching between workpieces time;
S102:基于柔性作业车间的参数,构建柔性作业车间调度模型,所述柔性作业车间调度模型,包括:目标函数和约束条件;S102: Build a flexible job shop scheduling model based on the parameters of the flexible job shop, where the flexible job shop scheduling model includes: an objective function and constraints;
S103:基于改进的帝国竞争算法,对柔性作业车间调度模型进行求解,求解过程中假设一个国家代表一组柔性作业车间调度问题的可行方案;求解最后输出柔性作业车间调度方案。S103: Based on the improved empire competition algorithm, the flexible job shop scheduling model is solved. In the solution process, it is assumed that a country represents a feasible scheme of the flexible job shop scheduling problem; the solution finally outputs the flexible job shop scheduling scheme.
应理解的,所述S101中,机床,包括:金属切削机床、锻压机床和木工机床等。It should be understood that in S101, the machine tools include: metal cutting machine tools, forging machine tools, woodworking machine tools, and the like.
工件,是指:机械加工中的加工对象。它可以是单个零件,也可以是固定在一起的几个零件的组合体。Workpiece refers to: the processing object in machining. It can be a single part or a combination of several parts fixed together.
每个工件对应的加工工序,是指:一个机床在一个工作地对一个工件连续进行生产活动的综合,是组成生产过程的基本单位。根据性质和任务的不同,可分为工艺工序、检验工序、运输工序等。工序为作业的处理顺序。The processing procedure corresponding to each workpiece refers to the synthesis of continuous production activities performed by a machine tool on a workpiece in a work place, and is the basic unit that constitutes the production process. According to the different nature and tasks, it can be divided into technological process, inspection process, transportation process, etc. An operation is the processing sequence of a job.
机床之间的传输时间,是指:工件从一个机床运输到另外一个机床所需要花费的时间。Transfer time between machine tools refers to the time it takes for a workpiece to be transported from one machine tool to another.
工件之间的切换时间,是指:对某个机床而言,从一个工件的加工切换到另外一个工件加工所需要花费的时间。The switching time between workpieces refers to the time it takes for a machine tool to switch from the processing of one workpiece to the processing of another workpiece.
作为一个或多个实施例,所述S102:基于柔性作业车间的参数,构建柔性作业车间调度模型,所述柔性作业车间调度模型,包括:目标函数和约束条件;As one or more embodiments, the S102: construct a flexible job shop scheduling model based on the parameters of the flexible job shop, where the flexible job shop scheduling model includes: an objective function and constraints;
其中,目标函数,具体是指:Among them, the objective function specifically refers to:
最小化最大完工时间:min Cmax Minimize the maximum completion time: min C max
Cmax表示工件最大完工时间的一个连续变量。C max represents a continuous variable of the maximum make-time of the workpiece.
其中,约束条件,具体是指:Among them, the constraints specifically refer to:
有一组待处理的作业J={J1,...,Jn}和一组并行处理工件的机床M={M1,...,Mm};There is a set of jobs J={J 1 ,...,J n } and a set of machine tools M={M 1 ,...,M m } that process workpieces in parallel;
作业在初始时刻都可用且准备就绪;Jobs are available and ready at the initial moment;
每个操作每次只能在一台机床上处理;Each operation can only be processed on one machine at a time;
机床一旦开始执行任务,在任务完成之前不能中断;Once the machine tool starts to execute the task, it cannot be interrupted until the task is completed;
每台机床的存储缓冲区容量大于设定阈值;The storage buffer capacity of each machine tool is greater than the set threshold;
抢占不可用,即后续操作必须等待前置操作完成;Preemption is unavailable, that is, subsequent operations must wait for the preceding operations to complete;
考虑运输时间和切换时间;Consider transit time and switchover time;
确定每项操作所选择的机床,和每台机床上的操作顺序,最大限度地减少完工时间。Determine the machine selected for each operation, and the sequence of operations on each machine, to minimize make-ready time.
进一步地,所述运输时间,是指:一个作业从一台机床移动到另外一台机床所需的运输时间;Further, the transportation time refers to the transportation time required for a job to be moved from one machine tool to another machine tool;
进一步地,所述运输时间,还包括:输入仓库到第一台机床之间的运输时间。定义一台加工时间为零的虚拟机床。Further, the transportation time further includes: inputting the transportation time between the warehouse and the first machine tool. Define a virtual machine with zero machining time.
进一步地,所述切换时间,是指:同一台机床上从执行一个作业切换到执行另外一个作业的时间。Further, the switching time refers to the time for switching from executing one job to executing another job on the same machine tool.
作为一个或多个实施例,所述改进的帝国竞争算法,是将模拟退火算法SA和分布估计算法EDA,嵌入到帝国竞争算法中得到的。As one or more embodiments, the improved empire competition algorithm is obtained by embedding the simulated annealing algorithm SA and the distribution estimation algorithm EDA into the empire competition algorithm.
作为一个或多个实施例,所述S103中,基于改进的帝国竞争算法,对柔性作业车间调度模型进行求解,求解过程中假设一个国家代表一组柔性作业车间调度问题的可行方案;求解最后输出柔性作业车间调度方案;具体步骤包括:As one or more embodiments, in S103, based on the improved empire competition algorithm, the flexible job shop scheduling model is solved, and in the solution process, it is assumed that one country represents a feasible solution for a group of flexible job shop scheduling problems; the final output of the solution is obtained. Flexible job shop scheduling scheme; specific steps include:
S1031:设置帝国竞争算法求解柔性车间调度问题的参数;S1031: Set the parameters of the empire competition algorithm to solve the flexible shop scheduling problem;
S1032:生成初始种群,帝国初始化,假设一个国家代表一组柔性作业车间调度问题的解决方案;每个解决方案由两部分组成,即机床选择序列(作业进行处理时选择的可用机床;机床选择序列,存储作业选择的可用机床的编号)和操作序列(作业处理的顺序;操作序列,存储工件编号);S1032: Generate initial population, empire initialization, assuming that a country represents a set of solutions to a flexible job shop scheduling problem; each solution consists of two parts, the machine selection sequence (the available machines selected when the job is processed; the machine selection sequence , which stores the number of available machine tools selected by the job) and operation sequence (sequence of job processing; operation sequence, which stores the workpiece number);
S1033:变异操作:对解决方案实行突变,增加解决方案的多样性;S1033: mutation operation: mutate the solution to increase the diversity of the solution;
S1034:判断国家的数量是否大于设定阈值,如果大于设定阈值,就改变同化策略,判断是否得到好的殖民地,如果得到好的殖民地,就利用模拟退火算法进行求解;如果没有得到好的殖民地,就利用分布式估计算法进行求解;如果小于等于设定阈值,就执行同化策略,进入S1035;S1034: Determine whether the number of countries is greater than the set threshold. If it is greater than the set threshold, change the assimilation strategy to judge whether good colonies are obtained. If good colonies are obtained, use simulated annealing algorithm to solve the problem; if no good colonies are obtained , use the distributed estimation algorithm to solve; if it is less than or equal to the set threshold, execute the assimilation strategy and enter S1035;
S1035:帝国入侵;S1035: Imperial Invasion;
S1036:帝国更新;S1036: Empire Update;
S1037:帝国毁灭;S1037: Empire Destruction;
S1038:判断是否达到终止条件,如果是,就结束,输出柔性作业车间调度方案;如果否,就返回S1034。S1038: Determine whether the termination condition is reached, if yes, end, and output the flexible job shop scheduling plan; if not, return to S1034.
作为一个或多个实施例,所述S1031中,设置帝国竞争算法求解柔性车间调度问题的参数;具体参数包括:As one or more embodiments, in the S1031, parameters for solving the flexible shop floor scheduling problem by the empire competition algorithm are set; the specific parameters include:
帝国主义国家数量、殖民地国家数量、迭代次数和殖民地的比例。The number of imperialist countries, the number of colonial countries, the number of iterations and the proportion of colonies.
进一步地,所述S1032中,生成初始种群,具体是指:Further, in the S1032, generating an initial population specifically refers to:
确定柔性作业车间调度问题中作业数量、机床数量和操作序列。Determine the number of jobs, the number of machines, and the sequence of operations in a flexible job shop scheduling problem.
进一步地,所述S1032中,帝国初始化,具体是指:Further, in the S1032, the initialization of the empire specifically refers to:
帝国由帝国主义国家和帝国主义国家的殖民地构成;An empire consists of imperialist countries and their colonies;
根据帝国主义国家的力量,为帝国主义国家分配帝国主义国家殖民地,每个帝国主义国家及其殖民地构成一个帝国。According to the strength of the imperialist countries, imperialist countries are allocated colonies of imperialist countries, each imperialist country and its colonies constitute an empire.
进一步地,所述S1033中,变异操作,具体是指:按照突变概率对解决方案实行突变,增加解决方案的多样性。Further, in the S1033, the mutation operation specifically refers to: performing mutation on the solution according to the mutation probability to increase the diversity of the solution.
突变的概率公式如下:The probability formula for mutation is as follows:
其中η表示个体的变异概率,F表示个体的适应度,Favg表示平均个体的适应度,Fmin表示最差的个体的适应度。where η is the mutation probability of the individual, F is the fitness of the individual, Favg is the fitness of the average individual, and Fmin is the fitness of the worst individual.
应理解的,突变是帝国主义国家为减少重复、增加多样性而采取的一种策略。不同的个体可能有不同的突变概率。It should be understood that mutation is a strategy adopted by imperialist countries to reduce duplication and increase diversity. Different individuals may have different mutation probabilities.
个体适应度越好,变异概率越大,这就扩大了个体搜索空间,避免了早熟收敛,较差的个体发生变异的概率较低,通过变异可以获得较好的个体。在变异过程中,对于机床选择部分,随机更换可用机床来实现。对于操作序列部分,使用交换操作来实现。The better the individual fitness, the greater the mutation probability, which expands the individual search space, avoids premature convergence, and the poor individuals have a lower probability of mutation, and better individuals can be obtained through mutation. During the mutation process, for the machine tool selection part, random replacement of available machine tools can be realized. For the operation sequence part, use the swap operation to achieve.
进一步地,所述S1034中,同化策略,是指:帝国主义国家使殖民地向自己靠拢的过程,即柔性车间调度问题中优化差解的过程。Further, in the S1034, the assimilation strategy refers to the process of the imperialist country making the colonies move closer to itself, that is, the process of optimizing the poor solution in the flexible shop floor scheduling problem.
对于帝国i,随机选择一个策略:For empire i, choose a strategy at random:
首先选择帝国i中的所有殖民地进行同化;First select all colonies in empire i to assimilate;
其次是随机选择帝国i中的殖民地进行同化策略;The second is to randomly select colonies in Empire i for the assimilation strategy;
对于其余帝国的殖民地,通过向任何其他帝国主义国家学习来进行同化。For the colonies of the rest of the empire, assimilate by learning from any other imperialist country.
在同化过程中,对于机床选择部分,使用两点交叉策略,随机选择帝国主义国家的两个点,两点之间的元素插入到新殖民地的相应位置,其余的插入到旧殖民地元素中。In the assimilation process, for the machine tool selection part, a two-point crossover strategy is used to randomly select two points of the imperialist country, the elements between the two points are inserted into the corresponding positions of the new colony, and the rest are inserted into the old colony elements.
在同化过程中,对于操作序列(作业处理的顺序;操作序列中存放的是工件编号)部分,采用POX交叉策略,随机选择作业,从帝国主义国家中选择的作业被插入到新殖民地中,而剩余的作业根据旧殖民地的位置被插入到新殖民地中。During the assimilation process, for the part of the operation sequence (the order in which the jobs are processed; the workpiece number is stored in the operation sequence), the POX crossover strategy is adopted, and the jobs are randomly selected, and the jobs selected from the imperialist countries are inserted into the new colonies, while The remaining jobs are inserted into the new colony based on the location of the old colony.
同化策略产生一个新的解决方案,通常以相同的方式(对所有国家实行相同的策略来进行同化)实现。在本申请实施例中,运用了同化策略的多样化操作。The assimilation strategy produces a new solution, usually implemented in the same way (implementing the same strategy for all nations to assimilate). In the embodiment of the present application, the diversification operation of the assimilation strategy is used.
进一步地,所述S1034中,改变同化策略,是指:对于帝国j,随机选择一个策略:Further, in the S1034, changing the assimilation strategy means: for empire j, randomly select a strategy:
首先选择帝国j中的所有殖民地进行同化;First select all colonies in empire j for assimilation;
其次是随机选择帝国j中的殖民地进行同化策略;The second is to randomly select colonies in empire j for the assimilation strategy;
对于其余帝国的殖民地,通过向任何其他帝国主义国家学习来进行同化。For the colonies of the rest of the empire, assimilate by learning from any other imperialist country.
进一步地,所述S1034中,判断是否得到更好的殖民地,具体是指:Further, in the S1034, judging whether to obtain a better colony specifically refers to:
在柔性车间调度问题中当前解决方案加工完作业耗费的时间越少,则表示殖民地越好。In the flexible shop floor scheduling problem, the less time it takes for the current solution to complete the job, the better the colony is.
进一步地,所述S1034中,利用模拟退火算法进行求解,具体包括:Further, in the S1034, the simulated annealing algorithm is used to solve the problem, which specifically includes:
通过构造四个邻域结构来为模拟退火算法创建新的解,以改进优解。Create new solutions for the simulated annealing algorithm by constructing four neighborhood structures to improve the optimal solution.
进一步地,所述S1034中,利用模拟退火算法进行求解,详细步骤包括:Further, in the S1034, the simulated annealing algorithm is used to solve the problem, and the detailed steps include:
采用四种邻域结构N1、N2、N3、N4,来改进模拟退火算法中的解;Using four neighborhood structures N1, N2, N3, N4 to improve the solution in the simulated annealing algorithm;
邻域结构N1通过替换随机选择的机床选择部分的位置元素来完成;Neighborhood structure N1 is done by replacing randomly selected position elements of machine tool selection parts;
邻域结构N2作用于操作序列(作业处理的顺序;操作序列中存放的是工件编号)部分,操作序列部分是随机选择两个作业号并交换两个作业号的方式实现;The neighborhood structure N2 acts on the operation sequence (the order of job processing; the workpiece number is stored in the operation sequence), and the operation sequence part is realized by randomly selecting two job numbers and exchanging the two job numbers;
邻域结构N3是在机床选择部分,通过随机选择两个位置r1和r2来完成的,其中r1<r2,在r1之前的位置插入r2处元素;The neighborhood structure N3 is completed by randomly selecting two positions r 1 and r 2 in the machine tool selection part, where r 1 <r 2 , and inserting the element at r 2 at the position before r 1 ;
邻域结构N4通过在操作序列部分,执行一个交换结构两次,来生成新的解决方案。Neighborhood structure N4 generates new solutions by executing an exchange structure twice in the sequence of operations part.
进一步地,所述S1034中,利用分布式估计算法进行求解,具体包括:Further, in the S1034, using a distributed estimation algorithm to solve, specifically includes:
在分布式估计算法中嵌入两个不同的概率模型,来优化劣解。Two different probabilistic models are embedded in the distributed estimation algorithm to optimize the inferior solution.
进一步地,所述S1034中,利用分布式估计算法进行求解,详细步骤包括:Further, in the S1034, a distributed estimation algorithm is used to solve the problem, and the detailed steps include:
针对机床选择部分和操作序列部分设计了两个概率矩阵P1和P2。Two probability matrices P1 and P2 are designed for the machine selection part and the operation sequence part.
机床选择部分的概率矩阵P1的元素Mj,q,i(L)表示在L代中在机床i上处理操作Oj,q的概率。mj,q表示作业j的第q次操作的可用机床数组。The element M j,q,i (L) of the probability matrix P1 of the machine selection part represents the probability of processing the operation O j,q on machine i in the L generation. m j,q represents the available machine tool array for the qth operation of job j.
概率矩阵P1初始化如下:The probability matrix P1 is initialized as follows:
对操作序列部分的概率矩阵P2的元素Hj,f(L)表示作业j在第L代中出现在P2矩阵的位置f处的概率。Q表示操作序列部分中所有操作的总数。将概率矩阵P2初始化为Hj,f(0)=1/q,保证了整个解空间的均匀采样。Element H j,f (L) of the probability matrix P2 of the operation sequence part represents the probability of job j appearing at position f of the P2 matrix in the Lth generation. Q represents the total number of all operations in the operation sequence part. Initializing the probability matrix P2 to H j,f (0)=1/q ensures uniform sampling of the entire solution space.
然后,通过下列公式来更新概率矩阵P1和P2。Then, the probability matrices P1 and P2 are updated by the following formulas.
Mj,q,i(L+1)=(1-θ)Mj,q,i(L)M j,q,i (L+1)=(1-θ)M j,q,i (L)
Hj,f(L+1)=(1-τ)Hj,f(L)H j,f (L+1)=(1-τ)H j,f (L)
其中θ,τ∈(0,1)分别是P1和P2的学习率;where θ, τ∈(0, 1) are the learning rates of P1 and P2, respectively;
之后通过概率模型P1和P2进行采样以生成新的个体。Then sampling through the probability models P1 and P2 to generate new individuals.
进一步地,所述S1035:帝国入侵;具体包括:Further, the S1035: Imperial Invasion; specifically includes:
各帝国的力量不断变化,当帝国的力量达到设定水平,开始对弱小帝国实施入侵策略,即强大帝国占领弱小帝国的殖民地。强大帝国占领弱小帝国的殖民地,被占领的殖民地成为强大帝国的殖民地。The power of each empire is constantly changing, when the power of the empire reaches a set level, it starts to implement an invasion strategy against the weak and small empires, that is, the strong empire occupies the colonies of the weak and small empires. Strong empires occupy colonies of weaker empires, and the occupied colonies become colonies of stronger empires.
为了获取更强大的权利,一些帝国可能会出现帝国入侵的现象,即当帝国力量达到设定的程度,开始对弱小帝国实施侵略,当强大帝国占领弱小帝国的殖民地时,则为入侵成功。以改变帝国的权利。In order to gain more powerful rights, some empires may experience the phenomenon of imperial invasion, that is, when the empire's power reaches a set level, it starts to invade the weak and small empires, and when the powerful empire occupies the colonies of the weak and small empires, the invasion is successful. to change the power of the empire.
进一步地,所述S1036:帝国更新;具体包括:Further, the S1036: Empire Update; specifically includes:
首先,在每个帝国中,殖民地可能获得比他们的帝国主义国家更多的权利,此时最强大的殖民地变成了新的帝国主义国家。旧帝国主义统治下的殖民地被划归新帝国主义所有,并且旧帝国主义国家也变成了新帝国主义的殖民地。然后,通过实施分布式估计算法更新最坏的帝国的殖民地。First, in each empire, colonies may gain more rights than their imperialist state, at which point the most powerful colony becomes the new imperialist state. Colonies under the rule of the old imperialism were placed under the ownership of the new imperialism, and the old imperialist countries became colonies of the new imperialism. Then, the worst empire's colonies are updated by implementing a distributed estimation algorithm.
进一步地,所述S1037:帝国毁灭;具体包括:Further, the S1037: Empire Destruction; specifically includes:
在帝国中,帝国主义统治下的殖民地已不复存在。实施帝国灭亡战略,帝国主义将被分配到其他帝国成为殖民地。In the empire, the colonies under imperialism no longer exist. Implement the strategy of empire demise and imperialism will be assigned to other empires to become colonies.
进一步地,所述S1038:判断是否达到终止条件,这里的终止条件,是指:是否完成对所有柔性车间调度解决方案的优化。Further, the S1038: determine whether a termination condition is reached, and the termination condition here refers to whether the optimization of all flexible shop floor scheduling solutions is completed.
利用田口方法对算法参数进行了标定。通过CPLEX对所采用的基于位置的数学模型进行了验证。为了对策略的有效性进行验证,构建了HICA的三个变体,HICA1中的内容不包含SA策略,但其余内容仍与HICA一致。HICA2和HICA的不同之处在于从HICA中去除了EDA。除了帝国侵略战略外,HICA3与HICA有相似之处。参数已设置,运行环境与HICA相同。每个计算示例独立运行30次,通过实验数据验证了算法策略的有效性。为了进一步测试所提算法的性能,本申请实施例将HICA算法与其他当前流行的算法进行了比较,包括ICA、改进的遗传算法(IGA)、分布估计算法(EDA)、人工免疫算法(AIA),来验证提出的算法的有效性。The algorithm parameters were calibrated by Taguchi method. The adopted location-based mathematical model was validated by CPLEX. To verify the effectiveness of the strategy, three variants of HICA are constructed. The content in HICA1 does not contain the SA strategy, but the rest of the content is still consistent with HICA. The difference between HICA2 and HICA is the removal of EDA from HICA. HICA3 shares similarities with HICA, except for the imperial aggression strategy. The parameters have been set, and the operating environment is the same as HICA. Each computing example is run independently for 30 times, and the effectiveness of the algorithm strategy is verified by experimental data. In order to further test the performance of the proposed algorithm, the embodiments of this application compare the HICA algorithm with other currently popular algorithms, including ICA, Improved Genetic Algorithm (IGA), Distribution Estimation Algorithm (EDA), Artificial Immune Algorithm (AIA) , to verify the effectiveness of the proposed algorithm.
考虑到上述考虑,本申请实施例对FJSP采用了一种名为HICA的混合算法。主要贡献如下:(1)SA和EDA是基于解质量的嵌入式ICA;(2)引入新的帝国入侵策略ICA来改变帝国的权利。(3)提出了4种邻域结构来构造SA的新解,并将不同的概率模型应用到EDA中;(4)每个解由包含不同信息的两部分组成;(5)运输时间和建立时间这两个现实约束使所研究的问题更接近实际。Considering the above considerations, the embodiment of the present application adopts a hybrid algorithm named HICA for FJSP. The main contributions are as follows: (1) SA and EDA are embedded ICA based on solution quality; (2) A new empire invasion strategy ICA is introduced to change the power of empire. (3) Four neighborhood structures are proposed to construct new solutions for SA, and different probabilistic models are applied to EDA; (4) Each solution consists of two parts containing different information; (5) The transit time and establishment The two realistic constraints of time bring the studied problem closer to reality.
针对一种解决带传输和切换时间的柔性车间调度问题的元启发式知识融合方法,在知识融合元启发式算法的基础上,考虑具有运输时间和设置时间约束的FJSP问题,提出了一种混合帝国主义竞争算法HICA,其中帝国竞争算法(ICA)作为主干、模拟退火(SA)算法和分布估计算法(EDA)用来提高解的质量。目标是最小化最大完工时间。首先,每个解决方案由两部分组成,即机床选择和操作顺序,这两个部分包含不同的信息。然后,在ICA中采用了帝国入侵战略这一新战略来改变帝国的势力。构造了四个邻域结构来为SA创建新的解以改进优解,并在EDA中嵌入两个不同的概率模型来优化劣解。最后,利用田口方法对算法的算子和参数进行了标定。通过CPLEX对所采用的基于位置的数学模型进行了验证。通过大规模随机生成的基准实例集对该算法进行了测试,验证了该算法能够较好地解决所考虑的问题。Aiming at a meta-heuristic knowledge fusion method to solve the flexible workshop scheduling problem with transit and switching time, based on the knowledge fusion meta-heuristic algorithm, considering the FJSP problem with transit time and setting time constraints, a hybrid method is proposed. The Imperial Competition Algorithm HICA, in which the Imperial Competition Algorithm (ICA) is used as the backbone, the Simulated Annealing (SA) algorithm and the Distribution Estimation Algorithm (EDA) are used to improve the quality of the solution. The goal is to minimize the maximum makepan. First, each solution consists of two parts, the machine selection and the sequence of operations, which contain different information. Then, a new strategy of Imperial Invasion was adopted in the ICA to change the power of the Empire. Four neighborhood structures are constructed to create new solutions for SA to improve the optimal solution, and two different probabilistic models are embedded in EDA to optimize the inferior solution. Finally, the operators and parameters of the algorithm are calibrated using Taguchi method. The adopted location-based mathematical model was validated by CPLEX. The algorithm is tested on a large-scale randomly generated benchmark instance set, and it is verified that the algorithm can solve the considered problems well.
带传输和切换时间的柔性车间调度优化问题描述:Flexible shop floor scheduling optimization problem description with transfer and switching time:
在FJSP中,有一组作业和一组机床.每个独立的作业由Oi个操作组成,每个操作都可以在一组可用机床上按一定顺序进行处理。一个作业移动另一台机床的操作需要运输时间,当机床上的前后作业不一致时,需要两个作业之间的切换时间。考虑到输入仓库和第一台机床之间的运输时间,定义了处理时间为零的虚拟机,如机床0。本申请实施例需要同时确定每项操作的机床选择和每台机床上的操作顺序,以最大限度地减少完工时间。图1是目前研究的FJSP的原理图。在提出的模型中,做了如下假设:In FJSP, there is a set of jobs and a set of machine tools. Each independent job consists of O i operations, each of which can be processed in a certain order on a set of available machine tools. The operation of one job moving another machine tool requires transit time, and when the front and rear jobs on the machine tool are inconsistent, switching time between the two jobs is required. Considering the transit time between the input warehouse and the first machine tool, a virtual machine with zero processing time, such as
·所有作业在时间零都可用且准备就绪。· All jobs are available and ready at time zero.
·每个操作每次只能在一台机床上处理。·Each operation can only be processed on one machine at a time.
·机床一旦开始执行任务,在任务完成之前不能中断。·Once the machine tool starts to execute the task, it cannot be interrupted until the task is completed.
·每台机床的存储缓冲区容量足够大。·The storage buffer capacity of each machine tool is large enough.
·抢占不可用,即后续操作必须等待前置操作完成。Preemption is not available, that is, subsequent operations must wait for the preceding operations to complete.
·考虑了运输时间和切换时间。·Transport time and switching time are considered.
1.1带传输和切换时间的柔性车间调度优化问题建模1.1 Modeling of the optimization problem of flexible shop floor scheduling with transmission and switching time
参数和符号表示如下:The parameters and symbols are represented as follows:
索引:index:
j,w 作业的索引.j,w The index of the job.
i,k,t 机床的索引.i,k,t The index of the machine.
f,s 位置的索引.The index of the f,s position.
q,g 操作的索引.The index of the q,g operation.
n 作业数.n Number of jobs.
m 机床的数量.m Number of machines.
参数:parameter:
nj 作业j的操作数.n j operands for job j.
Oj,q 作业j的第q次操作.O j,q The qth operation of job j.
Pj,q,i Oj,q在机床i上的处理时间.P j,q,i O j,q processing time on machine i.
Tj,k,i 工件j从机床k到机床i的运输时间.T j,k,i The transport time of workpiece j from machine k to machine i.
Ej,q,i 一个二进制变量,如果Oj,q能够在机床i处理则为1,否则则为0.E j,q,i is a binary variable that is 1 if O j,q can be processed at machine i, and 0 otherwise.
Si,w,j 机床上i作业的w和j之间的切换时间.S i,w,j switching time between w and j for i job on machine tool.
Ri 可以在机床i上处理的操作数.The number of operands that R i can process on machine i.
Cj,q Oj,q的完工时间.The completion time of C j,q O j,q .
M 一个很大的正数.M is a large positive number.
决策变量:Decision variables:
Wi,w,j 一个二进制变量,如果机床i上的作业j和作业w之间存在切换时间,则取值1;否则取值0。Wi ,w,j is a binary variable that takes the
Xj,q,i,f,k 一个二进制变量,如果在机床k上处理作业j,并且在机床k的f位置处理下一操作Oj,q,则取值1;否则取值0。X j,q,i,f,k A binary variable that takes the
目标函数是最小化完工时间。The objective function is to minimize makepan.
约束(1)和(2)确保每个操作选择可用机床的选定位置进行处理。Constraints (1) and (2) ensure that each operation selects a selected location of the available machine tool for processing.
约束(3)强制机床的每个位置占用一次。Constraint (3) forces each position of the machine to be occupied once.
约束(4)和(5)保证每个作业的每个操作都应该在其自己的合格机床上操作。Constraints (4) and (5) guarantee that each operation of each job should operate on its own qualified machine tool.
约束(6)和(7)指定用于作业操作的机床。Constraints (6) and (7) specify the machine tool used for the job operation.
约束(8)和(9)是考虑机床之间的传输时间和机床上的作业之间的设置时间的逻辑优先约束。Constraints (8) and (9) are logical priority constraints that take into account transfer times between machines and setup times between jobs on the machines.
约束(10)-(17)强制每台机床一次仅处理一个操作。Constraints (10)-(17) enforce that each machine only processes one operation at a time.
约束(18)定义了完成时间。约束(19)定义决策变量的值。Constraint (18) defines the completion time. Constraints (19) define the values of the decision variables.
元启发式算法知识融合Metaheuristic Algorithm Knowledge Fusion
为了提高算法的性能,本申请实施例采用元启发式算法知识融合,即在ICA中嵌入EDA和SA,形成HICA。图2显示了算法的框架。In order to improve the performance of the algorithm, the embodiment of the present application adopts meta-heuristic algorithm knowledge fusion, that is, embedding EDA and SA in ICA to form HICA. Figure 2 shows the framework of the algorithm.
与其他算法相比,ICA具有收敛速度快、收敛精度高、全局收敛性强等优点,因此选择ICA作为骨干算法。通过赋予搜索过程一个最终趋于零的时变概率跳跃,模拟退火算法可以有效地避免陷入局部最优算法。EDA采用基于搜索空间的宏观进化方法,具有较强的全局搜索能力。因此,在ICA的同化策略之后,嵌入SA和EDA来改进优劣解。最后,通过大规模随机生成的基准实例集对该算法进行了评估,结果表明该算法比其他算法更有效地解决了所考虑的问题。Compared with other algorithms, ICA has the advantages of fast convergence speed, high convergence accuracy, and strong global convergence, so ICA is selected as the backbone algorithm. By giving the search process a time-varying probability jump that eventually tends to zero, the simulated annealing algorithm can effectively avoid falling into a local optimal algorithm. EDA adopts the macro-evolution method based on search space and has strong global search ability. Therefore, after the assimilation strategy of ICA, SA and EDA are embedded to improve the superior and inferior solutions. Finally, the algorithm is evaluated on a large-scale randomly generated set of benchmark instances, and the results show that the algorithm solves the considered problem more efficiently than other algorithms.
帝国竞争算法的融合:Convergence of Empire Competitive Algorithms:
ICA是一种受帝国竞争行为启发的新型智能优化算法,属于基于种群的随机优化搜索算法。ICA将国家划分为称为帝国主义国家和殖民地。每个帝国中带有更短完工时间的国家被称为帝国主义国家,其余的国家被称为殖民地。ICA is a new type of intelligent optimization algorithm inspired by the competitive behavior of empires, which belongs to the population-based random optimization search algorithm. The ICA divides the country into what are called imperialist countries and colonies. The countries with the shorter completion times in each empire are called imperialist countries, and the rest are called colonies.
编码方案:Coding Scheme:
本申请实施例使用的编码方案,其在整个迭代过程中花费较少的时间。编码方案由两部分组成,第一部分是机床选择(MS),第二部分是操作顺序(OS)图3,MS部分根据作业的操作随机选择一个可用的机床,并将可用的机床编号存储到MS数组中。对于操作系统部分,作业号存储在操作系统数组中。在第一部分中,本申请实施例使用局部选择策略。第二部分,随机确定操作顺序。The coding scheme used in the embodiments of the present application takes less time in the entire iterative process. The coding scheme consists of two parts, the first part is machine tool selection (MS), and the second part is operation sequence (OS). in the array. For the OS part, the job number is stored in the OS array. In the first part, the embodiments of the present application use a local selection strategy. In the second part, the order of operations is randomly determined.
帝国的初始化Initialization of the Empire
在算法中,工期较短的国家被称为帝国主义,其余的是依附于帝国主义的殖民地。国家大小(pop)包括几个帝国主义国家(Nim)及其殖民地(Ncol)。In the algorithm, countries with shorter durations are called imperialists, and the rest are colonies attached to imperialism. Country size (pop) includes several imperialist countries (Nim) and their colonies (Ncol).
POP=Nim+Ncol.POP=Nim+Ncol.
每个帝国的殖民地数量用Ncx表示,而x=1,2,...,Nim。The number of colonies per empire is denoted by Ncx, and x = 1, 2, ..., Nim.
通过轮盘赌选择过程,计算帝国主义国家的力量。Through the roulette selection process, calculate the power of imperialist countries.
根据每个帝国主义国家的力量,来计算其获得的殖民地的大小。Calculate the size of the colonies acquired by each imperialist country based on its strength.
突变操作:Mutation operation:
突变是帝国主义国家为减少重复、增加多样性而采取的一种策略。不同的个体可能有不同的突变概率。突变的概率公式如下。Mutation is a strategy adopted by imperialist countries to reduce duplication and increase diversity. Different individuals may have different mutation probabilities. The probability formula for mutation is as follows.
其中η表示个体的变异概率,F表示个体的适应度,Favg表示平均个体的适应度,Fmin表示最差的个体的适应度。个体适应度越好,变异概率越大,这就扩大了个体搜索空间,避免了早熟收敛,较差的个体发生变异的概率较低,通过变异可以获得较好的个体。where η is the mutation probability of the individual, F is the fitness of the individual, Favg is the fitness of the average individual, and Fmin is the fitness of the worst individual. The better the individual fitness, the greater the mutation probability, which expands the individual search space and avoids premature convergence. The probability of mutation of poor individuals is lower, and better individuals can be obtained through mutation.
在变异过程中,对于MS部分,通过随机更换可用机床来实现。对于操作系统部分,使用交换操作来实现。突变过程如图4(a)-图4(b)所示。During the mutation process, for the MS part, this is achieved by randomly replacing the available machine tools. For the operating system part, it is implemented using the swap operation. The mutation process is shown in Fig. 4(a)-Fig. 4(b).
同化策略的多样化操作Diversification of assimilation strategies
同化策略产生一个新的解决方案,通常以相同的方式实现。在本申请实施例中,本申请实施例运用了同化策略的多样化操作。对于帝国1,本申请实施例随机选择一个策略:首先选择帝国1中的所有殖民地进行同化;其次是随机选择帝国1中的殖民地进行同化策略。对于帝国x的其他殖民地,可以通过向任何其他帝国主义国家学习来进行同化。The assimilation strategy produces a new solution, usually implemented in the same way. In the embodiment of the present application, the embodiment of the present application uses the diversification operation of the assimilation strategy. For
在同化过程中,对于MS部分,使用两点交叉随机选择帝国主义国家的两个点,两点之间的元素插入到新殖民地的相应位置,其余的插入到旧殖民地元素中。OS部分采用POX交叉,随机选择作业,从帝国主义国家中选择的作业被插入到新殖民地中,而剩余的作业根据旧殖民地的位置被插入到新殖民地中(见图5(a)-图5(b))。During the assimilation process, for the MS part, two points of the imperialist country are randomly selected using a two-point crossover, the elements between the two points are inserted into the corresponding positions of the new colony, and the rest are inserted into the old colony elements. The OS part adopts POX crossover, jobs are randomly selected, the jobs selected from the imperialist countries are inserted into the new colonies, while the remaining jobs are inserted into the new colonies according to the positions of the old colonies (see Fig. 5(a)-Fig. 5 (b)).
同化后,对知识融合元启发式对生成的解进行改进,即好的殖民地通过SA策略改进,差的殖民地通过EDA的全局搜索改进,其中α和β分别表示通过SA和EDA改进的殖民地比例。After assimilation, the knowledge fusion meta-heuristic is used to improve the generated solution, namely Good colonies are improved by SA strategies, Poor colonies were improved by a global search of EDA, where α and β denote the proportion of colonies improved by SA and EDA, respectively.
帝国入侵Imperial Invasion
为了获取更强大的权利,一些帝国可能会出现帝国入侵的现象,即侵略者随意占领其他帝国的殖民地,以改变帝国的权利。帝国入侵过程如图6所示。In order to gain stronger power, some empires may experience the phenomenon of imperial invasion, that is, invaders occupy the colonies of other empires at will to change the power of the empire. The imperial invasion process is shown in Figure 6.
帝国的更新和毁灭Renewal and Destruction of Empires
首先,在每个帝国中,殖民地可能比他们的帝国主义国家获得更多的权利,在他们的统治下,最强大的殖民地变成了新的帝国主义国家。旧帝国主义国家统治下的殖民地被划归新帝国主义国家所有。旧帝国主义国家也变成了新帝国主义国家的殖民地。然后,通过实施EDA战略更新最坏的帝国的殖民地。First, in each empire, colonies may gain more rights than their imperialist states, and under their rule the most powerful colonies become new imperialist states. Colonies under the rule of the old imperialist countries were placed under the ownership of the new imperialist countries. The old imperialist countries have also become colonies of the new imperialist countries. Then, update the colonies of the worst empires by implementing EDA strategies.
在帝国中,帝国主义统治下的殖民地已不复存在。实施帝国灭亡战略,帝国主义将被分配到其他帝国成为殖民地。In the empire, the colonies under imperialism no longer exist. Implement the strategy of empire demise and imperialism will be assigned to other empires to become colonies.
模拟退火算法从较高的初始温度(T)开始,随着温度参数的不断降低,结合温度达到终止温度(ΔΤ)时的概率跳跃特性,在解空间中随机寻找目标函数的全局最优解。The simulated annealing algorithm starts from a higher initial temperature (T), and with the continuous decrease of the temperature parameter, combined with the probability jump characteristic when the temperature reaches the termination temperature (ΔΤ), it randomly finds the global optimal solution of the objective function in the solution space.
通过随机选择四种邻域结构的两种邻域结构来生成新解,并计算新解与当前最优解之间的适应度。如果新解较好,则接受新解,否则按一定比例接受新解,退火率与次优解的接受概率有显著关系,直接影响SA的速度和精度。当温度回落到指定温度时终止。一般而言,退火率函数如下A new solution is generated by randomly selecting two neighborhood structures of the four neighborhood structures, and the fitness between the new solution and the current optimal solution is calculated. If the new solution is better, accept the new solution, otherwise accept the new solution according to a certain proportion, the annealing rate has a significant relationship with the acceptance probability of the suboptimal solution, which directly affects the speed and accuracy of SA. Terminate when the temperature falls back to the specified temperature. In general, the annealing rate function is as follows
T(λ)=δ×T(λ-1)T(λ)=δ×T(λ-1)
其中δ∈(0,1)是退火率系数。和T(λ-1)T(λ)分别是当前退火温度和先前退火温度;λ是迭代次数。where δ∈(0,1) is the annealing rate coefficient. and T(λ-1)T(λ) are the current annealing temperature and the previous annealing temperature, respectively; λ is the number of iterations.
邻域结构neighborhood structure
下面描述邻域结构N1、N2、N3、N4。邻域结构N1通过替换随机选择的MS部分的位置元素来完成。邻域结构N2作用于OS部分,OS部分是选择两个作业号并以随机方式交换它们。邻域结构N3是通过随机选择两个位置R1和R2来完成的,其中r1<r2,在MS部分中r1之前的位置r2处插入元素。邻域结构N4通过在OS部分上执行一个交换结构两次来生成新的解决方案(图7(a)-图7(d))。The neighborhood structures N1, N2, N3, N4 are described below. Neighborhood structure N1 is completed by replacing randomly selected position elements of MS parts. Neighborhood structure N2 acts on the OS part, which selects two job numbers and swaps them in a random fashion. Neighborhood structure N3 is accomplished by randomly selecting two positions R1 and R2, where r 1 < r 2 , inserting an element at position r 2 before r 1 in the MS part. Neighborhood fabric N4 generates new solutions by executing a switch fabric twice on the OS part (Fig. 7(a)-Fig. 7(d)).
分布估计算法的融合Fusion of distribution estimation algorithms
EDA是进化计算领域中一种相对较新的范式,它利用统计信息建立最有希望区域的概率模型,然后利用该概率模型对新的个体进行采样并生成新的个体。同时,利用新群体的潜在个体在每一代中更新概率模型。根据概率模型对EDA进行抽样。因此,概率模型对EDA的性能有很大影响。EDA is a relatively new paradigm in the field of evolutionary computing that uses statistical information to build a probabilistic model of the most promising regions, which is then used to sample and generate new individuals. At the same time, the probability model is updated in each generation with potential individuals of the new population. EDA is sampled according to a probabilistic model. Therefore, the probabilistic model has a great influence on the performance of EDA.
本申请实施例针对MS部分和OS部分设计了两个概率矩阵P1和P2。MS部分的概率矩阵P1的元素Mj,q,I(L)表示在L代中在机床k上处理操作Oj,q的概率。mj,q表示作业j的第q次操作的可用机床数组。概率矩阵P1初始化如下:In this embodiment of the present application, two probability matrices P1 and P2 are designed for the MS part and the OS part. The element M j,q,I (L) of the probability matrix P1 of the MS part represents the probability of processing the operation O j,q on the machine k in the L generation. m j,q represents the available machine tool array for the qth operation of job j. The probability matrix P1 is initialized as follows:
OS概率矩阵P2的元素Hj,f(L)表示作业j在第L代中出现在OS矩阵的位置f处的概率。Q表示OS部分中所有操作的总数。将概率矩阵P2初始化为Hj,f(0)=1/q,保证了整个解空间的均匀采样。然后,通过下列公式来更新概率矩阵P1和P2。The element H j,f (L) of the OS probability matrix P2 represents the probability of job j appearing at position f of the OS matrix in the Lth generation. Q represents the total number of all operations in the OS section. Initializing the probability matrix P2 to H j,f (0)=1/q ensures uniform sampling of the entire solution space. Then, the probability matrices P1 and P2 are updated by the following formulas.
Mj,q,i(L+1)=(1-θ)Mj,q,i(L)M j,q,i (L+1)=(1-θ)M j,q,i (L)
Hj,f(L+1)=(1-τ)Hj,f(L)H j,f (L+1)=(1-τ)H j,f (L)
其中θ,τ∈(0,1)分别是P1和P2的学习率.where θ, τ∈(0, 1) are the learning rates of P1 and P2, respectively.
通过概率模型P1和P2进行采样以生成新的个体。Sampling through probabilistic models P1 and P2 to generate new individuals.
实验分析experiment analysis
为了测试所提出的HICA算法的性能,本申请实施例模拟了调度过程。所有的数值实验都是在运行Windows7的3.3GHz处理器和4GB内存的Lenovo PC上进行的。FJSP方法是用C++编写的,以提高速度和鲁棒性。In order to test the performance of the proposed HICA algorithm, the embodiment of the present application simulates the scheduling process. All numerical experiments are performed on a Lenovo PC running Windows 7 with a 3.3GHz processor and 4GB of memory. The FJSP method is written in C++ for speed and robustness.
该算法有四个重要参数:国家大小POP、帝国主义与国家Nim/POP的比例、通过SA改进的好殖民地的比例α和通过EDA改进的坏殖民地的比例β。为了研究这些参数对HICA性能的影响,引入了田口方法,并利用该方法构造了正交表L16。The algorithm has four important parameters: country size POP, the ratio of imperialism to country Nim/POP, the proportion of good colonies improved by SA, α, and the proportion of bad colonies improved by EDA. In order to study the influence of these parameters on the performance of HICA, Taguchi method was introduced, and the orthogonal table L 16 was constructed by this method.
然后针对每个参数组合,分别独立运行30次,收集算法的平均适应值作为响应变量。表1列出了各参数的水平。最后,根据得到的数据绘制了四个参数的因子水平趋势图。如图8(a)-图8(d)所示,当POP在级别2、Nim/POP在级别1、α在级别2、β在级别1时,所提出的算法获得最佳性能。Then for each parameter combination, run 30 times independently, and collect the average fitness value of the algorithm as the response variable. Table 1 lists the levels of each parameter. Finally, factor level trend graphs for the four parameters are plotted based on the obtained data. As shown in Fig. 8(a)-Fig. 8(d), the proposed algorithm achieves the best performance when POP is at
表1:关键参数级别Table 1: Key parameter levels
为了评估所建议的优化模型,本申请实施例使用精确求解器IBM ILOGCPLEX12.7.1来计算提出的MIP模型。精度求解器的设置配置如下:最大线程数为3,时间限制为3h。HICA由于能够在可接受的时间内获得满意的解,所以采用最大CPU时间30s作为停止标准。然后随机生成18个小规模实例:作业数n∈{2,3,4,5},机床数m∈{2,3},操作数q∈{2,3,4}。To evaluate the proposed optimization model, the present embodiments use the exact solver IBM ILOGCPLEX 12.7.1 to compute the proposed MIP model. The settings for the precision solver are configured as follows: the maximum number of threads is 3 and the time limit is 3h. Since HICA can obtain a satisfactory solution within an acceptable time, the maximum CPU time of 30s is used as the stopping criterion. Then 18 small-scale instances are randomly generated: the number of jobs n ∈ {2, 3, 4, 5}, the number of machines m ∈ {2, 3}, and the number of operands q ∈ {2, 3, 4}.
表2.CPLEX和HICA的偏差值比较Table 2. Comparison of deviation values for CPLEX and HICA
表2给出了所提出的算法与CPLEX求解器之间的比较结果。第一列表示实例名字,第二列提供算法的比例大小(其中X-Y-Z分别表示X个作业、Y个操作和Z个机床),第三列包含每个实例的最佳值。HICA和CPLEX的第四列和第五列提供了每个实例的目标值。第六列和第七列表示这两种算法的均方差。Table 2 presents the comparison results between the proposed algorithm and the CPLEX solver. The first column represents the instance name, the second column provides the scaled size of the algorithm (where X-Y-Z represent X jobs, Y operations, and Z machines, respectively), and the third column contains the best value for each instance. The fourth and fifth columns of HICA and CPLEX provide the target value for each instance. The sixth and seventh columns represent the mean square error of the two algorithms.
从表2可以看到以下观察结果。(1)对于给定的18个实例,所提出的算法比CPLEX求解器获得了更高质量的解。(2)CPLEX不能更好地解决大规模问题。From Table 2 the following observations can be seen. (1) For the given 18 instances, the proposed algorithm obtains higher quality solutions than the CPLEX solver. (2) CPLEX cannot better solve large-scale problems.
构建了HICA的三个变体,HICA1中的内容不包含SA策略,但其余内容仍与HICA一致。HICA2和HICA的不同之处在于从HICA中去除了EDA。除了帝国侵略战略外,HICA3与HICA有相似之处。参数已设置,运行环境与HICA相同。每个计算示例独立运行30次,结果如表3所示,实例名称在第一列,实例的规模大小在第二列(其中X×Y分别表示X个作业、Y个机床)。第三列中包括实例的最好值。随后的四列分别描述从四种算法收集的目标值。由四个比较的算法获得的均方差分别列在最后四列中。Three variants of HICA are constructed, the content in HICA1 does not contain the SA policy, but the rest of the content is still consistent with HICA. The difference between HICA2 and HICA is the removal of EDA from HICA. HICA3 shares similarities with HICA, except for the imperial aggression strategy. The parameters have been set, and the operating environment is the same as HICA. Each calculation example is run independently for 30 times. The results are shown in Table 3. The instance name is in the first column, and the scale of the instance is in the second column (where X×Y represents X jobs and Y machine tools, respectively). The third column contains the best value for the instance. The next four columns describe the target values collected from the four algorithms, respectively. The mean square errors obtained by the four compared algorithms are listed in the last four columns, respectively.
表3.HICA和HICA的三种变体的dev值的比较Table 3. Comparison of dev values of HICA and three variants of HICA
从表3中,本申请实施例观察到以下几点,(1)对于具有不同问题规模的35个实例,HICA获得了29个较好的结果,优于所有其他实例。(2)表中最后一行表明,HICA的平均值为0.004,优于其他算法。From Table 3, the following points are observed for the examples of the present application, (1) For 35 examples with different problem sizes, HICA obtains 29 better results, outperforming all other examples. (2) The last row in the table shows that the average value of HICA is 0.004, which is better than other algorithms.
为了确定结果比较是否有显著差异,本申请实施例进行了多因素方差分析(ANOVA)。本申请实施例将置信度设置为95%。当p-value<0.05时,算法之间的差异很大,从图9(a)-图9(d)中可以看出本申请实施例的战略是有效的。图10(a)-图10(d)显示了不同类型实例的收敛曲线,仿真结果表明HICA对于解决所研究的问题具有有效的收敛能力。In order to determine whether there is a significant difference in the comparison of the results, a multivariate analysis of variance (ANOVA) was performed in the examples of the present application. In this embodiment of the present application, the confidence level is set to 95%. When p-value<0.05, the difference between algorithms is large, and it can be seen from Fig. 9(a)-Fig. 9(d) that the strategy of the embodiment of the present application is effective. Fig. 10(a)-Fig. 10(d) show the convergence curves of different types of instances, and the simulation results show that HICA has an effective convergence ability for solving the studied problem.
为了进一步评估所提算法的性能,本申请实施例将HICA与其他当前流行的算法进行了比较,包括ICA、改进的GA(IGA)、EDA和AIA。本申请实施例对这五种算法进行了编码,并在相同的环境中运行了每一种算法。实例运行30次迭代到数千次迭代,并且所有比较算法都使用相同的停止标准。表4显示了各种算法的平均性能比较。To further evaluate the performance of the proposed algorithm, the present embodiment compares HICA with other currently popular algorithms, including ICA, Improved GA (IGA), EDA, and AIA. The embodiments of the present application encode these five algorithms, and run each algorithm in the same environment. Examples run from 30 iterations to thousands of iterations, and all comparison algorithms use the same stopping criteria. Table 4 shows the average performance comparison of various algorithms.
表4.多种算法的比较Table 4. Comparison of various algorithms
从表4可以观察到以下几点。(i)对于给定的35个实例,HICA算法得到了32个最优解,次优算法ICA只获得了3个最优值,说明HICA算法优于所有其他算法。(ii)表4的最后一行表明,平均而言,建议的算法获得了0.002的值,与其他考虑的算法的结果相比要大得多。(iii)总体而言,HICA的性能明显好于其他四种算法。From Table 4, the following points can be observed. (i) For the given 35 instances, the HICA algorithm obtains 32 optimal solutions, and the suboptimal algorithm ICA obtains only 3 optimal values, indicating that the HICA algorithm is superior to all other algorithms. (ii) The last row of Table 4 shows that, on average, the proposed algorithm achieves a value of 0.002, which is much larger compared to the results of the other considered algorithms. (iii) Overall, HICA performs significantly better than the other four algorithms.
图11(a)-图11(c)给出了五种比较算法的最佳解、平均解和最差解的方差分析结果,从中本申请实施例可以得出结论,HICA在解决所研究的问题方面具有更好的性能。图11(a)-图11(c)显示了具有不同问题规模的实例的收敛过程。对于图12(a)-图12(d)中的每个实例,根据每个算法的运行时间,由30次运行的最佳解决方案收集收敛数据。图13显示了使用优化策略获得的解决方案的甘特图。通过考虑工件在机床之间的运输时间和工件之间的安装时间,所研究的问题更接近于实际情况。Fig. 11(a)-Fig. 11(c) show the variance analysis results of the best solution, the average solution and the worst solution of the five comparison algorithms, from which it can be concluded that HICA is in solving the researched problem. The problem aspect has better performance. Figure 11(a)-Figure 11(c) show the convergence process for instances with different problem sizes. For each instance in Fig. 12(a)-Fig. 12(d), convergence data was collected from the best solution of 30 runs according to the running time of each algorithm. Figure 13 shows the Gantt chart of the solution obtained using the optimization strategy. By considering the transport time of workpieces between machines and the installation time between workpieces, the studied problem is closer to the real situation.
根据前述部分的实验结果,新提出的HICA算法的性能比其他算法要好。According to the experimental results in the previous section, the performance of the newly proposed HICA algorithm is better than other algorithms.
主要原因可以归纳为:(I)在SA中使用了四个邻域结构来改进SA的解,使用SA防止了早熟收敛,收敛速度稳定可以获得更好的优化;ii)帝国入侵策略通过改变帝国的权利增加了解的多样性;iii)在EDA中使用了两个概率模型,EDA增强了算法的全局搜索能力。The main reasons can be summarized as: (I) four neighborhood structures are used in SA to improve the solution of SA, the use of SA prevents premature convergence, and the convergence speed is stable to obtain better optimization; ii) Empire invasion strategy by changing the empire The right to increase the diversity of understanding; iii) Two probabilistic models are used in EDA, which enhances the global search ability of the algorithm.
本发明提供了一种解决带传输和切换时间的柔性车间调度问题的元启发式知识融合方法。在知识融合元启发式算法的基础上,考虑具有运输时间和设置时间约束的FJSP问题,提出了一种混合帝国主义竞争算法HICA,其中帝国竞争算法(ICA)作为主干、模拟退火(SA)算法和分布估计算法(EDA)用来提高解的质量。目标是最小化最大完工时间。首先,每个解决方案由两部分组成,即机床选择和操作顺序,这两个部分包含不同的信息。然后,在ICA中采用了帝国入侵战略这一新战略来改变帝国的势力。构造了四个邻域结构来为SA创建新的解以改进优解,并在EDA中嵌入两个不同的概率模型来优化劣解。最后,利用田口方法对算法的算子和参数进行了标定。通过CPLEX对所采用的基于位置的数学模型进行了验证。通过大规模随机生成的基准实例集对该算法进行了测试,验证了该算法能够较好地解决所考虑的问题。The present invention provides a meta-heuristic knowledge fusion method for solving the flexible workshop scheduling problem with transmission and switching time. Based on the knowledge fusion meta-heuristic algorithm, considering the FJSP problem with transit time and setup time constraints, a hybrid imperialist competition algorithm HICA is proposed, in which the imperialist competition algorithm (ICA) is used as the backbone and the simulated annealing (SA) algorithm is used. And distribution estimation algorithm (EDA) is used to improve the quality of the solution. The goal is to minimize the maximum makepan. First, each solution consists of two parts, the machine selection and the sequence of operations, which contain different information. Then, a new strategy of Imperial Invasion was adopted in the ICA to change the power of the Empire. Four neighborhood structures are constructed to create new solutions for SA to improve the optimal solution, and two different probabilistic models are embedded in EDA to optimize the inferior solution. Finally, the operators and parameters of the algorithm are calibrated using Taguchi method. The adopted location-based mathematical model was validated by CPLEX. The algorithm is tested on a large-scale randomly generated benchmark instance set, and it is verified that the algorithm can solve the considered problems well.
实施例二
本实施例提供了带传输和切换时间的柔性作业车间调度系统;This embodiment provides a flexible job shop scheduling system with transmission and switching time;
带传输和切换时间的柔性作业车间调度系统,包括:Flexible job shop scheduling system with transfer and switching times, including:
获取模块,其被配置为:获取柔性作业车间的参数,所述参数包括:机床的数量、工件的数量、每个工件对应的加工工序、工件在机床上的加工时间、机床之间的传输时间和工件之间的切换时间;an acquisition module, which is configured to: acquire parameters of the flexible job shop, the parameters include: the number of machine tools, the number of workpieces, the processing procedure corresponding to each workpiece, the processing time of the workpiece on the machine tool, and the transmission time between the machine tools and the switching time between the workpiece;
模型构建模块,其被配置为:基于柔性作业车间的参数,构建柔性作业车间调度模型,所述柔性作业车间调度模型,包括:目标函数和约束条件;a model building module configured to: construct a flexible job shop scheduling model based on the parameters of the flexible job shop, the flexible job shop scheduling model including: an objective function and constraints;
输出模块,其被配置为:基于改进的帝国竞争算法,对柔性作业车间调度模型进行求解,求解过程中假设一个国家代表一组柔性作业车间调度问题的可行方案;求解最后输出柔性作业车间调度方案。The output module is configured to: solve the flexible job shop scheduling model based on the improved empire competition algorithm, assuming that a country represents a feasible scheme of the flexible job shop scheduling problem during the solving process; the solution finally outputs the flexible job shop scheduling scheme .
此处需要说明的是,上述获取模块、模型构建模块和输出模块对应于实施例一中的步骤S101至S103,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为系统的一部分可以在诸如一组计算机可执行指令的计算机系统中执行。It should be noted here that the above acquisition module, model building module and output module correspond to steps S101 to S103 in the first embodiment, and the above modules and corresponding steps have the same examples and application scenarios, but are not limited to the above embodiments a published content. It should be noted that the above modules may be executed in a computer system such as a set of computer-executable instructions as part of the system.
上述实施例中对各个实施例的描述各有侧重,某个实施例中没有详述的部分可以参见其他实施例的相关描述。The description of each embodiment in the foregoing embodiments has its own emphasis. For the part that is not described in detail in a certain embodiment, reference may be made to the relevant description of other embodiments.
所提出的系统,可以通过其他的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如上述模块的划分,仅仅为一种逻辑功能划分,实际实现时,可以有另外的划分方式,例如多个模块可以结合或者可以集成到另外一个系统,或一些特征可以忽略,或不执行。The proposed system can be implemented in other ways. For example, the system embodiments described above are only illustrative. For example, the division of the above modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into Another system, or some features can be ignored, or not implemented.
实施例三
本实施例还提供了一种电子设备,包括:一个或多个处理器、一个或多个存储器、以及一个或多个计算机程序;其中,处理器与存储器连接,上述一个或多个计算机程序被存储在存储器中,当电子设备运行时,该处理器执行该存储器存储的一个或多个计算机程序,以使电子设备执行上述实施例一所述的方法。This embodiment also provides an electronic device, including: one or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and the one or more computer programs are Stored in the memory, when the electronic device runs, the processor executes one or more computer programs stored in the memory, so that the electronic device executes the method described in the first embodiment.
实施例四
本实施例还提供了一种计算机可读存储介质,用于存储计算机指令,所述计算机指令被处理器执行时,完成实施例一所述的方法。This embodiment also provides a computer-readable storage medium for storing computer instructions, and when the computer instructions are executed by a processor, the method described in the first embodiment is completed.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010693386.4A CN112016801A (en) | 2020-07-17 | 2020-07-17 | Flexible job shop scheduling method and system with transfer and switching time |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010693386.4A CN112016801A (en) | 2020-07-17 | 2020-07-17 | Flexible job shop scheduling method and system with transfer and switching time |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN112016801A true CN112016801A (en) | 2020-12-01 |
Family
ID=73498998
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010693386.4A Pending CN112016801A (en) | 2020-07-17 | 2020-07-17 | Flexible job shop scheduling method and system with transfer and switching time |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112016801A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114519455A (en) * | 2022-01-11 | 2022-05-20 | 山东师范大学 | Distributed flexible workshop scheduling method and system with transportation process |
| CN116050782A (en) * | 2023-01-17 | 2023-05-02 | 山东科技大学 | Flexible job shop scheduling method based on orthogonal and fuzzy theory |
| CN117270486A (en) * | 2023-11-23 | 2023-12-22 | 聊城大学 | Modeling method for scheduling problem of flexible job shop in consideration of periodic maintenance |
| CN117555287A (en) * | 2024-01-12 | 2024-02-13 | 中国机械总院集团云南分院有限公司 | A CAE-based dynamic performance monitoring method and system for CNC machine tool processing |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080300705A1 (en) * | 2007-05-31 | 2008-12-04 | International Business Machines Corporation | Integration of job shop scheduling with discrete event simulation for manufacturing facilities |
| CN107479522A (en) * | 2017-09-22 | 2017-12-15 | 郑州航空工业管理学院 | The method that a kind of empire's Competitive Algorithms of improvement solve Flexible Job-shop Scheduling Problems |
| CN107590616A (en) * | 2017-09-22 | 2018-01-16 | 郑州航空工业管理学院 | Improved empire's Competitive Algorithms solve Flexible Job-shop Scheduling Problems |
| CN107609781A (en) * | 2017-09-22 | 2018-01-19 | 郑州航空工业管理学院 | A kind of flexible job shop scheduling method based on improvement empire Competitive Algorithms |
| CN108803519A (en) * | 2018-06-23 | 2018-11-13 | 郑州航空工业管理学院 | A kind of method that empire's Competitive Algorithms of improvement solve Flexible Job-shop Scheduling Problems |
| CN108876043A (en) * | 2018-06-23 | 2018-11-23 | 郑州航空工业管理学院 | A kind of flexible job shop scheduling method based on improvement empire's Competitive Algorithms |
| CN110619437A (en) * | 2019-09-20 | 2019-12-27 | 国网江苏省电力有限公司电力科学研究院 | Low-energy-consumption flexible job shop scheduling method |
| CN111401693A (en) * | 2020-02-25 | 2020-07-10 | 山东师范大学 | Flexible workshop scheduling optimization method and system with robot transportation |
-
2020
- 2020-07-17 CN CN202010693386.4A patent/CN112016801A/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080300705A1 (en) * | 2007-05-31 | 2008-12-04 | International Business Machines Corporation | Integration of job shop scheduling with discrete event simulation for manufacturing facilities |
| CN107479522A (en) * | 2017-09-22 | 2017-12-15 | 郑州航空工业管理学院 | The method that a kind of empire's Competitive Algorithms of improvement solve Flexible Job-shop Scheduling Problems |
| CN107590616A (en) * | 2017-09-22 | 2018-01-16 | 郑州航空工业管理学院 | Improved empire's Competitive Algorithms solve Flexible Job-shop Scheduling Problems |
| CN107609781A (en) * | 2017-09-22 | 2018-01-19 | 郑州航空工业管理学院 | A kind of flexible job shop scheduling method based on improvement empire Competitive Algorithms |
| CN108803519A (en) * | 2018-06-23 | 2018-11-13 | 郑州航空工业管理学院 | A kind of method that empire's Competitive Algorithms of improvement solve Flexible Job-shop Scheduling Problems |
| CN108876043A (en) * | 2018-06-23 | 2018-11-23 | 郑州航空工业管理学院 | A kind of flexible job shop scheduling method based on improvement empire's Competitive Algorithms |
| CN110619437A (en) * | 2019-09-20 | 2019-12-27 | 国网江苏省电力有限公司电力科学研究院 | Low-energy-consumption flexible job shop scheduling method |
| CN111401693A (en) * | 2020-02-25 | 2020-07-10 | 山东师范大学 | Flexible workshop scheduling optimization method and system with robot transportation |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114519455A (en) * | 2022-01-11 | 2022-05-20 | 山东师范大学 | Distributed flexible workshop scheduling method and system with transportation process |
| CN116050782A (en) * | 2023-01-17 | 2023-05-02 | 山东科技大学 | Flexible job shop scheduling method based on orthogonal and fuzzy theory |
| CN116050782B (en) * | 2023-01-17 | 2024-10-15 | 山东科技大学 | A flexible job shop scheduling method based on orthogonal and fuzzy theory |
| CN117270486A (en) * | 2023-11-23 | 2023-12-22 | 聊城大学 | Modeling method for scheduling problem of flexible job shop in consideration of periodic maintenance |
| CN117270486B (en) * | 2023-11-23 | 2024-02-06 | 聊城大学 | A modeling method for flexible job shop scheduling problems considering periodic maintenance |
| CN117555287A (en) * | 2024-01-12 | 2024-02-13 | 中国机械总院集团云南分院有限公司 | A CAE-based dynamic performance monitoring method and system for CNC machine tool processing |
| CN117555287B (en) * | 2024-01-12 | 2024-04-09 | 中国机械总院集团云南分院有限公司 | A method and system for monitoring dynamic performance of CNC machine tools based on CAE |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Yuan et al. | Research on intelligent workshop resource scheduling method based on improved NSGA-II algorithm | |
| CN110632907B (en) | A Distributed Assembly Displacement Flow Workshop Scheduling Optimization Method and System | |
| Tang et al. | Diversity-adaptive parallel memetic algorithm for solving large scale combinatorial optimization problems | |
| CN113034026B (en) | Q-learning and GA-based multi-target flexible job shop scheduling self-learning method | |
| CN112016801A (en) | Flexible job shop scheduling method and system with transfer and switching time | |
| Xing et al. | A knowledge-based ant colony optimization for flexible job shop scheduling problems | |
| Han et al. | Multi-objective migrating birds optimization algorithm for stochastic lot-streaming flow shop scheduling with blocking | |
| CN111325356A (en) | Neural network search distributed training system and training method based on evolutionary computation | |
| CN112907150A (en) | Production scheduling method based on genetic algorithm | |
| CN105629927A (en) | Hybrid genetic algorithm-based MES (Manufacturing Execution System) production planning and scheduling method | |
| CN111612252A (en) | Automatic location method, device and readable storage medium for large-scale emergency facilities | |
| CN114968531B (en) | Quantum cloud mixed task scheduling method and device based on multi-fitness genetic optimization | |
| CN106610867A (en) | Network-on-chip task scheduling method and device | |
| CN113406941A (en) | Self-adaptive dynamic scheduling method for open workshop of double-target parallel machine based on simulation | |
| CN118377272A (en) | Flow shop batch scheduling method based on improved hybrid genetic algorithm | |
| Wang et al. | A tree-based multiobjective evolutionary algorithm for energy-efficient hybrid flow-shop scheduling | |
| CN113011654A (en) | Remanufacturing scheduling method and device | |
| CN114528094B (en) | Distributed system resource optimization allocation method based on LSTM and genetic algorithm | |
| CN117153233A (en) | A method, device, equipment and storage medium for generating memory chip redundancy repair scheme based on genetic algorithm | |
| CN118153671B (en) | Fixed station satellite observation method, system, equipment and medium based on genetic algorithm | |
| CN118034206B (en) | Workshop scheduling optimization methods, devices, electronic equipment and storage media | |
| Wu et al. | An Improved Genetic‐Shuffled Frog‐Leaping Algorithm for Permutation Flowshop Scheduling | |
| CN113419854B (en) | A cloud resource scheduling method oriented to imbalanced multi-objective optimization | |
| CN117055481A (en) | Optimization method and system for scheduling problem of reentrant assembly flexible job shop | |
| CN112734286B (en) | Workshop scheduling method based on multi-strategy deep reinforcement learning |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201201 |
|
| RJ01 | Rejection of invention patent application after publication |