[go: up one dir, main page]

CN109491344A - Intelligent coordinated dispatching method and system towards airspace engine development process - Google Patents

Intelligent coordinated dispatching method and system towards airspace engine development process Download PDF

Info

Publication number
CN109491344A
CN109491344A CN201811514859.9A CN201811514859A CN109491344A CN 109491344 A CN109491344 A CN 109491344A CN 201811514859 A CN201811514859 A CN 201811514859A CN 109491344 A CN109491344 A CN 109491344A
Authority
CN
China
Prior art keywords
individual
workpiece
individuals
firefly population
population
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
CN201811514859.9A
Other languages
Chinese (zh)
Other versions
CN109491344B (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.)
Hefei University of Technology
Original Assignee
Hefei University of 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 Hefei University of Technology filed Critical Hefei University of Technology
Priority to CN201811514859.9A priority Critical patent/CN109491344B/en
Publication of CN109491344A publication Critical patent/CN109491344A/en
Application granted granted Critical
Publication of CN109491344B publication Critical patent/CN109491344B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/41865Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by job scheduling, process planning, material flow
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/32Operator till task planning
    • G05B2219/32015Optimize, process management, optimize production line
    • 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/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明提供一种面向航天发动机研制过程的智能协同调度方法,该方法包括:S100、设置算法参数;S200、根据各个工件的交货期,生成初始的萤火虫种群;S300、计算当前萤火虫种群中每一个体的适应度,并将适应度最低的个体作为第一个体,将所述第一个体对应的解作为本次迭代过程的最优解,并根据该最优解更新全局最优解;S400、判断当前迭代次数是否达到所述最大迭代次数:若是,则输出当前的全局最优解;否则,根据预设的个体更新策略,对当前萤火虫种群中每一个个体进行更新,得到更新后的萤火虫种群,并返回步骤S300。本发明能够提高航天发动机的制造装配效率。

The invention provides an intelligent collaborative scheduling method for the development process of an aerospace engine. The method includes: S100, setting algorithm parameters; S200, generating an initial firefly population according to the delivery date of each workpiece; S300, calculating each firefly population in the current firefly population. The fitness of an individual, the individual with the lowest fitness is taken as the first individual, the solution corresponding to the first individual is taken as the optimal solution of this iteration process, and the global optimal solution is updated according to the optimal solution S400, determine whether the current number of iterations reaches the maximum number of iterations: if so, output the current global optimal solution; otherwise, update each individual in the current firefly population according to the preset individual update strategy, and obtain the updated the firefly population, and return to step S300. The invention can improve the manufacturing and assembling efficiency of the aerospace engine.

Description

面向航天发动机研制过程的智能协同调度方法和系统Intelligent collaborative scheduling method and system for aerospace engine development process

技术领域technical field

本发明涉及工业调度技术领域,具体涉及一种面向航天发动机研制过程的智能协同调度方法、系统和存储介质。The invention relates to the technical field of industrial scheduling, in particular to an intelligent collaborative scheduling method, system and storage medium oriented to the development process of an aerospace engine.

背景技术Background technique

在航天、船舶、军事等领域,装备的制造工艺复杂,产业链长。在其研制过程中,普遍存在流水作业调度的生产工艺路线。其中航天发动机的生产工艺路线主要包括:合金材料锻造形成零部件,零部件装配和产品测试等多道生产制造工序。航天发动机的研制周期长、资金投入巨大,且是国之重器、航天装备的尖端,故优化航天发动机的研制过程,对国防的建设和提升综合国力具有重要的意义。In aerospace, shipbuilding, military and other fields, the manufacturing process of equipment is complex and the industrial chain is long. In the process of its development, there is a common production process route of assembly line scheduling. Among them, the production process route of aerospace engine mainly includes: alloy material forging to form parts, parts assembly and product testing and other manufacturing processes. The development cycle of aerospace engines is long, the capital investment is huge, and they are the most important weapons of the country and the cutting-edge of aerospace equipment. Therefore, optimizing the development process of aerospace engines is of great significance to the construction of national defense and the improvement of comprehensive national strength.

发明内容SUMMARY OF THE INVENTION

(一)解决的技术问题(1) Technical problems solved

本发明提供了一种面向航天发动机研制过程的智能协同调度方法、系统和存储介质,能够提高航天发动机的制造装配效率。The invention provides an intelligent collaborative scheduling method, system and storage medium oriented to the development process of an aerospace engine, which can improve the manufacturing and assembling efficiency of the aerospace engine.

(二)技术方案(2) Technical solutions

为实现以上目的,本发明通过以下技术方案予以实现:To achieve the above purpose, the present invention is achieved through the following technical solutions:

第一方面,本发明提供一种面向航天发动机研制过程的智能协同调度方法,包括:In a first aspect, the present invention provides an intelligent collaborative scheduling method for the development process of aerospace engines, including:

S100、设置算法参数;所述算法参数至少包括航天发动机制造装配中所需工件的数量、所需工序的道数、每道工序上机器的数量、每一工件的交货期、最大迭代次数和萤火虫种群中的个体数量;S100. Set algorithm parameters; the algorithm parameters include at least the number of workpieces required in the aerospace engine manufacturing and assembly, the number of required processes, the number of machines in each process, the delivery date of each workpiece, the maximum number of iterations, and the number of individuals in a firefly population;

S200、根据各个工件的交货期,生成初始的萤火虫种群;所述萤火虫种群中的每一个个体对应一个解,每一个解包括各个工件分别在各道工序上进行处理的机器;S200, generating an initial firefly population according to the delivery date of each workpiece; each individual in the firefly population corresponds to a solution, and each solution includes a machine for processing each workpiece in each process;

S300、计算当前萤火虫种群中每一个体的适应度,并将适应度最低的个体作为第一个体,将所述第一个体对应的解作为本次迭代过程的最优解,并根据该最优解更新全局最优解;S300. Calculate the fitness of each individual in the current firefly population, take the individual with the lowest fitness as the first individual, and take the solution corresponding to the first individual as the optimal solution of this iterative process, and according to the The optimal solution updates the global optimal solution;

S400、判断当前迭代次数是否达到所述最大迭代次数:S400. Determine whether the current number of iterations reaches the maximum number of iterations:

若是,则输出当前的全局最优解;If so, output the current global optimal solution;

否则,根据预设的个体更新策略,对当前萤火虫种群中每一个个体进行更新,得到更新后的萤火虫种群,并返回步骤S300。Otherwise, according to the preset individual update strategy, update each individual in the current firefly population to obtain an updated firefly population, and return to step S300.

第二方面,本发明提供一种面向航天发动机研制过程的智能协同调度系统,包括:In the second aspect, the present invention provides an intelligent collaborative scheduling system for the development process of aerospace engines, including:

参数设置模块,用于执行S100、设置算法参数;所述算法参数至少包括航天发动机制造装配中所需工件的数量、所需工序的道数、每道工序上机器的数量、每一工件的交货期、最大迭代次数和萤火虫种群中的个体数量;The parameter setting module is used for executing S100 and setting algorithm parameters; the algorithm parameters include at least the number of workpieces required in the aerospace engine manufacturing and assembly, the number of required processes, the number of machines in each process, and the handover of each workpiece. Delivery period, maximum number of iterations and the number of individuals in the firefly population;

种群生成模块,用于执行S200、根据各个工件的交货期,生成初始的萤火虫种群;所述萤火虫种群中的每一个个体对应一个解,每一个解包括各个工件分别在各道工序上进行处理的机器;The population generation module is used to execute S200, and generate an initial firefly population according to the delivery date of each workpiece; each individual in the firefly population corresponds to a solution, and each solution includes each workpiece to be processed on each process respectively the machine;

最优解计算模块,用于执行S300、计算当前萤火虫种群中每一个体的适应度,并将适应度最低的个体作为第一个体,将所述第一个体对应的解作为本次迭代过程的最优解,并根据该最优解更新全局最优解;The optimal solution calculation module is used for executing S300, calculating the fitness of each individual in the current firefly population, and taking the individual with the lowest fitness as the first individual, and taking the solution corresponding to the first individual as this iteration The optimal solution of the process, and update the global optimal solution according to the optimal solution;

次数判断模块,用于执行S400、判断当前迭代次数是否达到所述最大迭代次数:若是,则输出当前的全局最优解;否则,根据预设的个体更新策略,对当前萤火虫种群中每一个个体进行更新,得到更新后的萤火虫种群,并返回所述最优解计算模块中执行步骤S300。The number of times judgment module is used to execute S400, and judge whether the current number of iterations reaches the maximum number of iterations: if so, output the current global optimal solution; otherwise, according to the preset individual update strategy, each individual in the current firefly population is Perform the update to obtain the updated firefly population, and return to the optimal solution calculation module to execute step S300.

第三方面,本发明提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时可实现以上机器调度方法。In a third aspect, the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above machine scheduling method can be implemented.

(三)有益效果(3) Beneficial effects

本发明提供的方法、系统和存储介质,实际上是针对航天高端装备研制过程的flow shop问题,首先在考虑交货期的基础上生成初始的萤火虫种群,然后选择出适应度值最低的个体作为第一个体,再对种群中的个体进行更新,经过多次迭代过程,使得第一个体逐渐接近解决调度问题的最优解,进而将其作为全局最优解输出,本发明使得在生产其高端装备的过程中能最大限度上充分利用其生产资源,降低生产成本,提高制造装配效率,并提高装备制造管理水平和制造能力。本发明采用的是改进的萤火虫算法,该算法在收敛速度和搜索的解质量方面表现出了良好的性能,解决了多机情形下的flow shop调度问题,提升装备制造企业的装备制造生产管理水平。The method, system and storage medium provided by the present invention are actually aimed at the flow shop problem in the development process of aerospace high-end equipment. First, the initial firefly population is generated on the basis of considering the delivery time, and then the individual with the lowest fitness value is selected as the The first individual, and then update the individuals in the population. After several iterations, the first individual gradually approaches the optimal solution for solving the scheduling problem, and then outputs it as the global optimal solution. In the process of its high-end equipment, it can make full use of its production resources, reduce production costs, improve manufacturing and assembly efficiency, and improve equipment manufacturing management level and manufacturing capacity. The invention adopts the improved firefly algorithm, which shows good performance in terms of convergence speed and search solution quality, solves the problem of flow shop scheduling in the case of multiple machines, and improves the equipment manufacturing production management level of equipment manufacturing enterprises .

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1示出了本发明一实施例中面向航天发动机研制过程的智能协同调度方法的流程示意图。FIG. 1 shows a schematic flowchart of an intelligent collaborative scheduling method for an aerospace engine development process in an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

第一方面,本发明提供一种面向航天发动机研制过程的智能协同调度方法,该机器调度方法包括:In a first aspect, the present invention provides an intelligent collaborative scheduling method for the development process of an aerospace engine. The machine scheduling method includes:

S100、设置算法参数;所述算法参数至少包括航天发动机制造装配中所需工件的数量n、所需工序的道数O、每道工序上机器的数量M、每一工件的交货期、最大迭代次数Imax和萤火虫种群中的个体数量Q;S100. Set algorithm parameters; the algorithm parameters include at least the number n of workpieces required in the aerospace engine manufacturing and assembly, the number of required processes O, the number M of machines in each process, the delivery date of each workpiece, the maximum The number of iterations I max and the number of individuals in the firefly population Q;

当然,还会设置当前迭代次数I=1、预设的欧式距离等。Of course, the current iteration number I=1, the preset Euclidean distance, etc. are also set.

S200、根据各个工件的交货期,生成初始的萤火虫种群;所述萤火虫种群中的每一个个体对应一个解,每一个解包括各个工件分别在各道工序上进行处理的机器;S200, generating an initial firefly population according to the delivery date of each workpiece; each individual in the firefly population corresponds to a solution, and each solution includes a machine for processing each workpiece in each process;

可理解的是,由于每一次迭代过程都会对萤火虫种群进行更新,因此第I个迭代过程对应第I代萤火虫种群。It is understandable that, since the firefly population is updated in each iteration process, the I-th iteration process corresponds to the I-generation firefly population.

举例来说,第I代萤火虫种群的第j个个体对应一个解,一个解即一种机器调度方案,具体可以表示为:For example, the jth individual of the first generation firefly population corresponds to a solution, and a solution is a machine scheduling scheme, which can be expressed as:

其中,1≤I≤Imax,j=1,2,...,Q,i=1,2,...,n,o=1,2,...,O。Wherein, 1≤I≤Imax , j=1,2,...,Q, i=1,2,...,n, o=1,2,...,O.

其中,表示第I代萤火虫种群的第j个个体XIj中第i个工件在第o道工序上处理的加工机器。in, Represents the processing machine of the i-th workpiece in the j-th individual X Ij of the first-generation firefly population processed on the o-th process.

在实际应用中,生成初始的萤火虫种群的过程可以包括:In practical applications, the process of generating an initial firefly population can include:

S201、将所有工件按照交货期非递减的方式进行排序,得到工件集合;S201. Sort all the workpieces in a non-decreasing manner of delivery time to obtain a collection of workpieces;

可理解的是,在排序后,工件集合中排在前面的工件的交货期较早,而排在后面的工件的交货期较晚。It can be understood that, after the sorting, the delivery date of the workpieces in the front row in the workpiece set is earlier, and the delivery date of the workpieces in the back row is later.

S202、按照排列顺序逐个对所述工件集合中的各个工件进行机器分配,得到一个个体;S202, perform machine allocation to each workpiece in the workpiece collection one by one according to the arrangement order to obtain an individual;

具体分配过程包括:将每一个工件在每一道工序分配到对应的机器上,若存在多个处于空闲状态的机器,则分配到处理速度最快的空闲机器上。当然,如果所有机器都处于处理状态,则可以将工件分配到已接收待处理工件的数量最少的机器上,但如果待处理工件的数量相同,则选择处理速度最快的机器进行加工该工件。The specific allocation process includes: allocating each workpiece to the corresponding machine in each process, and if there are multiple idle machines, it is allocated to the idle machine with the fastest processing speed. Of course, if all machines are in processing, the workpiece can be assigned to the machine that has received the least number of workpieces to be processed, but if the number of pending workpieces is the same, the machine with the fastest processing speed is selected to process the workpiece.

可理解的是,按照排列顺序对工件集合中的工件逐个分配机器,是先对交货期较早的工件分配机器,后对交货期较晚的工件分配交货期,可见在生成初始种群时考虑了交货期这个因素,进而在初始种群中选择出的第一个体也比较符合实际情况。It is understandable that the machines are allocated to the workpieces in the workpiece collection one by one according to the arrangement order. The machines are allocated to the workpieces with earlier delivery dates first, and then the delivery dates are allocated to the workpieces with later delivery dates. It can be seen that the initial population is generated. When considering the delivery time factor, the first individual selected in the initial population is more in line with the actual situation.

例如,当为第i个工件分配第o道工序的机器时,此时在第o道工序上的M个机器上有a个机器是空闲的,这a台机器包括新机器和旧机器,新机器的处理速度比较快,旧机器的处理速度较慢,此时可以为第i个工件分配第o道工序中空闲机器中的新机器。For example, when the machine of the oth operation is allocated to the ith workpiece, there is a machine among the M machines in the oth operation that is idle at this time, and this a machine includes the new machine and the old machine, the new machine The processing speed of the machine is relatively fast, and the processing speed of the old machine is slow. At this time, the i-th workpiece can be assigned a new machine among the idle machines in the o-th operation.

S203、随机生成Q-1个个体;Q为种群中个体的数量。S203, randomly generate Q-1 individuals; Q is the number of individuals in the population.

这里,采用启发的方式生成萤火虫种群中的一个个体,其余个体随机生成,这样可以提高初始的萤火虫种群的质量,进而选择出质量好的第一个体。Here, an individual in the firefly population is generated in a heuristic manner, and the other individuals are randomly generated, which can improve the quality of the initial firefly population, and then select the first individual with good quality.

可理解的是,每道工序中的M台机器的功能均相同,即加工处理效果相同,并且在同一时刻最多只能处理一个工件。It is understandable that the functions of the M machines in each process are the same, that is, the processing effect is the same, and at most one workpiece can be processed at the same time.

S300、计算当前萤火虫种群中每一个体的适应度,并将适应度最低的个体作为第一个体,并将所述第一个体对应的解作为本次迭代过程的最优解,并根据该最优解更新全局最优解;S300: Calculate the fitness of each individual in the current firefly population, take the individual with the lowest fitness as the first individual, and take the solution corresponding to the first individual as the optimal solution of this iteration process, and according to The optimal solution updates the global optimal solution;

其中,第一个体为当前萤火虫种群中质量最好的个体,可以作为本次迭代过程的最优解。Among them, the first individual is the individual with the best quality in the current firefly population, which can be used as the optimal solution of this iteration process.

在实际应用中,种群中每一个体的适应度值的计算过程可以包括:In practical applications, the calculation process of the fitness value of each individual in the population may include:

S301、对该个体对应的解进行可行性变换,以使该解的所有维度的值均处于[1,M]范围内,变换过程包括:判断该个体对应的解中每一位元素是否处于区间[1,M]范围内,若是,则该元素保持不变,否则把该元素取值为M;S301. Perform feasibility transformation on the solution corresponding to the individual, so that the values of all dimensions of the solution are in the range of [1, M], and the transformation process includes: judging whether each element in the solution corresponding to the individual is in the interval Within the range of [1, M], if so, the element remains unchanged, otherwise the element is set to be M;

可理解的是,向上取整,可以保证可行性变换后最优解的各维元素均为整数,而取整后超出[1,M],则在该范围内随机选择一个整数进行替换,这样可以保证最优解的所有维元素均在[1,M]范围内。这样处理的原因是在每一道工序上仅有M个机器,故每一维元素的值均在[1,M]范围内。It is understandable that rounding up can ensure that the elements of each dimension of the optimal solution after the feasibility transformation are integers, and if the rounding exceeds [1, M], an integer is randomly selected within the range for replacement, so that All dimension elements of the optimal solution can be guaranteed to be in the range [1, M]. The reason for this is that there are only M machines in each process, so the value of each dimension element is in the range of [1, M].

S302、根据该个体对应的解,确定在各道工序上各个机器各自所处理的工件,并计算最后一道工序上各个机器分别进行工件处理的最终完成时间,并将最后一道工序上各个机器分别进行工件处理的最终完成时间中的最大值作为航天发动机制造装配所需的时间;S302. Determine the workpieces processed by each machine in each process according to the solution corresponding to the individual, and calculate the final completion time for each machine in the last process to process the workpieces, respectively, and each machine in the last process. The maximum value of the final completion time of workpiece processing is taken as the time required for aerospace engine manufacturing and assembly;

例如,第o道工序上的第m个机器所处理工件的集合为将集合中的工件按其交货期非递减的方式进行排序,从而形成经过排序后的工件集合。若为空集,则把第o道工序上各个机器对应的各个集合中工件数量最多的集合中随机选择一个工件由第m个机器进行处理,从而减少第m个机器的空闲时间。For example, the set of workpieces processed by the mth machine on the oth operation is will be assembled The workpieces in are sorted according to their non-decreasing delivery time, thus forming a sorted set of workpieces. like If it is an empty set, randomly select a workpiece from the set with the largest number of workpieces in each set corresponding to each machine on the oth process to be processed by the mth machine, thereby reducing the idle time of the mth machine.

接着,表示第o道工序上的第m个机器所处理的第k个工件,若k=1,则第k个工件在第o道工序的第m个机器上的处理完成时间为:若k大于1,则第k个工件在第o道工序的第m个机器上的处理完成时间为其中,pom为第o道工序的第m个机器进行工件处理所需的时间,为第o道工序上第m台机器的第k-1个工件的处理完成时间,为第o道工序上第m台机器的第k个工件的处理完成时间,为第k个工件在第o-1道工序的机器上的处理完成时间。通过计算出第o道工序上第m台机器的各个工件各自的处理完成时间,从而得到第o道工序上第m台机器的最终完成时间,该最终完成时间可以用表示,的公式如下:then, Indicates the k-th workpiece processed by the m-th machine in the o-th process. If k=1, the processing completion time of the k-th workpiece on the m-th machine in the o-th process is: If k is greater than 1, the processing completion time of the k-th workpiece on the m-th machine of the o-th process is: Among them, p om is the time required for the m-th machine of the o-th process to process the workpiece, is the processing completion time of the k-1th workpiece of the mth machine on the oth process, is the processing completion time of the kth workpiece of the mth machine on the oth process, is the processing completion time of the kth workpiece on the machine of the o-1th operation. By calculating the processing completion time of each workpiece of the m-th machine on the o-th process, the final completion time of the m-th machine on the o-th process can be obtained. express, The formula is as follows:

其中,表示集合中工件的数量,为第o道工序上第m台机器的最终完成时间。in, Represents a collection the number of workpieces in the is the final completion time of the mth machine on the oth process.

进一步,根据各道工序上各个机器各自对应的最终完成时间,可以确定最后一道工序上各个机器分别进行工件处理的最终完成时间中的最大值,该最大值可以用Cmax表示,Cmax的公式如下:Further, according to the final completion time corresponding to each machine in each process, the maximum value of the final completion time of each machine in the last process for workpiece processing can be determined, and the maximum value can be expressed by Cmax . The formula of Cmax as follows:

可理解的是,该最大值为航天发动机制造装配所需的时间,即为第一道工序上第一个工件开始加工至最后一道工序的最后一个工件加工处理完毕所需的时间跨度,该值越小,代表航天发动机制造装配的效率越高。It is understandable that the maximum value is the time required for the manufacture and assembly of the aerospace engine, that is, the time span from the start of processing the first workpiece in the first process to the completion of the processing of the last workpiece in the last process. The smaller it is, the higher the efficiency of aerospace engine manufacturing and assembly.

S303、根据各个工件分别在最后一道工序的对应机器上的最终完工时间和各个工件各自的交货期,确定在最后一道工序的对应机器上的完工时间晚于交货期的工件的数量,并将该数量记为未在交货期之前完成处理任务的工件数量;S303. According to the final completion time of each workpiece on the corresponding machine of the last process and the respective delivery date of each workpiece, determine the number of workpieces whose completion time on the corresponding machine of the last process is later than the delivery date, and This quantity is recorded as the number of workpieces that have not completed the processing task before the delivery date;

例如,工件集合J={J1,...,Ji,...,Jn}中对每一个工件在最后一道工序的对应机器上的最终完成时间和该工件的交货期进行比较,若工件的最终完成时间晚于交货期,则说明该工件不能在交货期之前处理完成,将所有不能在交货期之前完成的工件构成集合Jd,|Jd|表示该集合中工件的数量,即未在交货期之前完成处理任务的工件数量。For example, in the workpiece set J={J 1 ,...,J i ,...,J n }, the final completion time of each workpiece on the corresponding machine of the last process is compared with the delivery time of the workpiece , if the final completion time of the workpiece is later than the delivery date, it means that the workpiece cannot be processed before the delivery date, and all the workpieces that cannot be completed before the delivery date form a set J d , |J d | The number of workpieces, that is, the number of workpieces that have not completed the processing task by the delivery date.

S304、根据所述航天发动机制造装配所需的时间和所述未在交货期之前完成处理任务的工件数量,计算该个体对应的适应度值。S304. Calculate the fitness value corresponding to the individual according to the time required for manufacturing and assembling the aerospace engine and the number of workpieces that have not completed the processing task before the delivery date.

实际应用中,可以采用第四公式计算该个体对应的适应度值;所述第四公式包括:In practical applications, the fourth formula can be used to calculate the fitness value corresponding to the individual; the fourth formula includes:

式中,F为该个体对应的适应度值,W1和W2为权重系数且W1+W2=1,Cmax为航天发动机制造装配所需的时间,Jd为未在交货期之前完成完成处理任务的工件集合,|Jd|为未在交货期之前完成处理任务的工件数量,df为第f个工件的交货期,Pf为第f个工件在最后一道工序上对应机器上的最终完成时间。In the formula, F is the fitness value corresponding to the individual, W 1 and W 2 are weight coefficients and W 1 +W 2 =1, C max is the time required for the manufacture and assembly of the aerospace engine, and J d is the non-delivery date The set of workpieces that have completed the processing tasks before, |J d | is the number of workpieces that have not completed the processing tasks before the delivery date, d f is the delivery date of the f-th workpiece, and P f is the f-th workpiece in the last process. The final completion time on the corresponding machine.

可理解的是,由上述公式可知,适应度值的计算考虑航天发动机制造装配所需的时间和所述未在交货期之前完成处理任务的工件数量这两个因素,因此适应度值是这两个因素的综合体现,适应度值越低,对应的解的质量越高,因此将其中适应度值最低的个体对应的解作为最优解。It can be understood that, from the above formula, the calculation of the fitness value considers the time required for the manufacture and assembly of the aerospace engine and the number of workpieces that have not completed the processing task before the delivery date, so the fitness value is this The comprehensive embodiment of the two factors, the lower the fitness value, the higher the quality of the corresponding solution, so the solution corresponding to the individual with the lowest fitness value is taken as the optimal solution.

通过上述第四公式可知,本发明有两个优化目标,其中第一个优化目标是将第一道工序中的第一个工件开始加工至最后一道工序的最后一个工件加工处理完毕所需的时间跨度缩短,另一个优化目标是将无法在交货期之前完成处理任务的工件数量减少。It can be seen from the above fourth formula that the present invention has two optimization objectives, wherein the first optimization objective is the time required to process the first workpiece in the first process to the completion of the processing of the last workpiece in the last process The span is shortened, another optimization goal is to reduce the number of workpieces that cannot be processed by the delivery date.

在实际环境中,由于生产机器的寿命不一,在生产线上同时混合新旧不同的生产设备,生产环境较为复杂,如果仅考虑单一问题,不符合实际情况,而本发明提供的方法实际有两个优化目标,一个是把时间跨度缩短,一个是减少无法在交货期之前完成处理的工件数量,也考虑到不同的设备具有不同的处理时间,因此制定的调度方案适用于实际情况中的多机调度问题。In the actual environment, due to the different life spans of the production machines, the production environment is complicated by mixing new and old production equipment on the production line. If only a single problem is considered, it is not in line with the actual situation, and the method provided by the present invention actually has two The optimization goal is to shorten the time span, and the other is to reduce the number of workpieces that cannot be processed before the delivery date. Considering that different equipment has different processing times, the scheduling scheme formulated is suitable for multiple machines in actual situations. scheduling problem.

在实际应用中,上述根据该最优解更新全局最优解的过程具体可以包括:将该最优解即第一个体与当前全局最优解的适应度值进行比较,若该最优解即第一个体的适应度值低于当前全局最优解的适应度值,则将全局最优解更新为该最优解即第一个体,否则,全局最优解保持不变。In practical applications, the above-mentioned process of updating the global optimal solution according to the optimal solution may specifically include: comparing the optimal solution, that is, the first individual, with the fitness value of the current global optimal solution, if the optimal solution That is, the fitness value of the first individual is lower than the fitness value of the current global optimal solution, then the global optimal solution is updated to the optimal solution, that is, the first individual, otherwise, the global optimal solution remains unchanged.

S400、判断当前迭代次数是否达到所述最大迭代次数:S400. Determine whether the current number of iterations reaches the maximum number of iterations:

若是,则输出当前的全局最优解;If so, output the current global optimal solution;

否则,根据预设的个体更新策略,对当前萤火虫种群中每一个个体进行更新,得到更新后的萤火虫种群,并返回步骤S300。Otherwise, according to the preset individual update strategy, update each individual in the current firefly population to obtain an updated firefly population, and return to step S300.

可理解的是,通过迭代过程,在解空间内不断搜索,最终求得全局最优解。在实际应用中,当输出全局最优解时,还可以输出全局最优解的适应度值,这样可以了解该全局最优解的优劣。It is understandable that through the iterative process, the solution space is continuously searched, and the global optimal solution is finally obtained. In practical applications, when the global optimal solution is output, the fitness value of the global optimal solution can also be output, so that the pros and cons of the global optimal solution can be known.

这里,设定个体更新策略,进行局部搜索,搜索种群可以通过交叉和保留等操作,不断提高种群的质量。Here, the individual update strategy is set, local search is performed, and the search population can continuously improve the quality of the population through operations such as crossover and retention.

在实际应用中,可以针对当前萤火虫种群中不同的个体采用不同的方式进行更新,例如,对当前萤火虫种群中每一个个体进行更新的过程可以包括如下步骤:In practical applications, different individuals in the current firefly population can be updated in different ways. For example, the process of updating each individual in the current firefly population can include the following steps:

S401、计算当前萤火虫种群中各个个体分别与所述第一个体之间的欧式距离;S401, calculating the Euclidean distance between each individual in the current firefly population and the first individual;

S402、将当前萤火虫种群中所述欧式距离小于预设距离且大于0的个体构成第一个体集合,将当前萤火虫种群中所述欧式距离大于或等于所述预设距离的个体构成第二个体集合;S402: Construct a first set of individuals whose Euclidean distance is less than a preset distance and greater than 0 in the current firefly population, and constitute a second individual in the current firefly population whose Euclidean distance is greater than or equal to the preset distance gather;

可理解的是,两个个体之间的欧式距离可以作为两个个体之间相似度的判断依据。Understandably, the Euclidean distance between two individuals can be used as a basis for judging the similarity between two individuals.

预设距离为R,对于种群中0<r<R的个体构成第一个体集合Stop,而r>R和r=R的个体构成第二个体集合SleastThe preset distance is R, the individuals with 0<r<R in the population constitute the first individual set S top , and the individuals with r>R and r=R constitute the second individual set S least .

S403、采用第一更新策略对所述第一个体集合中的每一个体进行更新,采用第二更新策略对所述第二个体集合中的每一个体进行更新,采用第三更新策略对所述第一个体进行更新。S403. Use the first update strategy to update each individual in the first set of individuals, use the second update strategy to update each individual in the second set of individuals, and use the third update strategy to update each individual in the second set of individuals. The first entity is updated.

其中,S403中采用第一更新策略对所述第一个体集合中的每一个体进行更新的过程包括:Wherein, the process of using the first update strategy to update each individual in the first individual set in S403 includes:

针对所述第一个体集合中的每一个体执行以下步骤:The following steps are performed for each individual in the first set of individuals:

S4031a、将所述第一个体集合中该个体赋值给第一个体变量XtempS4031a, assign this individual to the first individual variable X temp in the first individual set;

可理解的是,将第一个体集合中该个体赋值给第一个体变量Xtemp,因此第一个体变量Xtemp记录的是第一个体集合中该个体在更新之前的各维元素。It is understandable that the individual in the first individual set is assigned to the first individual variable X temp , so the first individual variable X temp records the dimension elements of the individual in the first individual set before the update. .

S4032a、根据所述第一个体变量的每一维元素、所述第一个体的每一维元素和每道工序中机器的数量,采用第一公式计算所述第一个体集合中该个体在更新后的每一维元素。其中,所述第一公式包括:S4032a. According to each dimension element of the first individual variable, each dimension element of the first individual and the number of machines in each process, use the first formula to calculate the Each dimension element of the individual after the update. Wherein, the first formula includes:

式中,为所述第一个体集合Stop中第k个个体在更新后的第l维元素,为所述第一个体的第l维元素,为所述第一个体变量Xtemp的第l维元素,M为每道工序中机器的数量,表示对x向上取整,x%y表示x取y的余数。In the formula, is the k-th individual in the first individual set S top In the updated l-th dimension element, is the lth dimension element of the first individual, is the lth dimension element of the first individual variable X temp , M is the number of machines in each process, Indicates that x is rounded up, and x%y means that x takes the remainder of y.

可理解的是,上述下标l为小于或等于个体总维数的正整数。It is understandable that the above subscript l is a positive integer less than or equal to the total dimension of the individual.

针对第一个体集合中一个个体的所有维元素,均分别采用第一公式进行更新,从而实现对第一个体集合中该个体的更新。针对第一个体集合中所有个体均分别采用上述方式进行更新,从而实现对第一个体集合的更新。All dimensional elements of an individual in the first individual set are respectively updated using the first formula, so as to realize the updating of the individual in the first individual set. All individuals in the first individual set are respectively updated in the above manner, so as to realize the updating of the first individual set.

其中,S403中采用第二更新策略对所述第二个体集合中的每一个体进行更新的过程可以包括:Wherein, the process of using the second update strategy to update each individual in the second set of individuals in S403 may include:

针对所述第二个体集合中每一个体执行以下步骤:The following steps are performed for each individual in the second set of individuals:

S4031b、根据当前萤火虫种群中各个个体的适应度值,计算当前萤火虫种群的平均适应度值;并根据所述第一个体的适应度值和所述平均适应度值,采用第二公式计算第一参数,所述第二公式包括:S4031b, calculating the average fitness value of the current firefly population according to the fitness value of each individual in the current firefly population; and using the second formula to calculate the first fitness value according to the fitness value of the first individual and the average fitness value A parameter, the second formula includes:

式中,P为第一参数,Favg为所述平均适应度值,Ftop为所述第一个体的适应度值;In the formula, P is the first parameter, Favg is the average fitness value, and Ftop is the fitness value of the first individual;

可理解的是,在当前萤火虫种群不变的情况下,其平均适应度值不变,而第一个体的适应度值也是定值,因此第一参数也是个定值。当种群更新变化之后,第一参数也会随之变化。It is understandable that when the current firefly population remains unchanged, its average fitness value remains unchanged, and the fitness value of the first individual is also a fixed value, so the first parameter is also a fixed value. When the population is updated and changed, the first parameter will also change accordingly.

S4032b、生成第一随机数random1,并判断所述第一随机数random1是否小于或等于所述第一参数P:S4032b, generating a first random number random1, and determining whether the first random number random1 is less than or equal to the first parameter P:

若是,则执行S4033b;If so, execute S4033b;

否则,跳到S4035b;Otherwise, skip to S4035b;

S4033b、根据所述第一个体的适应度值和所述第二个体集合中该个体的适应度值,采用第三公式计算第二参数;所述第三公式包括:S4033b, according to the fitness value of the first individual and the fitness value of the individual in the second individual set, use a third formula to calculate the second parameter; the third formula includes:

式中,CR为第二参数,为所述第二个体集合Sleast中第k个个体的适应度值;where CR is the second parameter, is the fitness value of the kth individual in the second individual set S least ;

上述第二参数可以称为交叉概率参数。The above-mentioned second parameter may be referred to as a crossover probability parameter.

其中k为小于或等于第二个体集合Sleast中个体总数的正整数。where k is a positive integer less than or equal to the total number of individuals in the second individual set S least .

针对第二个体集合Sleast中的每一个个体采用第三公式计算第二参数,不同的个体,第二参数不同。The third formula is used to calculate the second parameter for each individual in the second individual set S least , and the second parameter is different for different individuals.

S4034b、针对所述第二个体集合中该个体的每一维元素,执行步骤:生成第二随机数random2,并判断所述第二随机数random2是否小于或等于所述第二参数CR:若是,则将所述第二个体集合中该个体的该维元素替换为所述第一个体的对应维元素;否则,所述第二个体集合中该个体的该维元素保持不变;S4034b. For each dimension element of the individual in the second individual set, perform the steps of: generating a second random number random2, and judging whether the second random number random2 is less than or equal to the second parameter CR: if so, Then replace the dimension element of the individual in the second individual set with the corresponding dimension element of the first individual; otherwise, the dimension element of the individual in the second individual set remains unchanged;

可理解的是,针对第二个体集合中一个个体的所有元素执行步骤S4034b,可以实现对第二个体集合中的该个体的替代变换。It is understandable that by performing step S4034b for all elements of an individual in the second individual set, the substitution transformation of the individual in the second individual set can be implemented.

S4035b、随机产生两个索引下标,所述两个索引下标包括第一下标和第二下标,将所述第二个体集合中该个体在所述第一下标和所述第二下标之间的元素进行对称交换,以实现对该个体的更新。S4035b. Randomly generate two index subscripts, the two index subscripts include a first subscript and a second subscript, and assign the individual in the second individual set to the first subscript and the second subscript Elements between subscripts are exchanged symmetrically to achieve an update to that individual.

例如,生成的两个下标为1和7,则对个体在第1维和第7维之间的各个元素之间的进行对称变换:第1维和第7维元素变换,第2维和第6维元素变换,第3维和第5维元素变换,第4维元素不变。For example, if the generated two subscripts are 1 and 7, the symmetric transformation of the individual elements between the 1st dimension and the 7th dimension is performed: the element transformation of the 1st dimension and the 7th dimension, the 2nd dimension and the 6th dimension Element transformation, 3rd dimension and 5th dimension element transformation, 4th dimension element unchanged.

针对第二个体集合中每一个体执行上述步骤,可以实现对第二个体集合的更新。Performing the above steps for each individual in the second individual set can implement the update of the second individual set.

这里,对第一个体集合和/或第二个体集合进行交换、变异等操作,可以提高种群的多样性,保证个体的质量,同时又有利于提高算法的局部搜索能力,有效地避免算法过早收敛。Here, performing operations such as exchange and mutation on the first set of individuals and/or the second set of individuals can improve the diversity of the population, ensure the quality of individuals, and at the same time help to improve the local search ability of the algorithm, and effectively avoid algorithm overloading. Convergence early.

其中,S403中采用第三更新策略对第一个体进行更新的过程可以包括:Wherein, the process of using the third update strategy to update the first individual in S403 may include:

S4031c、对所述第一个体进行替换变异,得到第一变异个体;S4031c, performing substitution mutation on the first individual to obtain a first mutant individual;

替换变异的具体过程可以包括:定义第一变异个体X1,随机产生三个互不相同的索引下标,并把第一个体上前两个下标之间的元素移动到后两个索引下标之间的位置上,得到一个第一变异个体X1The specific process of replacing mutation may include: defining a first mutation individual X 1 , randomly generating three mutually different index subscripts, and moving the elements between the first two subscripts on the first individual to the last two indexes At the position between the subscripts, a first mutant individual X 1 is obtained.

例如,第一个体有5个元素,三个索引下标分别为1、3、4,1和3之间的元素为2,则将第一个体上第2维元素移动到第3维元素和第4维元素之间,这样虽然失去了第2维元素,但在第3维和第4维之间增加了一个元素,因此第一个体的维数不变。For example, if the first body has 5 elements, the three index subscripts are 1, 3, 4, and the element between 1 and 3 is 2, then move the 2nd dimension element on the first body to the 3rd dimension Between the element and the 4th dimension element, although the 2nd dimension element is lost, an element is added between the 3rd dimension and the 4th dimension, so the dimension of the first individual remains unchanged.

S4032c、对所述第一个体进行M次交换变异,得到M个第二变异个体;S4032c, performing M times of exchange mutation on the first individual to obtain M second mutant individuals;

交换变异的具体过程可以包括:定义第二变异个体X2,随机产生两个个互不相同的索引下标,将第一个体在两个索引下标位置上的元素进行相互交换,得到一个第二变异个体X2。重复该步骤M次,可以得到M个第二变异个体X2The specific process of exchange mutation may include: defining a second mutant individual X 2 , randomly generating two mutually different index subscripts, and exchanging the elements of the first individual at the two index subscript positions with each other to obtain a The second variant individual X 2 . By repeating this step M times, M second mutant individuals X 2 can be obtained.

S4033c、对所述第一个体进行M次元素移动变异,得到M个第三变异个体;S4033c, performing element movement mutation M times on the first individual to obtain M third mutant individuals;

元素移动变异的具体过程可以包括:定义第三变异个体X3,随机产生两个互不相同的索引下标,将第一个体上一个索引下标位置上的元素移动到另一个索引下标位置上,得到一个第三变异个体X3。重复该步骤M次,可以得到M个第三变异个体X3The specific process of element movement mutation may include: defining a third mutation individual X 3 , randomly generating two mutually different index subscripts, and moving the element at the position of one index subscript on the first individual to another index subscript position, get a third mutant individual X 3 . By repeating this step M times, M third mutant individuals X 3 can be obtained.

例如,两个索引下标为1和3,则将第一个体第1维元素移动到第3维上,原来的第3维以及以后的元素的位置均向后移动一个位置,这种方式也不会改变第一个体的总维数。For example, if the subscripts of the two indices are 1 and 3, then the 1st dimension element of the first individual is moved to the 3rd dimension, and the positions of the original 3rd dimension and subsequent elements are moved one position backward. This way Nor does it change the total dimensionality of the first individual.

S4034c、分别计算各个变异个体的适应度值,并判断最高的适应度值是否大于所述第一个体的适应度值:S4034c: Calculate the fitness value of each mutant individual respectively, and determine whether the highest fitness value is greater than the fitness value of the first individual:

若是,则将所述第一个体替换为所述适应度值最高的变异个体,并执行S4035c;If so, replace the first individual with the mutant individual with the highest fitness value, and execute S4035c;

否则,执行S4035c;Otherwise, execute S4035c;

S4035c、从更新后的第一个体集合和更新后的第二个体集合中选择出荧光亮度最高的个体,并将所述荧光亮度最高的个体与所述第一个体进行交叉处理,得到更新处理后的第一个体。S4035c: Select an individual with the highest fluorescence brightness from the updated first individual set and the updated second individual set, and perform cross processing on the individual with the highest fluorescence brightness and the first individual to obtain an update The first individual after treatment.

在实际应用中,交叉处理的具体过程可以包括:In practical applications, the specific process of cross processing can include:

1、定义一个位置变量rand,且rand满足条件1≤rand≤n,rand∈Z+1. Define a position variable rand, and rand satisfies the condition 1≤rand≤n, rand∈Z + ;

2、在满足位置变量rand条件范围内随机产生一个值,并把该值赋给变量rand;2. Randomly generate a value within the range that satisfies the condition of the position variable rand, and assign the value to the variable rand;

3、分别把两个个体中处于rand后面的所有元素按照原来的相对位置进行交换,从而得到两个新的个体。3. Swap all elements behind rand in the two individuals according to their original relative positions, thereby obtaining two new individuals.

通过以上替换、交换和插入等变异方式,实现对第一个体的移动,从而实现对第一个体的更新。Through the above mutation methods such as replacement, exchange, and insertion, the movement of the first individual is realized, thereby realizing the update of the first individual.

这里,通过对原始第一个体进行多种变异操作而实现第一个体的移动,这样有利于提高算法的全局搜索能力,有效地避免算法陷入局部最优解。Here, the movement of the first individual is realized by performing multiple mutation operations on the original first individual, which is beneficial to improve the global search ability of the algorithm and effectively avoid the algorithm from falling into a local optimal solution.

本发明提供的方法,实际上是针对航天高端装备研制过程的flowshop问题,首先在考虑交货期的基础上生成初始的萤火虫种群,然后选择出适应度值最低的个体作为第一个体,再对种群中的个体进行更新,经过多次迭代过程,使得第一个体逐渐接近解决调度问题的最优解,进而将其作为全局最优解输出,本发明使得在生产其高端装备的过程中能最大限度上充分利用其生产资源,降低生产成本,并提高装备制造管理水平和制造能力。本发明采用的是改进的萤火虫算法,该算法在收敛速度和搜索的解质量方面表现出了良好的性能,解决了多机情形下的flow shop调度问题,提升装备制造企业的装备制造生产管理水平。The method provided by the invention is actually aimed at the flowshop problem in the development process of aerospace high-end equipment. First, the initial firefly population is generated on the basis of considering the delivery time, and then the individual with the lowest fitness value is selected as the first individual, and then The individuals in the population are updated, and after multiple iterations, the first individual is gradually approached to the optimal solution for solving the scheduling problem, and then it is output as the global optimal solution. It can make full use of its production resources to the greatest extent, reduce production costs, and improve equipment manufacturing management level and manufacturing capacity. The invention adopts the improved firefly algorithm, which shows good performance in terms of convergence speed and search solution quality, solves the problem of flow shop scheduling in the case of multiple machines, and improves the equipment manufacturing production management level of equipment manufacturing enterprises .

第二方面,本发明提供一种面向航天发动机研制过程的智能协同调度系统,该系统包括:In a second aspect, the present invention provides an intelligent collaborative scheduling system for the development process of aerospace engines, the system comprising:

参数设置模块,用于执行S100、设置算法参数;所述算法参数至少包括航天发动机制造装配中所需工件的数量、所需工序的道数、每道工序上机器的数量、每一工件的交货期、最大迭代次数和萤火虫种群中的个体数量;The parameter setting module is used for executing S100 and setting algorithm parameters; the algorithm parameters include at least the number of workpieces required in the aerospace engine manufacturing and assembly, the number of required processes, the number of machines in each process, and the handover of each workpiece. Delivery period, maximum number of iterations and the number of individuals in the firefly population;

种群生成模块,用于执行S200、根据各个工件的交货期,生成初始的萤火虫种群;所述萤火虫种群中的每一个个体对应一个解,每一个解包括各个工件分别在各道工序上进行处理的机器;The population generation module is used to execute S200, and generate an initial firefly population according to the delivery date of each workpiece; each individual in the firefly population corresponds to a solution, and each solution includes each workpiece to be processed on each process respectively the machine;

最优解计算模块,用于执行S300、计算当前萤火虫种群中每一个体的适应度,并将适应度最低的个体作为第一个体,将所述第一个体对应的解作为本次迭代过程的最优解,并根据该最优解更新全局最优解;The optimal solution calculation module is used for executing S300, calculating the fitness of each individual in the current firefly population, and taking the individual with the lowest fitness as the first individual, and taking the solution corresponding to the first individual as this iteration The optimal solution of the process, and update the global optimal solution according to the optimal solution;

次数判断模块,用于执行S400、判断当前迭代次数是否达到所述最大迭代次数:若是,则输出当前的全局最优解;否则,根据预设的个体更新策略,对当前萤火虫种群中每一个个体进行更新,得到更新后的萤火虫种群,并返回所述最优解计算模块中执行步骤S300。The number of times judgment module is used to execute S400, and judge whether the current number of iterations reaches the maximum number of iterations: if so, output the current global optimal solution; otherwise, according to the preset individual update strategy, each individual in the current firefly population is Perform the update to obtain the updated firefly population, and return to the optimal solution calculation module to execute step S300.

第三方面,本发明提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时可上述调度方法。In a third aspect, the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above scheduling method can be implemented.

可理解的是,第二方面提供的系统和第三方面提供的存储介质,与第一方面提供的方法相对应,其有关内容的解释、举例、实施方式等内容可以参考第一方面中的相应部分,此处不再赘述。It can be understood that the system provided in the second aspect and the storage medium provided in the third aspect correspond to the method provided in the first aspect, and the explanations, examples, implementations, etc. of the relevant content may refer to the corresponding content in the first aspect. part, which will not be repeated here.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An intelligent cooperative scheduling method for a development process of an aerospace engine is characterized by comprising the following steps:
s100, setting algorithm parameters; the algorithm parameters at least comprise the number of workpieces required in the manufacturing and assembling of the space engine, the number of required working procedures, the number of machines on each working procedure, the delivery date of each workpiece, the maximum iteration number and the individual number in the firefly population;
s200, generating an initial firefly population according to the delivery date of each workpiece; each individual in the firefly population corresponds to a solution, and each solution comprises a machine for processing each workpiece in each process;
s300, calculating the fitness of each individual in the current firefly population, taking the individual with the lowest fitness as a first individual, taking a solution corresponding to the first individual as an optimal solution of the iteration process, and updating a global optimal solution according to the optimal solution;
s400, judging whether the current iteration number reaches the maximum iteration number:
if so, outputting the current global optimal solution;
otherwise, updating each individual in the current firefly population according to a preset individual updating strategy to obtain an updated firefly population, and returning to the step S300.
2. The method of claim 1, wherein said generating an initial population of fireflies comprises:
s201, sequencing all workpieces according to a non-decreasing delivery date mode to obtain a workpiece set;
s202, performing machine allocation on each workpiece in the workpiece set one by one according to the arrangement sequence to obtain an individual;
s203, randomly generating Q-1 individuals; q is the number of individuals in the population.
3. The method of claim 1, wherein updating each individual of the current firefly population according to a preset individual update strategy to obtain an updated firefly population comprises:
s401, calculating Euclidean distances between each individual in the current firefly population and the first individual respectively;
s402, forming individuals with Euclidean distances smaller than a preset distance and larger than 0 in the current firefly population into a first individual set, and forming individuals with Euclidean distances larger than or equal to the preset distance in the current firefly population into a second individual set;
and S403, updating each individual in the first individual set by adopting a first updating strategy, updating each individual in the second individual set by adopting a second updating strategy, and updating the first individual by adopting a third updating strategy.
4. The method of claim 3, wherein said updating each individual of the first set of individuals using a first update policy comprises:
performing, for each individual of the first set of individuals, the steps of:
s4031a, assigning the individual in the first individual set to a first individual variable;
s4032a, calculating each updated dimension element of the first individual in the first individual set according to each dimension element of the first individual variable, each dimension element of the first individual, and the number of machines in each process, using a first formula, where the first formula includes:
in the formula,for the first individual set StopMiddle k individualIn the updated l-th dimension element,is the i-th dimension element of the first individual,is the first volume variable XtempThe l-th dimension element, M is the number of machines in each process,representing the rounding up of x, x% y represents the remainder of x taking y.
5. The method of claim 3, wherein said updating each individual of the second set of individuals using a second update policy comprises:
performing the following steps for each individual of the second set of individuals:
s4031b, calculating the average fitness value of the current firefly population according to the fitness value of each individual in the current firefly population; and calculating a first parameter by using a second formula according to the fitness value of the first individual and the average fitness value, wherein the second formula comprises:
wherein P is a first parameter, FavgAs said average fitness value, FtopA fitness value for the first individual;
s4032b, generating a first random number, and determining whether the first random number is less than or equal to the first parameter:
if yes, go to S4033 b;
otherwise, go to S4035 b;
s4033b, calculating a second parameter by using a third formula according to the fitness value of the first individual and the fitness value of the individual in the second individual set; the third formula includes:
wherein CR is a second parameter,set S for the second individualleastFitness value of the kth individual;
s4034b, for each dimension element of the individual in the second set of individuals, executing the steps of: generating a second random number, and judging whether the second random number is less than or equal to the second parameter: if yes, replacing the dimension element of the individual in the second individual set with the corresponding dimension element of the first individual; otherwise, the dimension element of the individual in the second individual set remains unchanged;
s4035b, randomly generating two index subscripts, wherein the two index subscripts include a first subscript and a second subscript, and symmetrically exchanging elements of the individual in the second individual set between the first subscript and the second subscript.
6. The method of claim 3, wherein the updating the first individual with a third update policy comprises:
s4031c, performing substitution variation on the first individual to obtain a first variant individual;
s4032c, performing crossover variation on the first individuals for M times to obtain M second variant individuals;
s4033c, performing element movement variation on the first individual for M times to obtain M third variant individuals;
s4034c, calculating fitness values of the variant individuals, and determining whether the highest fitness value is greater than the fitness value of the first individual:
if yes, replacing the first individual with the variant individual with the highest fitness value, and executing S4035 c;
otherwise, go to S4035 c;
s4035c, selecting the individuals with the highest fluorescence brightness from the updated first individual set and the updated second individual set, and performing cross processing on the individuals with the highest fluorescence brightness and the first individual to obtain the updated first individual.
7. The method of claim 1, wherein calculating the fitness of each individual in the current firefly population comprises:
s301, performing feasibility transformation on the solution corresponding to the individual to enable the values of all dimensions of the solution to be in the range of [1, M ], wherein the transformation process comprises the following steps: judging whether each element in the solution corresponding to the individual is in the range of the interval [1, M ], if so, keeping the element unchanged, otherwise, taking the value of the element as M;
s302, determining the workpieces processed by each machine in each process according to the solution corresponding to the individual, calculating the final finishing time for each machine in the last process to process the workpieces respectively, and taking the maximum value of the final finishing time for each machine in the last process to process the workpieces respectively as the time required by manufacturing and assembling the space engine;
s303, determining the number of the workpieces of which the finishing time is later than the delivery date on the corresponding machine of the last process according to the final finishing time of each workpiece on the corresponding machine of the last process and the delivery date of each workpiece, and recording the number as the number of the workpieces of which the processing task is not finished before the delivery date;
and S304, calculating the corresponding fitness value of the individual according to the time required by manufacturing and assembling the space engine and the number of the workpieces which do not finish the processing task before the delivery date.
8. The method of claim 7, wherein the fitness value corresponding to the individual is calculated using a fourth formula; the fourth formula includes:
wherein F is the fitness value corresponding to the individual, W1And W2Is a weight coefficient and W1+W2=1,CmaxTime required for the manufacturing assembly of an aerospace engine, JdFor collections of workpieces that do not complete processing tasks prior to delivery, | JdI is the number of workpieces which have not completed a processing task before delivery date, dfFor delivery of the f-th workpiece, PfThe f-th workpiece corresponds to the final finish time on the machine in the last process.
9. An intelligent cooperative scheduling system for a space engine development process is characterized by comprising:
the parameter setting module is used for executing S100 and setting algorithm parameters; the algorithm parameters at least comprise the number of workpieces required in the manufacturing and assembling of the space engine, the number of required working procedures, the number of machines on each working procedure, the delivery date of each workpiece, the maximum iteration number and the individual number in the firefly population;
the population generation module is used for executing S200 and generating an initial firefly population according to the delivery date of each workpiece; each individual in the firefly population corresponds to a solution, and each solution comprises a machine for processing each workpiece in each process;
the optimal solution calculation module is used for executing S300, calculating the fitness of each individual in the current firefly population, taking the individual with the lowest fitness as a first individual, taking the solution corresponding to the first individual as the optimal solution of the iteration process, and updating the global optimal solution according to the optimal solution;
a number judging module, configured to execute S400, and judge whether the current iteration number reaches the maximum iteration number: if so, outputting the current global optimal solution; otherwise, updating each individual in the current firefly population according to a preset individual updating strategy to obtain an updated firefly population, and returning to the optimal solution calculation module to execute the step S300.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 8.
CN201811514859.9A 2018-12-12 2018-12-12 Intelligent cooperative scheduling method and system for development process of aerospace engine Active CN109491344B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811514859.9A CN109491344B (en) 2018-12-12 2018-12-12 Intelligent cooperative scheduling method and system for development process of aerospace engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811514859.9A CN109491344B (en) 2018-12-12 2018-12-12 Intelligent cooperative scheduling method and system for development process of aerospace engine

Publications (2)

Publication Number Publication Date
CN109491344A true CN109491344A (en) 2019-03-19
CN109491344B CN109491344B (en) 2020-07-07

Family

ID=65709853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811514859.9A Active CN109491344B (en) 2018-12-12 2018-12-12 Intelligent cooperative scheduling method and system for development process of aerospace engine

Country Status (1)

Country Link
CN (1) CN109491344B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130110751A1 (en) * 2011-10-31 2013-05-02 Taif University Computational device implemented method of solving constrained optimization problems
CN106707990A (en) * 2016-12-19 2017-05-24 湘潭大学 Multi-objective flexible job shop scheduling method based on discrete firefly algorithm
CN107329461A (en) * 2016-04-28 2017-11-07 中移(杭州)信息技术有限公司 A kind of flow shop dispatching method and device
CN107590603A (en) * 2017-09-11 2018-01-16 合肥工业大学 Based on the dispatching method and system for improving change neighborhood search and differential evolution algorithm
CN107767022A (en) * 2017-09-12 2018-03-06 重庆邮电大学 A kind of Dynamic Job-shop Scheduling rule intelligent selecting method of creation data driving
CN107817772A (en) * 2017-10-17 2018-03-20 西南交通大学 A kind of flexible job shop scheduling optimization method
CN107831746A (en) * 2017-11-13 2018-03-23 浙江大学 A kind of efficient aero-engine assembly shop scheduling system
CN107918806A (en) * 2017-11-13 2018-04-17 浙江大学 A kind of intelligent Optimization Scheduling
CN108665092A (en) * 2018-04-17 2018-10-16 东莞理工学院 Full-process production scheduling and optimizing method based on mixed firefly algorithm

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130110751A1 (en) * 2011-10-31 2013-05-02 Taif University Computational device implemented method of solving constrained optimization problems
CN107329461A (en) * 2016-04-28 2017-11-07 中移(杭州)信息技术有限公司 A kind of flow shop dispatching method and device
CN106707990A (en) * 2016-12-19 2017-05-24 湘潭大学 Multi-objective flexible job shop scheduling method based on discrete firefly algorithm
CN107590603A (en) * 2017-09-11 2018-01-16 合肥工业大学 Based on the dispatching method and system for improving change neighborhood search and differential evolution algorithm
CN107767022A (en) * 2017-09-12 2018-03-06 重庆邮电大学 A kind of Dynamic Job-shop Scheduling rule intelligent selecting method of creation data driving
CN107817772A (en) * 2017-10-17 2018-03-20 西南交通大学 A kind of flexible job shop scheduling optimization method
CN107831746A (en) * 2017-11-13 2018-03-23 浙江大学 A kind of efficient aero-engine assembly shop scheduling system
CN107918806A (en) * 2017-11-13 2018-04-17 浙江大学 A kind of intelligent Optimization Scheduling
CN108665092A (en) * 2018-04-17 2018-10-16 东莞理工学院 Full-process production scheduling and optimizing method based on mixed firefly algorithm

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
彭郎军: "基于萤火虫算法的柔性作业车间调度问题研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
李庆堂: "基于改进遗传算法的多工艺路线及批量生产车间作业调度优化", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *

Also Published As

Publication number Publication date
CN109491344B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN110389819B (en) Method and system for scheduling calculation intensive batch processing tasks
CN113792924A (en) A single job shop scheduling method based on Deep Q-network deep reinforcement learning
CN113569483A (en) A method for multi-objective flexible job shop scheduling based on artificial bee colony algorithm
CN110909787A (en) Method and system for multi-objective batch scheduling optimization based on clustering evolutionary algorithm
CN112948994B (en) Multi-objective optimization and decision-making method for gear hobbing process parameters
CN109765788A (en) An online optimization method for multi-objective crude oil blending
CN108460463A (en) High-end equipment flow line production dispatching method based on improved adaptive GA-IAGA
CN114862090A (en) Workshop scheduling method and system based on improved multi-target genetic algorithm
CN113792494B (en) Multi-objective flexible job shop scheduling method based on migratory bird flock algorithm and cross fusion
CN112348323A (en) Multi-target energy supply and operation flexible scheduling method
CN111290283A (en) A single machine scheduling method for additive manufacturing for selective laser melting process
CN109636006B (en) A multi-row facility layout method
CN111401693A (en) Flexible workshop scheduling optimization method and system with robot transportation
CN115907399A (en) Intelligent scheduling method for discrete manufacturing flexible production of electronic product
CN109491344B (en) Intelligent cooperative scheduling method and system for development process of aerospace engine
CN112861433B (en) A method for product low-carbon design based on multi-level integration framework
CN114371915A (en) Manufacturing enterprise data space system task scheduling method based on decomposition strategy
CN114240091A (en) Flexible job shop scheduling method based on self-adaptive layering strategy
CN118709849A (en) A complex parts process route planning method based on re-optimization genetic algorithm
CN107918796A (en) A kind of more tactful shuffled frog leaping algorithms solved towards nonlinear programming problem
CN117726119A (en) A graph bionic learning method to solve distributed hybrid flow workshop group scheduling
CN110298102A (en) Method for planning the machining path of the chute tool for the urban rail chassis
CN109711701B (en) Collaborative scheduling method and system in equipment R&amp;D and manufacturing process
CN114862009A (en) Single-target flexible job shop energy-saving scheduling method based on improved wolf algorithm
CN115018180A (en) A super-heuristic scheduling method and system for energy-saving distribution and processing of tin handicraft raw materials

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