CN108681818A - A kind of Optimization Scheduling of gear mechanism process - Google Patents
A kind of Optimization Scheduling of gear mechanism process Download PDFInfo
- Publication number
- CN108681818A CN108681818A CN201810478710.3A CN201810478710A CN108681818A CN 108681818 A CN108681818 A CN 108681818A CN 201810478710 A CN201810478710 A CN 201810478710A CN 108681818 A CN108681818 A CN 108681818A
- Authority
- CN
- China
- Prior art keywords
- new
- harmony
- gear
- individual
- machining process
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/06312—Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/06316—Sequencing of tasks or work
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Tourism & Hospitality (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Educational Administration (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Game Theory and Decision Science (AREA)
- Development Economics (AREA)
- Manufacturing & Machinery (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Gears, Cams (AREA)
Abstract
本发明涉及一种齿轮机械加工过程的优化调度方法,方法为:通过确定待加工成型的一批齿轮毛坯在机械加工过程中的调度模型和优化目标,并用基于混合离散和声搜索算法的优化调度方法对目标进行优化;其中,调度模型依据齿轮在机械加工过程中,各个齿轮在各台加工机器上的加工时间来建立,同时优化目标为最小化最大完成时间。本发明提出了齿轮机械加工过程的调度模型和优化目标,可在短时间内获得齿轮机械加工过程的调度问题的优良解,从而保证齿轮在出厂时能够具有较高的合格率,同时使得齿轮加工工艺过程的表达更加清晰准确。
The invention relates to an optimal scheduling method of a gear machining process. The method is as follows: by determining the scheduling model and optimization target of a batch of gear blanks to be processed and formed during the machining process, and using the optimal scheduling method based on a hybrid discrete harmonic search algorithm The method optimizes the objective; among them, the scheduling model is established according to the processing time of each gear on each processing machine during the machining process of the gear, and the optimization objective is to minimize the maximum completion time. The invention proposes a scheduling model and an optimization target of the gear machining process, which can obtain an excellent solution to the scheduling problem of the gear machining process in a short time, thereby ensuring that the gears can have a high pass rate when they leave the factory, and at the same time make the gear machining The expression of the process is more clear and accurate.
Description
技术领域technical field
本发明涉及一种齿轮机械加工过程的优化调度方法,属于生产车间智能优化调度领域。The invention relates to an optimal scheduling method of a gear machining process, which belongs to the field of intelligent optimal scheduling of production workshops.
背景技术Background technique
齿轮是指轮缘上有齿轮连续啮合传递运动和动力的机械元件。齿轮在传动中的应用很早就出现了。十九世纪末,展成切齿法的原理及利用此原理切齿的专用机床与刀具的相继出现。齿轮广泛应用于机械工业,尤其在汽车和重型机械领域,齿轮的连续啮合能传递运动和动力。齿轮工业作为机械基础工业的重要组成部分不管是在规模上还是在加工技术上都会有非常广阔的前景。鉴于在企业设备及其它资源产能有限的条件下,通过合理的调度可以对设备利用率、交货期、库存情况等产生极大的影响。A gear is a mechanical element with gears on the rim that continuously mesh to transmit motion and power. The application of gears in transmission has appeared very early. At the end of the nineteenth century, the principle of the generative gear cutting method and the special machine tools and tools for gear cutting using this principle appeared one after another. Gears are widely used in the machinery industry, especially in the fields of automobiles and heavy machinery, where continuous meshing of gears can transmit motion and power. As an important part of the mechanical basic industry, the gear industry will have very broad prospects both in terms of scale and processing technology. In view of the limited production capacity of enterprise equipment and other resources, reasonable scheduling can have a great impact on equipment utilization, delivery time, inventory, etc.
一般齿轮加工的工艺流程有如下几个步骤:毛坯制造,齿坯热处理,齿坯加工,齿面加工,轮齿热处理,齿面精加工和轮齿精加工。不同的加工操作需要分别在不同的机器上完成,在整个齿轮的机械加工过程中,待加工的齿轮需要依次在不同的机器上进行操作,方能完成齿轮的成型。具体来说,要加工生产n个齿轮,则该齿轮毛坯需要按相同的顺序经过不同的m台机器,方能完成齿轮的加工。因此,齿轮加工过程的特点在于,每一个齿轮毛坯在每一次加工过程中均按照M1,M2,…,Mm的机器顺序进行加工,且每台机器上各块齿轮毛坯的加工顺序相同,学术界定义这类流水线为置换流水线(Permutation Flow-shop,PFS),也已被证明两台机器以上的PFS调度问题属于NP-hard问题,即无法在多项式时间内求得其精确解。显然,对于研究的齿轮加工过程的流水线调度问题,其加工机器明显大于两台,也属于NP-hard问题的范畴。对该问题进行合理的调度,可明显提高齿轮生产过程的生产效率。The general gear processing process has the following steps: blank manufacturing, gear blank heat treatment, gear blank processing, tooth surface processing, gear tooth heat treatment, tooth surface finishing and gear tooth finishing. Different processing operations need to be completed on different machines. During the entire gear machining process, the gears to be processed need to be operated on different machines in turn to complete the gear forming. Specifically, to process and produce n gears, the gear blank needs to pass through different m machines in the same order to complete the gear processing. Therefore, the characteristic of the gear processing process is that each gear blank is processed according to the machine sequence M1, M 2 ,..., M m in each processing process, and the processing sequence of each gear blank on each machine is the same, The academic community defines this type of pipeline as Permutation Flow-shop (PFS), and it has also been proven that the PFS scheduling problem with more than two machines is an NP-hard problem, that is, its exact solution cannot be obtained in polynomial time. Obviously, for the pipeline scheduling problem of the researched gear processing process, the processing machines are obviously larger than two, which also belongs to the category of NP-hard problems. Reasonable scheduling of this problem can significantly improve the production efficiency of the gear production process.
由上述齿轮加工过程的描述可知,齿轮加工过程的流水线调度问题是NP-hard属性,传统的数学规划方法只能求解小规模问题,而启发式构造性方法优化质量较差,因此,本发明从智能算法角度出发,设计一种基于混合离散和声搜索算法(Hybrid DiscreteHarmony Search Algorithm,HDHSA)的优化调度方法,可在较短时间内求得齿轮加工过程调度问题的优良解。From the description of the above gear processing process, it can be seen that the pipeline scheduling problem of the gear processing process is NP-hard. The traditional mathematical programming method can only solve small-scale problems, and the heuristic constructive method has poor optimization quality. Therefore, the present invention starts from From the perspective of intelligent algorithm, an optimal scheduling method based on Hybrid Discrete Harmony Search Algorithm (HDHSA) is designed, which can obtain an excellent solution to the scheduling problem of gear machining process in a short time.
发明内容Contents of the invention
本发明提供了一种齿轮机械加工过程的优化调度方法,以用于在较短时间内获得齿轮在机械加工制造过程中的优化调度问题的优良解。The invention provides an optimal scheduling method of the gear machining process, which is used to obtain an excellent solution to the optimal scheduling problem of the gear machining and manufacturing process in a relatively short period of time.
本发明的技术方案是:一种齿轮机械加工过程的优化调度方法,通过确定待加工成型的一批齿轮毛坯在机械加工过程中的调度模型和优化目标,并用基于混合离散和声搜索算法的优化调度方法对目标进行优化;其中,调度模型依据齿轮在机械加工过程中,各个齿轮在各台加工机器上的加工时间来建立,同时优化目标为最小化最大完成时间Cmax(π):The technical solution of the present invention is: an optimal scheduling method of the gear machining process, by determining the scheduling model and optimization target of a batch of gear blanks to be processed and formed in the machining process, and using the optimization method based on the hybrid discrete harmonic search algorithm The scheduling method optimizes the objective; the scheduling model is established according to the processing time of each gear on each processing machine during the machining process of the gear, and the optimization objective is to minimize the maximum completion time C max (π):
Cmax(π)=C(πn,m)C max (π)=C(π n ,m)
式中,n×m表示问题的规模,n表示待加工的齿轮总数,m表示齿轮加工过程中所用的机器数,表示正整数的集合;π=[π1,π2,…,πi]表示待加工的齿轮的工序,πk表示π中第k个位置的齿轮,表示第πi个齿轮在第j台机器上的加工时间,C(πi,j)是第πi个齿轮在第j台机器上的完工时间;该模型的优化目标为在所有需加工的齿轮的排序集合Π中找到一个最优排序π*,使得最大完成时间Cmax(π)最小。In the formula, n × m represents the scale of the problem, n represents the total number of gears to be processed, m represents the number of machines used in the gear processing process, Indicates a set of positive integers; π=[π 1 ,π 2 ,…,π i ] indicates the process of the gear to be processed, π k indicates the gear at the kth position in π, Indicates the processing time of the π i -th gear on the j machine, C(π i ,j) is the completion time of the π i -th gear on the j machine; the optimization objective of the model is Find an optimal sorting π * in the sorting set Π of gears, so that the maximum completion time C max (π) is the smallest.
所述基于混合离散和声搜索算法的优化调度方法具体为:The optimal scheduling method based on the hybrid discrete harmony search algorithm is specifically:
Step1、编码方式的设计:以齿轮加工过程中的齿轮加工顺序进行编码,其排序为π=[π1,π2,…,πi],i=1,2,…,n,其中i为待加工的齿轮个数;Step1. The design of the encoding method: the encoding is carried out in the gear machining sequence in the gear machining process, and the order is π=[π 1 ,π 2 ,…,π i ], i=1,2,…,n, where i is Number of gears to be processed;
Step2、参数初始化:和声记忆库的大小HMS即种群规模NP,和声记忆库的取值概率HMCR,音调微调概率PAR,并设置算法开始时间;Step2. Parameter initialization: the size of the harmony memory HMS is the population size NP, the value probability HMCR of the harmony memory, the pitch fine-tuning probability PAR, and set the algorithm start time;
Step3、种群初始化:采用NEH方法产生一个初始种群个体,余下NP-1个个体使用随机方法产生,并记录每个个体的目标函数值f直至初始解的数量达到种群规模的要求;和声记忆库的具体形式如下:Step3. Population initialization: use the NEH method to generate an initial population individual, and use the random method to generate the remaining NP-1 individuals, and record the objective function value f of each individual until the number of initial solutions reaches the population size requirements; harmony memory The specific form is as follows:
其中,X1,X2,…,XHMS为生成的HMS个和声,f(X1),f(X2),…,f(XHMS)为其对应的目标函数值;Among them, X 1 , X 2 ,...,X HMS are the generated HMS harmony, f(X 1 ), f(X 2 ),...,f(X HMS ) are their corresponding objective function values;
Step4、生成新的和声:新和声主要通过以下三种机理产生:学习和声记忆库,音调微调和随机选择音调,具体描述如下:Step4. Generate new harmony: New harmony is mainly generated through the following three mechanisms: learning harmony memory, fine-tuning tone and random selection of tone. The specific description is as follows:
①、从0到1间随机产生随机数rand,若rand<HMCR,则应用学习和声记忆库机理,从已有的和声记忆库HM中随机选取一个和声变量作为新和声Xnew;否则,应用随机选择音调机理,从解空间随机生成一个新的和声变量作为新和声Xnew;①. Randomly generate a random number rand from 0 to 1. If rand<HMCR, then apply the learning harmony memory mechanism and randomly select a harmony variable from the existing harmony memory HM as the new harmony X new ; Otherwise, a new harmony variable is randomly generated from the solution space as a new harmony X new by applying the mechanism of randomly selecting the tone;
②、由①可得到一个和声变量Xnew,若这个和声变量是通过学习和声记忆库产生的,则需要对这个和声变量进行微调:若随机产生一个0到1间的随机数rand1<PAR,则需要对新和声Xnew进行基于forward_insert邻域的音调微调操作实现音调微调产生新个体;若rand1≥PAR,则需要对新和声Xnew实行基于swap邻域的音调微调操作,产生新个体,具体公式如下:②. A harmony variable X new can be obtained from ①. If this harmony variable is generated by learning the harmony memory, it is necessary to fine-tune this harmony variable: If a random number rand1 between 0 and 1 is randomly generated <PAR, then it is necessary to perform pitch fine-tuning operations based on the forward_insert neighborhood for the new harmony X new to generate new individuals; if rand1≥PAR, it is necessary to perform a pitch fine-tuning operation based on the swap neighborhood for the new harmony X new , Generate a new individual, the specific formula is as follows:
Step5、更新和声记忆库:根据Step4,能得到一个由新和声组成的新和声记忆库HMnew,对新和声记忆库中每各个体进行评估,可得到其对应的目标函数值f,将新和声记忆库中的个体与Step3中产生的初始和声记忆库HM中的个体进行一一相互对比,若HMnew中的个体Xnew优于HM中的个体Xold,即f(Xnew)<f(Xold),则将HMnew中的个体Xnew代替HM中的个体Xold;否则,不做修改;Step5. Update the harmony memory: According to Step4, a new harmony memory HM new composed of new harmony can be obtained, and each individual in the new harmony memory can be evaluated to obtain its corresponding objective function value f , compare the individuals in the new harmony memory bank with the individuals in the initial harmony memory bank HM generated in Step3, if the individual X new in HM new is better than the individual X old in HM, that is, f( X new )<f(X old ), then replace individual X new in HM new with individual Xo ld in HM; otherwise, do not modify;
Step6、基于问题的局部搜索:将新种群中五分之一的个体看做“选中个体”,对每一个“选中个体”依次进行探索阶段和扰动阶段,如果局部搜索得到的个体优于“选中个体”,则将其替换,并将当代种群作为新一代种群;Step6. Problem-based local search: regard one-fifth of the individuals in the new population as "selected individuals", and carry out the exploration stage and the disturbance stage for each "selected individual" in turn. If the individual obtained by the local search is better than the "selected individual", individual", replace it and use the current population as the new generation population;
Step7、终止条件:设定终止条件为算法运行时间T=100×n,如果满足,则输出“最优个体”;否则转至步骤Step4,反复迭代,直至满足终止条件为止。Step7. Termination condition: set the termination condition to be the running time of the algorithm T=100×n, if it is satisfied, then output the "optimal individual"; otherwise, go to step Step4 and iterate repeatedly until the termination condition is satisfied.
所述探索阶段利用“backward_insert”邻域操作,探索次数设置为待加工齿轮的总数n;采用基于“interchange”的邻域操作实现扰动阶段,扰动次数为3次,对扰动后的个体进行更为细致的探索。The exploration stage uses the "backward_insert" neighborhood operation, and the number of explorations is set to the total number of gears to be processed n; the neighborhood operation based on "interchange" is used to realize the disturbance stage, and the number of disturbances is 3 times. Detailed exploration.
本发明的有益效果是:本发明提出了齿轮机械加工过程的调度模型和优化目标,可在短时间内获得齿轮机械加工过程的调度问题的优良解,从而保证齿轮在出厂时能够具有较高的合格率,同时使得齿轮加工工艺过程的表达更加清晰准确;采用依据所述离散和声搜索算法步骤得到的当前代种群的“优质个体”更新下一代个体,能够更好的引导算法进行全局搜索;在种群的更新过程中通过反复调整乐队(种群)中各个和声(个体)的音调(适配值),最终达到美妙的和声状态,这不仅能够使得优势个体的历史信息得到充分利用,还可以保证算法的全局搜索具有一定的宽度;在局部搜索中利用“interchange”操作进行扰动,有利于算法跳出局部最优,进而使得算法的搜索领域更为广泛,结合“backward_insert”邻域搜索机制使得算法的局部开发能力得到显著提高,解的质量得到明显改善。The beneficial effect of the present invention is that: the present invention proposes a scheduling model and an optimization target of the gear machining process, and can obtain an excellent solution to the scheduling problem of the gear machining process in a short time, thereby ensuring that the gear can have a higher efficiency when it leaves the factory. At the same time, the expression of the gear processing process is clearer and more accurate; the "high-quality individuals" of the current generation population obtained according to the steps of the discrete harmony search algorithm are used to update the next generation of individuals, which can better guide the algorithm to perform a global search; In the process of updating the population, by repeatedly adjusting the tone (adaptation value) of each harmony (individual) in the band (population), a wonderful harmony state is finally achieved, which not only makes full use of the historical information of the dominant individual, but also It can ensure that the global search of the algorithm has a certain width; using the "interchange" operation to perturb in the local search is conducive to the algorithm jumping out of the local optimum, thereby making the search field of the algorithm wider, combined with the "backward_insert" neighborhood search mechanism. The local development ability of the algorithm is significantly improved, and the quality of the solution is significantly improved.
附图说明Description of drawings
图1为本发明中齿轮机械加工过程的工艺流程示意图;Fig. 1 is the technological process schematic diagram of gear machining process among the present invention;
图2为本发明的整体算法流程图;Fig. 2 is the overall algorithm flowchart of the present invention;
图3为本发明中问题解的表达示意图;Fig. 3 is the representation schematic diagram of problem solution among the present invention;
图4为本发明的基于“前向插入”(forward_insert)邻域的音调微调操作变化示意图;Fig. 4 is the schematic diagram of the pitch fine-tuning operation change based on "forward insertion" (forward_insert) neighborhood of the present invention;
图5为本发明的基于“交换”(swap)邻域的音调微调操作变化示意图;Fig. 5 is a schematic diagram of the change of pitch fine-tuning operation based on "exchange" (swap) neighborhood of the present invention;
图6为本发明的基于“interchange”领操作的变化示意图;Fig. 6 is a schematic diagram of the change of the collar operation based on "interchange" in the present invention;
图7为本发明的基于“backward_insert”邻域操作的变化示意图。Fig. 7 is a schematic diagram of the variation of the neighborhood operation based on "backward_insert" in the present invention.
具体实施方式Detailed ways
实施例1:如图1-7所示,一种齿轮机械加工过程的优化调度方法,通过确定待加工成型的一批齿轮毛坯在机械加工过程中的调度模型和优化目标,并用基于混合离散和声搜索算法的优化调度方法对目标进行优化;其中,调度模型依据齿轮在机械加工过程中,各个齿轮在各台加工机器上的加工时间来建立,同时优化目标为最小化最大完成时间Cmax(π):Example 1: As shown in Figures 1-7, an optimal scheduling method for a gear machining process, by determining the scheduling model and optimization objectives of a batch of gear blanks to be processed and formed in the machining process, and using a method based on hybrid discrete and The optimal scheduling method of the acoustic search algorithm optimizes the target; among them, the scheduling model is established according to the processing time of each gear on each processing machine during the machining process of the gear, and the optimization objective is to minimize the maximum completion time C max ( π):
Cmax(π)=C(πn,m)C max (π)=C(π n ,m)
式中,n×m表示问题的规模,n表示待加工的齿轮总数,m表示齿轮加工过程中所用的机器数,表示正整数的集合;π=[π1,π2,…,πi]表示待加工的齿轮的工序,πk表示π中第k个位置的齿轮,表示第πi个齿轮在第j台机器上的加工时间,C(πi,j)是第πi个齿轮在第j台机器上的完工时间;该模型的优化目标为在所有需加工的齿轮的排序集合Π中找到一个最优排序π*,使得最大完成时间Cmax(π)最小。In the formula, n × m represents the scale of the problem, n represents the total number of gears to be processed, m represents the number of machines used in the gear processing process, Indicates a set of positive integers; π=[π 1 ,π 2 ,…,π i ] indicates the process of the gear to be processed, π k indicates the gear at the kth position in π, Indicates the processing time of the π i -th gear on the j machine, C(π i ,j) is the completion time of the π i -th gear on the j machine; the optimization objective of the model is Find an optimal sorting π * in the sorting set Π of gears, so that the maximum completion time C max (π) is the smallest.
进一步地,可以设置所述基于混合离散和声搜索算法的优化调度方法具体为:Further, the optimal scheduling method based on the hybrid discrete harmony search algorithm can be set as:
Step1、编码方式的设计:以齿轮加工过程中的齿轮加工顺序进行编码,其排序为π=[π1,π2,…,πi],i=1,2,…,n,其中i为待加工的齿轮个数;Step1. The design of the encoding method: the encoding is carried out in the gear machining sequence in the gear machining process, and the order is π=[π 1 ,π 2 ,…,π i ], i=1,2,…,n, where i is Number of gears to be processed;
如:以待加工的齿轮毛坯进行排序编码,譬如有5个加工齿轮,3台加工机器,随机编码后产生一个齿轮加工排序为[5,3,1,2,4],每一台机器上的加工顺序均为该顺序。在排序[5,3,1,2,4]中,一号位置的5表示第一个加工齿轮为5号齿轮,二号位置的3表示第二个待加工齿轮为3号齿轮,三号位置的1表示第三个待加工齿轮为1号齿轮,依次类推。For example: sort and code the gear blanks to be processed. For example, there are 5 processing gears and 3 processing machines. After random coding, a gear processing sequence is [5, 3, 1, 2, 4], and each machine The processing sequence is the sequence. In the sequence [5,3,1,2,4], the 5 in the first position means that the first gear to be processed is gear No. 5, the 3 in the second position means that the second gear to be processed is gear No. 3, and the number three The position of 1 means that the third gear to be processed is the No. 1 gear, and so on.
Step2、参数初始化:和声记忆库的大小HMS即种群规模NP(种群规模为NP,即初始解的数量NP个),和声记忆库的取值概率HMCR,音调微调概率PAR,并设置算法开始时间;Step2. Parameter initialization: the size of the harmony memory HMS is the population size NP (the population size is NP, that is, the number of initial solutions NP), the value probability HMCR of the harmony memory, the pitch fine-tuning probability PAR, and set the algorithm to start time;
Step3、种群初始化:采用NEH方法产生一个初始种群个体,余下NP-1个个体使用随机方法产生,并记录每个个体的目标函数值f直至初始解的数量达到种群规模的要求;和声记忆库的具体形式如下:Step3. Population initialization: use the NEH method to generate an initial population individual, and use the random method to generate the remaining NP-1 individuals, and record the objective function value f of each individual until the number of initial solutions reaches the population size requirements; harmony memory The specific form is as follows:
其中,X1,X2,…,XHMS为生成的HMS个和声,f(X1),f(X2),…,f(XHMS)为其对应的目标函数值;表示第HMS个种群中第1,2,...,n个待加工的齿轮;Among them, X 1 , X 2 ,...,X HMS are the generated HMS harmony, f(X 1 ), f(X 2 ),...,f(X HMS ) are their corresponding objective function values; Indicates the 1st, 2nd,...,n gears to be processed in the HMS population;
Step4、生成新的和声(个体):新和声主要通过以下三种机理产生:学习和声记忆库,音调微调和随机选择音调,具体描述如下:Step4. Generate new harmony (individual): New harmony is mainly generated through the following three mechanisms: learning harmony memory, fine-tuning the tone and randomly selecting the tone. The specific description is as follows:
①、从0到1间随机产生随机数rand,若rand<HMCR,则应用学习和声记忆库机理,从已有的和声记忆库HM中随机选取一个和声变量作为新和声(个体)Xnew;否则,应用随机选择音调机理,从解空间随机生成一个新的和声变量作为新和声(个体)Xnew;①. Randomly generate a random number rand from 0 to 1. If rand<HMCR, apply the learning harmony memory mechanism and randomly select a harmony variable from the existing harmony memory HM as a new harmony (individual) X new ; otherwise, apply the mechanism of randomly selecting the tone, and randomly generate a new harmony variable from the solution space as the new harmony (individual) X new ;
②、由①可得到一个和声变量Xnew,若这个和声变量是通过学习和声记忆库产生的(即从和声库HM中随机选取得到),则需要对这个和声变量进行微调,本发明设计了两种音调微调操作,即基于“前向插入”(forward_insert)邻域的音调微调操作和基于“交换”(swap)邻域的音调微调操作。两种微调操作的选取由音调微调频率PAR来决定,具体方式为:②. From ①, a harmony variable X new can be obtained. If this harmony variable is generated by learning the harmony memory (that is, randomly selected from the harmony library HM), it is necessary to fine-tune the harmony variable. The present invention designs two pitch fine-tuning operations, that is, the pitch fine-tuning operation based on the "forward_insert" neighborhood and the pitch fine-tuning operation based on the "swap" neighborhood. The selection of the two fine-tuning operations is determined by the pitch fine-tuning frequency PAR. The specific method is:
由上式可知,首先随机产生一个0到1间的随机数rand1,若rand1<PAR,则需要对新和声Xnew进行基于“前向插入”(forward_insert)邻域的邻域操作实现音调微调产生新个体,其具体实现如图4所示;若rand1≥PAR,则需要对新和声Xnew实行基于“交换”(swap)邻域的音调微调操作,产生新个体,其具体实现如图5所示。It can be seen from the above formula that firstly, a random number rand1 between 0 and 1 is randomly generated, and if rand1<PAR, the neighborhood operation based on the "forward_insert" (forward_insert) neighborhood needs to be performed on the new harmony X new to realize pitch fine-tuning Generate a new individual, and its specific implementation is shown in Figure 4; if rand1≥PAR, then it is necessary to perform a tone fine-tuning operation based on the "swap" (swap) neighborhood of the new harmony X new to generate a new individual, and its specific implementation is shown in Figure 4 5.
Step5、更新和声记忆库。根据Step4,我们可以得到一个由新和声(新个体)组成的新和声记忆库(新种群)HMnew,对新和声记忆库中每各个体进行评估,可得到其对应的目标函数值f。将新和声记忆库中的个体与Step3中产生的初始和声记忆库HM中的个体进行一一相互对比,若HMnew中的个体Xnew优于HM中的个体Xold,即f(Xnew)<f(Xold),则将HMnew中的个体Xnew代替HM中的个体Xold;否则,不做修改。Step5. Update the harmony memory. According to Step4, we can obtain a new harmony memory (new population) HM new composed of new harmony (new individuals), and evaluate each individual in the new harmony memory to obtain its corresponding objective function value f. Compare the individuals in the new harmony memory with the individuals in the initial harmony memory HM generated in Step3, if the individual X new in HM new is better than the individual X old in HM, that is, f(X new )<f(X old ), then replace individual X new in HM new with individual X old in HM; otherwise, do not modify.
Step6、基于问题的局部搜索。为了平衡算法的全局搜索与局部搜索,提高算法对优质区域的勘探效率。本发明针对更新后的新种群中五分之一的个体,设计了基于“interchange”和“backward_insert”两种邻域操作的局部搜索。该局部搜索分为扰动阶段和探索阶段,采用基于“interchange”的邻域操作实现扰动阶段,扰动次数为3次,对扰动后的个体进行更为细致的探索,探索阶段利用“backward_insert”邻域操作,探索次数设置为待加工齿轮的总数n。将新种群中五分之一的个体看做“选中个体”,对每一个“选中个体”依次探索阶段和扰动阶段,如果局部搜索得到的个体优于“选中个体”,则将其替换,并将当代种群作为新一代种群;Step6. Problem-based local search. In order to balance the global search and local search of the algorithm, improve the exploration efficiency of the algorithm for high-quality areas. The present invention designs a local search based on two kinds of neighborhood operations "interchange" and "backward_insert" for one-fifth of individuals in the updated new population. The local search is divided into a disturbance stage and an exploration stage. The “interchange”-based neighborhood operation is used to realize the disturbance stage. The number of disturbances is 3 times, and the individual after the disturbance is explored in more detail. In the exploration stage, the “backward_insert” neighborhood is used. Operation, the number of explorations is set to the total number n of gears to be processed. One-fifth of the individuals in the new population are regarded as "selected individuals", and each "selected individual" is explored and disturbed in turn. If the individual obtained by local search is better than the "selected individual", it will be replaced, and Treat the current population as a new generation population;
Step7、终止条件:设定终止条件为算法运行时间T=100×n,如果满足,则输出“最优个体”;否则转至步骤Step4,反复迭代,直至满足终止条件为止。Step7. Termination condition: set the termination condition to be the running time of the algorithm T=100×n, if it is satisfied, then output the "optimal individual"; otherwise, go to step Step4 and iterate repeatedly until the termination condition is satisfied.
为了验证本发明所提的混合离散和声搜索算法(HDHSA)的有效性和鲁棒性,将HDHSA与标准和声搜索算法(HSA)进行对比。具体的对比试验如下:In order to verify the validity and robustness of the Hybrid Discrete Harmony Search Algorithm (HDHSA) proposed by the present invention, the HDHSA is compared with the standard Harmony Search Algorithm (HSA). The specific comparison test is as follows:
本发明中选取常用Flow shop测试问题集中的Rec类问题做为测试问题,在相同条件下,将标准和声搜索算法(HSA)与本发明所提的离散和声搜索算法(HDHSA)的所求目标函数值结果对比。针对不同规模的问题的算法运行时间均为T=100×n(单位:ms)。每种算法及其测试程序均由Delphi 2010版编程实现,操作系统为Win10,CPU主频为2.2GHz,内存为4GB。所提的混合离散和声搜索算法(HDHSA)的参数设置如下:种群规模popsize=2×n,和声记忆库的取值概率HMCR=0.9,音调微调概率PAR=0.3。每种算法均独立重复运行20次,其中AVG表示最优值均值,SD表示标准差。表1给出了在相同测试环境下,标准和声搜索算法(HSA)与本发明所提的离散和声搜索算法(HDHSA)的所求目标函数值结果对比。从表1可知,本发明所提算法在绝大部分测试问题上所求得的AVG和SD均优于标准和声搜索算法,这表明了本发明所提算法的有效性,也证明了离散和声搜索算法是求解齿轮机械加工过程优化调度问题的一种有效算法。In the present invention, the Rec class problem in the commonly used Flow shop test problem set is selected as the test problem, and under the same conditions, the standard harmony search algorithm (HSA) and the discrete harmony search algorithm (HDHSA) proposed by the present invention are compared. Comparison of objective function value results. The running time of the algorithm for problems of different scales is T=100×n (unit: ms). Each algorithm and its test program are programmed by Delphi 2010, the operating system is Win10, the main frequency of the CPU is 2.2GHz, and the memory is 4GB. The parameters of the proposed Hybrid Discrete Harmony Search Algorithm (HDHSA) are set as follows: population size popsize=2×n, value probability of harmony memory bank HMCR=0.9, pitch fine-tuning probability PAR=0.3. Each algorithm was repeated 20 times independently, where AVG represents the mean of the optimal value and SD represents the standard deviation. Table 1 shows the comparison of the objective function value results between the standard harmony search algorithm (HSA) and the discrete harmony search algorithm (HDHSA) proposed by the present invention under the same test environment. As can be seen from Table 1, the AVG and SD obtained by the proposed algorithm of the present invention are better than the standard harmony search algorithm on most of the test problems, which shows the effectiveness of the proposed algorithm of the present invention, and also proves that the discrete and Acoustic search algorithm is an effective algorithm for solving the optimal scheduling problem of gear machining process.
表1不同问题规模情况下所求得的目标函数值Table 1 Obtained objective function values under different problem scales
上面结合附图对本发明的具体实施方式作了详细说明,但是本发明并不限于上述实施方式,在本领域普通技术人员所具备的知识范围内,还可以在不脱离本发明宗旨的前提下作出各种变化。The specific implementation of the present invention has been described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned implementation, within the knowledge of those of ordinary skill in the art, it can also be made without departing from the gist of the present invention. Variations.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810478710.3A CN108681818A (en) | 2018-05-18 | 2018-05-18 | A kind of Optimization Scheduling of gear mechanism process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810478710.3A CN108681818A (en) | 2018-05-18 | 2018-05-18 | A kind of Optimization Scheduling of gear mechanism process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108681818A true CN108681818A (en) | 2018-10-19 |
Family
ID=63805245
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810478710.3A Pending CN108681818A (en) | 2018-05-18 | 2018-05-18 | A kind of Optimization Scheduling of gear mechanism process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108681818A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117669988A (en) * | 2023-12-26 | 2024-03-08 | 中建八局第一数字科技有限公司 | Q-Learning algorithm improvement NEH-based prefabricated part production scheduling method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104794322A (en) * | 2014-10-28 | 2015-07-22 | 中国矿业大学 | Multi-target batch scheduling method for solar cell module limited relief area based on second DNSGA |
CN105373845A (en) * | 2015-10-14 | 2016-03-02 | 南京理工大学 | Hybrid intelligent scheduling optimization method of manufacturing enterprise workshop |
CN105809344A (en) * | 2016-03-07 | 2016-07-27 | 浙江财经大学 | Hyper-heuristic algorithm based ZDT flow shop job scheduling method |
CN107230023A (en) * | 2017-06-12 | 2017-10-03 | 合肥工业大学 | Based on the production and transportation coordinated dispatching method and system for improving harmony search |
-
2018
- 2018-05-18 CN CN201810478710.3A patent/CN108681818A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104794322A (en) * | 2014-10-28 | 2015-07-22 | 中国矿业大学 | Multi-target batch scheduling method for solar cell module limited relief area based on second DNSGA |
CN105373845A (en) * | 2015-10-14 | 2016-03-02 | 南京理工大学 | Hybrid intelligent scheduling optimization method of manufacturing enterprise workshop |
CN105809344A (en) * | 2016-03-07 | 2016-07-27 | 浙江财经大学 | Hyper-heuristic algorithm based ZDT flow shop job scheduling method |
CN107230023A (en) * | 2017-06-12 | 2017-10-03 | 合肥工业大学 | Based on the production and transportation coordinated dispatching method and system for improving harmony search |
Non-Patent Citations (6)
Title |
---|
姜华,包云等: "混合变邻域和声搜索的独立任务调度问题研究", 《计算机工程与设计》 * |
武磊,潘全科等: "求解零空闲流水线调度问题的和声搜索算法", 《计算机集成制造系统》 * |
王玉亭,孙剑等: "基于离散和声搜索与模拟退火的混合算法", 《计算机工程》 * |
韩红燕,潘全科: "基于改进离散和声算法的批量流水线调度研究", 《计算机工程与应用》 * |
韩红燕,潘全科: "求解批量流水线调度问题的改进和声搜索算法", 《计算机工程》 * |
高开周,潘全科等: "求解NWFS调度的改进和声搜索算法", 《计算机工程》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117669988A (en) * | 2023-12-26 | 2024-03-08 | 中建八局第一数字科技有限公司 | Q-Learning algorithm improvement NEH-based prefabricated part production scheduling method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107193258B (en) | Integrated optimization method of energy-consuming NC machining process route and cutting parameters | |
CN103809506B (en) | The method of part processing optimal scheduling scheme is obtained based on a dimension particle cluster algorithm | |
CN113379087A (en) | Production, manufacturing and scheduling optimization method based on improved genetic algorithm | |
CN104504540A (en) | Method for dynamic flexible job workshop scheduling control based on multistage intelligent optimization algorithm | |
CN107945045A (en) | A kind of matching method for remanufacturing assembling process based on population genetic algorithm | |
CN113064392B (en) | Discrete optimization method based on matrix workshop AGV scheduling | |
CN104408528A (en) | Optimization scheduling method in raw material leaching process for chemical industry production | |
CN110147933A (en) | A kind of Numerical control cutting blanking Job-Shop scheduled production method based on improvement grey wolf algorithm | |
CN110472765B (en) | Low-entropy collaborative optimization method for workshop layout scheduling | |
CN105975701A (en) | Parallel scheduling disassembly path forming method based on mixing fuzzy model | |
CN105373845A (en) | Hybrid intelligent scheduling optimization method of manufacturing enterprise workshop | |
CN117035364A (en) | Distributed heterogeneous flow shop scheduling method based on improved mixed cause algorithm | |
CN108681818A (en) | A kind of Optimization Scheduling of gear mechanism process | |
CN117495041A (en) | Multi-target flexible job shop scheduling method based on mixed wolf algorithm | |
CN113112145A (en) | Data processing method and device, electronic equipment and storage medium | |
CN111814359A (en) | A Discrete Manufacturing-Oriented Integrated Workshop Scheduling and Assembly Sequence Planning Method | |
CN118657448B (en) | Improved production scheduling method for weaving flexible workshop based on NSGA-II | |
CN115249113A (en) | Distributed zero-waiting flow shop scheduling method and system with preparation time | |
CN115344011B (en) | Energy-saving distributed optimization system for two-stage assembly zero-waiting flow shop scheduling problem | |
CN114839930B (en) | An integrated scheduling system for distributed assembly blocked flow workshops | |
CN108873850A (en) | A kind of Optimization Scheduling of automation of machinery manufacture production process | |
CN117132181A (en) | A distributed flexible production and transportation collaborative scheduling method | |
CN117333084A (en) | An energy-saving distributed assembly zero-wait flow shop scheduling method and system based on hyper-heuristic multi-dimensional distribution estimation | |
CN116339255A (en) | A Green Optimal Scheduling Method Based on Distributed Assembly Production Process of Auto Parts | |
Pan et al. | An adaptive genetic algorithm for the flexible job-shop scheduling problem |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181019 |