CN112396214B - Method and system for smelting workshop scheduling based on improved teaching optimization algorithm - Google Patents
Method and system for smelting workshop scheduling based on improved teaching optimization algorithm Download PDFInfo
- Publication number
- CN112396214B CN112396214B CN202011086086.6A CN202011086086A CN112396214B CN 112396214 B CN112396214 B CN 112396214B CN 202011086086 A CN202011086086 A CN 202011086086A CN 112396214 B CN112396214 B CN 112396214B
- Authority
- CN
- China
- Prior art keywords
- individual
- student
- class
- grades
- students
- 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.)
- Active
Links
- 238000004422 calculation algorithm Methods 0.000 title claims abstract description 68
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000005457 optimization Methods 0.000 title claims abstract description 56
- 238000003723 Smelting Methods 0.000 title claims abstract description 46
- 238000004519 manufacturing process Methods 0.000 claims abstract description 24
- 230000008569 process Effects 0.000 claims description 23
- 238000007670 refining Methods 0.000 claims description 23
- 238000005265 energy consumption Methods 0.000 claims description 17
- 238000005266 casting Methods 0.000 claims description 13
- 239000002918 waste heat Substances 0.000 claims description 13
- 230000003044 adaptive effect Effects 0.000 claims description 12
- 238000002844 melting Methods 0.000 claims description 10
- 230000008018 melting Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 6
- 238000001816 cooling Methods 0.000 claims description 5
- 230000001174 ascending effect Effects 0.000 claims description 3
- 238000010276 construction Methods 0.000 claims description 2
- 239000002994 raw material Substances 0.000 abstract description 11
- 238000005495 investment casting Methods 0.000 description 7
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000006872 improvement Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical compound [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 description 2
- 239000000155 melt Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 229910052782 aluminium Inorganic materials 0.000 description 1
- XAGFODPZIPBFFR-UHFFFAOYSA-N aluminium Chemical compound [Al] XAGFODPZIPBFFR-UHFFFAOYSA-N 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 229910052742 iron Inorganic materials 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 229910052751 metal Inorganic materials 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 150000002739 metals Chemical class 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 229910052761 rare earth metal Inorganic materials 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
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/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- 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
- 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
- Y02P80/00—Climate change mitigation technologies for sector-wide applications
- Y02P80/10—Efficient use of energy, e.g. using compressed air or pressurized fluid as energy carrier
-
- 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)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Game Theory and Decision Science (AREA)
- Operations Research (AREA)
- Development Economics (AREA)
- Educational Administration (AREA)
- Manufacturing & Machinery (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明涉及车间调度优化技术领域,具体涉及一种基于改进教学优化算法的熔炼车间调度方法和系统。The invention relates to the technical field of workshop scheduling optimization, in particular to a smelting workshop scheduling method and system based on an improved teaching optimization algorithm.
背景技术Background technique
在高端装备精密铸造生产线中(如精密航空零部件、重型装备结构件等),一般金属如铝、铁及部分稀土元素的原材料可能无法在生产周期之初就全部准备完成。在大多数情况下,原材料可能会在不同的时刻到达熔炼车间。通过物联网等信息技术,原材料的动态到达时间会在生产周期之初就被车间管理系统知晓。与此同时,销售系统也会向车间管理系统提供熔炼工件订单的交货时间。熔炼车间作业是整个高端装备精密铸造过程能源消耗的关键环节,具备能耗周期长、能耗组成复杂、以及能耗总量巨大等典型特征。降低熔炼车间作业的能源消耗水平能够有效地降低熔模铸造生产线的能耗成本。熔炼车间作业围绕各类熔炼炉开展,熔炼炉的作业流程一般分为预热、振动给料、熔炼、精炼、浇铸、冷却等步骤。通过对具体的熔炼温度曲线分析后,可发现在浇铸完成之后,炉内仍然保持一定的温度并在一段时间冷却后降至初始温度。如何解决熔炼车间作业中面向节能的生产调度问题是亟需解决的问题。In the high-end equipment precision casting production line (such as precision aviation parts, heavy equipment structural parts, etc.), the raw materials of general metals such as aluminum, iron and some rare earth elements may not be fully prepared at the beginning of the production cycle. In most cases, raw materials may arrive at the melt shop at different times. Through information technology such as the Internet of Things, the dynamic arrival time of raw materials will be known by the workshop management system at the beginning of the production cycle. At the same time, the sales system will also provide the delivery time of the smelting workpiece order to the workshop management system. The smelting workshop operation is a key link in the energy consumption of the entire high-end equipment precision casting process, which has typical characteristics such as long energy consumption cycle, complex energy consumption composition, and huge total energy consumption. Reducing the energy consumption level of the melt shop operation can effectively reduce the energy cost of the investment casting production line. The operation of the smelting workshop is carried out around various smelting furnaces. The working process of the smelting furnace is generally divided into steps such as preheating, vibration feeding, smelting, refining, casting, and cooling. After analyzing the specific melting temperature curve, it can be found that after the casting is completed, the furnace still maintains a certain temperature and drops to the initial temperature after a period of cooling. How to solve the energy-saving production scheduling problem in the smelting workshop operation is an urgent problem to be solved.
现有的面向节能的生产调度问题主要利用机器关闭和重启策略减少生产过程空闲时段的能耗,未考虑到高端装备精密熔模铸造过程可能存在的余热利用现象,难以利用现有的物联网技术进行有效的能效平衡优化管理。The existing energy-saving production scheduling problem mainly uses the machine shutdown and restart strategy to reduce the energy consumption during the idle period of the production process, without considering the waste heat utilization phenomenon that may exist in the precision investment casting process of high-end equipment, it is difficult to use the existing Internet of Things technology Carry out effective energy efficiency balance optimization management.
本发明专利旨在给出求解带有原材料动态到达时间和机器休眠策略情形下精密熔炉铸造能效平衡优化问题的改进教学优化算法。已有的教学优化算法的步骤为:The patent of the present invention aims to provide an improved teaching optimization algorithm for solving the energy efficiency balance optimization problem of precision furnace casting with the dynamic arrival time of raw materials and the machine sleep strategy. The steps of the existing teaching optimization algorithm are as follows:
(1)初始化学生的数目及学科的数目;(1) Initialize the number of students and the number of subjects;
(2)随机初始化学生个体各个学科的成绩信息并计算各个学生个体的综合成绩;(2) Randomly initialize the achievement information of each individual subject of the student and calculate the comprehensive achievement of each individual student;
(3)将拥有最好综合成绩的学生作为教师并将拥有平均成绩的学生个体设置成均等学生个体;(3) Take the student with the best comprehensive grade as the teacher and set the individual student with the average grade as an equal student individual;
(4)利用均等学生个体以及教师个体信息对各个学生个体开展教学环节的迭代;(4) Use the information of equal individual students and individual teachers to iterate the teaching process for individual students;
(5)利用课堂内其它任一学生个体信息对各个学生个体开展学习环节的迭代;(5) Use the individual information of any other student in the classroom to iterate the learning process for each individual student;
(6)更新教师和均等学生各科成绩和综合成绩;(6) Update the grades and comprehensive grades of teachers and equal students in each subject;
(7)判断是否满足迭代条件,满足则转步骤(4),否则停止迭代,输出当前最优解。(7) Judging whether the iteration condition is satisfied, if so, go to step (4), otherwise stop the iteration, and output the current optimal solution.
现有的教学优化在随机化初始种群、教学环节、学习环节等方面存在的不足之处,导致搜索效率较低,且不能很好的平衡算法种群的多样性和收敛性之间的关系。The existing teaching optimization has shortcomings in randomizing the initial population, teaching links, learning links, etc., resulting in low search efficiency, and cannot balance the relationship between the diversity and convergence of the algorithm population.
发明内容Contents of the invention
(一)解决的技术问题(1) Solved technical problems
针对现有技术的不足,本发明提供了一种基于改进教学优化算法的熔炼车间调度方法和系统,解决了现有调度算法无法利用到高端装备精密熔模铸造过程可能存在的余热的问题。Aiming at the deficiencies of the existing technology, the present invention provides a smelting workshop scheduling method and system based on an improved teaching optimization algorithm, which solves the problem that the existing scheduling algorithm cannot utilize the waste heat that may exist in the precision investment casting process of high-end equipment.
(二)技术方案(2) Technical solution
为实现以上目的,本发明通过以下技术方案予以实现:To achieve the above object, the present invention is achieved through the following technical solutions:
第一方面,提供了一种基于改进教学优化算法的熔炼车间调度方法,该方法包括:In the first aspect, a smelting workshop scheduling method based on an improved teaching optimization algorithm is provided, the method includes:
S1、获取调度信息;设定总迭代次数,初始化迭代次数it=0;S1. Obtain scheduling information; set the total number of iterations, and initialize the number of iterations it=0;
S2、随机初始化班级内80%的学生个体的各科成绩,基于炉体余热充分利用原则随机初始化余下20%的学生个体的各科成绩,构建班级内的学生个体的初始各科成绩,且学科数量与零部件的数量相同;S2. Randomly initialize the grades of 80% of individual students in each subject in the class, and randomly initialize the grades of each subject of the remaining 20% of individual students based on the principle of fully utilizing the waste heat of the furnace, and construct the initial grades of each subject of individual students in the class. The quantity is the same as the quantity of parts;
S3、基于学生个体的初始各科成绩,分别计算班级内各个学生个体的综合成绩,构建初始班级成绩;S3. Based on the individual students' initial grades in each subject, calculate the comprehensive grades of each individual student in the class, and construct the initial class grades;
S4、将当前班级中综合成绩最好的学生个体作为教师个体;S4. Take the individual student with the best overall score in the current class as the individual teacher;
将当前班级中综合成绩为各科平均数的学生个体作为均等学生个体;The individual student whose comprehensive score is the average of each subject in the current class is regarded as an equal individual student;
将当前班级中综合成绩为中位数的学生个体作为中位数学生个体;Take the student individual whose comprehensive score is the median in the current class as the median individual student;
S5、基于当前的教师个体、均等学生个体和中位数学生个体对当前班级进行执行教学环节,并更新当前班级成绩;S5. Based on the current individual teacher, average student individual and median student individual, carry out the teaching process for the current class, and update the current class grade;
S6、利用班级内任一学生个体的各科成绩为班级内学生个体执行自适应学习环节,并再次更新当前班级成绩;S6. Use the grades of any individual student in the class to perform adaptive learning for the individual students in the class, and update the current grades of the class again;
S7、执行当前班级内学生个体的自学习环节,并更新当前班级成绩,形成第it次迭代后的班级成绩;S7. Execute the self-learning link of individual students in the current class, and update the current class grades to form the class grades after the it-th iteration;
S8、判断迭代次数it是否达到总迭代次数Mit,若是,输出当前最优学生个体成绩,并通过解码算法转换为调度序列;否则,更新当前教师个体、均等学生个体和中位数学生个体的各科成绩、迭代次数,并返回S5。S8. Judging whether the number of iterations it reaches the total number of iterations Mit, if so, output the current optimal student individual score, and convert it into a scheduling sequence through the decoding algorithm; otherwise, update the current individual teacher, equal student individual and median student individual Subject grades, iteration times, and return to S5.
进一步的,所述调度信息包括:Further, the scheduling information includes:
零部件集合Ω={J1,…,Jj,…,JN};Parts set Ω={J 1 ,…,J j ,…,J N };
零部件动态到达时间的集合 A collection of component dynamic arrival times
零部件所需要的预热时间tp;The warm-up time t p required by the parts;
熔炼时间π={s1,…,sj,…,sN};Melting time π={s 1 ,…,s j ,…,s N };
精炼时间ω={p1,…,pj,…pN}。Refining time ω={p 1 ,...,p j ,...p N }.
进一步的,所述S2、随机初始化班级内80%的学生个体的各科成绩,基于炉体余热充分利用原则随机初始化余下20%的学生个体的各科成绩,构建班级内的学生个体的初始各科成绩具体步骤为:Further, in the S2, randomly initialize the grades of 80% of the individual students in the class, and randomly initialize the grades of the remaining 20% of the individual students based on the principle of fully utilizing the waste heat of the furnace, and construct the initial grades of the individual students in the class. The specific steps for the grades are:
S201、随机生成[0,1]之间的随机数作为学生个体随机成绩;S201, randomly generating a random number between [0,1] as the student's individual random score;
S202、20%的学生个体随机成绩利用解码算法解码得到对应的调度序列,记为N为零部件数量;S202, 20% of the students' individual random scores are decoded by the decoding algorithm to obtain the corresponding scheduling sequence, which is recorded as N is the number of parts;
S203、设置j=1,并在max{tp,rj}时刻开始部件Jj的熔炼作业,记部件Jj精炼作业完工时间为Cj;S203. Set j=1, and start the smelting operation of part J j at the time of max{t p , r j }, record the completion time of the refining operation of part J j as C j ;
tp表示零部件所需要的预热时间,rj表示第j个零部件动态到达时间;t p represents the warm-up time required by the component, and r j represents the dynamic arrival time of the jth component;
S204、判断剩余零部件的到达时间是否不超过Cj,若成立,则安排所有到达时间不超过Cj的零部件中熔炼时间和精炼时间之和最大的零部件开始熔炼作业,精炼作业完工时间记作Cj+1;S204. Determine whether the arrival time of the remaining parts does not exceed C j , if yes, arrange the part with the largest sum of smelting time and refining time among all parts whose arrival time does not exceed C j to start the smelting operation, and the refining operation is completed within the time Denote as C j+1 ;
S205、判断j是否小于N-1,若成立,则令j=j+1并返回S204;否则,再次利用解码算法对当前的调度序列进行反推,获得20%的学生个体随机成绩对应的学生个体的初始各科成绩,并与80%的学生个体随机成绩共同组成班级内的学生个体的初始各科成绩。S205, judge whether j is less than N-1, if it is true, set j=j+1 and return to S204; otherwise, use the decoding algorithm to reverse the current scheduling sequence again, and obtain the students corresponding to 20% of the students' individual random scores The individual's initial grades of each subject, together with 80% of the individual random grades of the students, constitute the initial grades of each subject of the individual students in the class.
进一步的,S5、所述基于当前的教师个体、均等学生个体和中位数学生个体对当前班级进行执行教学环节,并更新当前班级成绩,具体包括如下步骤:Further, S5, performing the teaching process on the current class based on the current individual teacher, average student individual and median student individual, and updating the current class grade, specifically includes the following steps:
S501、初始化i=1,it=0;即进行第1次迭代时,基于初始班级成绩进行迭代;S501. Initialize i=1, it=0; that is, when performing the first iteration, iterate based on the initial class grade;
第it代班级学生个体的各科成绩和综合成绩为:The grades and comprehensive grades of the individual students in the it-th generation class are:
其中,f(Xi[it])表示第it代的班级中第i个学生个体的初始综合成绩;i=1,…,NP;Among them, f(X i [it]) represents the initial comprehensive score of the i-th individual student in the class of the it-th generation; i=1,...,NP;
XNP[it]表示第it代的班级中第NP个学生个体;X NP [it] represents the NP-th student individual in the class of the it-th generation;
表示第it代的班级中第NP个学生个体的第d科的初始成绩; Indicates the initial score of the d-th subject of the NP-th individual student in the class of the it-th generation;
教师个体的各科成绩和综合成绩为:The grades and comprehensive grades of individual teachers in each subject are as follows:
中位数学生个体的各科成绩和综合成绩为:The median grades of each subject and the comprehensive score of individual students are:
均等学生个体的各科成绩和综合成绩为:The scores of each subject and the comprehensive score of the average student are:
S502、令j=1;S502, let j=1;
S503、令randi=rand(0,1),TFi=1+rand(0,1),S503. Let rand i =rand(0,1), TF i =1+rand(0,1),
并且构建第一类新的学生个体第j科的成绩:And construct the grades of the first class of new student individual subject j:
S504、令randi=rand(0,1)和TFi=1+rand(0,1),S504. Let rand i =rand(0,1) and TF i =1+rand(0,1),
并且构建第二类新的学生个体第j科的成绩;构建公式为:And construct the grades of the jth subject of the second type of new student individual; the construction formula is:
S505、判断j≤N是否成立,若成立,则令j=j+1并转到S503;否则,分别计算两类新的学生个体New1Xi[it]和New2Xi[it]的综合成绩,并将Xi[it]、New1Xi[it]和New2Xi[it]中综合成绩最佳者保留为Xi[it+1];S505. Determine whether j≤N is established, if established, then set j=j+1 and turn to S503; otherwise, calculate the comprehensive scores of the two new types of student individuals New1X i [it] and New2X i [it] respectively, and Keep the one with the best comprehensive score among X i [it], New1X i [it] and New2X i [it] as X i [it+1];
S506、判断i≤NP是否成立,若成立,则令i=i+1,更新教师个体、均等生个体和中位数学生个体,并转到S502;否则,教学环节终止。S506. Determine whether i≤NP holds true, if true, set i=i+1, update individual teachers, average students, and median students, and turn to S502; otherwise, the teaching link is terminated.
进一步的,所述S6、利用班级内任一学生个体的各科成绩为班级内学生个体执行自适应学习环节,并再次更新当前班级成绩,具体包括如下步骤:Further, said S6, using the scores of any individual student in the class to perform adaptive learning for the individual student in the class, and updating the current class score again, specifically includes the following steps:
S601、设置i=1;S601, setting i=1;
S602、选定任一不同于Xi[it]的学生个体记作Xk[it],设置j=1;S602. Select any individual student who is different from Xi [it] as X k [it], and set j=1;
S603、令其中θ>1,并且构建新的学生个体第j科的成绩:S603. Order Where θ>1, and construct the grade of the jth subject of the new individual student:
S604、判断j≤N是否成立,若成立,则令j=j+1,并转到S603;否则,计算新的学生个体NewXi[it]的综合成绩,并将Xi[it]和NewXi[it]中综合成绩最佳者保留为Xi[it+1];S604. Determine whether j≤N is true, if true, set j=j+1, and turn to S603; otherwise, calculate the comprehensive score of the new student individual NewX i [it], and compare Xi [it] and NewX The one with the best overall score in i [it] is reserved as X i [it+1];
S605、判断i≤NP是否成立,若成立,则令i=i+1,并转到S602;否则,自适应学习环节终止。S605. Determine whether i≤NP holds true, if true, set i=i+1, and go to S602; otherwise, the adaptive learning link is terminated.
进一步的,所述S7、执行当前班级内学生个体的自学习环节,并更新当前班级成绩,形成第it次迭代后的班级成绩,具体步骤为:Further, said S7, executing the self-learning link of individual students in the current class, and updating the current class grades to form the class grades after the it iteration, the specific steps are:
S701:设置i=1,S701: set i=1,
S702、设置j=1;S702, setting j=1;
S703、令BRi=rand(0,1),并且构建新的学生个体第j科的成绩:S703. Let BR i =rand(0,1), and construct the grade of subject j of a new individual student:
S704、判断j≤N是否成立,若成立,则令j=j+1并转到S703;否则,计算新的学生个体NewBXi[it]的综合成绩,并将Xi[it]和NewBXi[it]中综合成绩最佳者保留为Xi[it+1];S704. Determine whether j≤N is true, if true, set j=j+1 and go to S703; otherwise, calculate the comprehensive score of the new student individual NewBX i [it], and compare Xi [it] and NewBX i The one with the best comprehensive score in [it] is reserved as X i [it+1];
S705:判断i≤NP是否成立,若成立,则令i=i+1,并转到S702;否则伯努利自学习学习环节终止。S705: Determine whether i≤NP holds true, if true, set i=i+1, and go to S702; otherwise, the Bernoulli self-learning learning link is terminated.
进一步的,所述学生个体的综合成绩的计算公式为:Further, the calculation formula of the comprehensive score of the individual student is:
其中,Cmax表示铸造系统的制造跨度,∑E表示铸造系统的总耗能,LBC和LBE铸造系统的制造跨度和总能耗的下界,wC和wE分别为制造跨度和总耗能的权重;Among them, C max represents the manufacturing span of the casting system, ∑E represents the total energy consumption of the casting system, the lower bounds of the manufacturing span and total energy consumption of the LB C and LB E casting systems, w C and w E are the manufacturing span and total energy consumption, respectively the weight of energy;
其中,sj表示第j个零部件的熔炼时间;Among them, s j represents the melting time of the jth component;
pj表示第j个零部件的精炼时间;p j represents the refining time of the jth component;
α为余热利用率,表示0<α<1;α is the utilization rate of waste heat, which means 0<α<1;
Δtj,j+1表示两个零部件加工的间隔时间;Δt j, j+1 represents the interval time between two parts processing;
tp表示零部件所需要的预热时间t p represents the warm-up time required by the parts
χ表示冷却超时阈值;χ represents the cooling timeout threshold;
Ps表示熔炼功率;P s represents the smelting power;
Pp表示精炼功率;P p represents the refining power;
Ppre表示预热功率。P pre represents the preheating power.
进一步的,所述解码算法用于将学生个体第it代的成绩转化成调度序列,具体步骤为:Further, the decoding algorithm is used to convert the grades of the it-th generation of individual students into a scheduling sequence, and the specific steps are:
步骤1:将学生个体的各科成绩与零部件序号一一对应;Step 1: Make a one-to-one correspondence between the grades of individual students in each subject and the serial numbers of parts;
步骤2:将零部件序号按照学生个体的各科成绩的大小升序排序,得到新的零部件序号排序,并将此排序作为调度序列。Step 2: Sort the serial numbers of the parts in ascending order according to the grades of individual students in each subject to obtain a new sorting of the serial numbers of the parts, and use this sorting as a scheduling sequence.
第二方面,提供了一种基于改进教学优化算法的熔炼车间调度系统,所述系统包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述方法的步骤。In the second aspect, a smelting workshop scheduling system based on an improved teaching optimization algorithm is provided, the system includes a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the The computer program realizes the steps of the above method.
(三)有益效果(3) Beneficial effects
本发明提供了一种基于改进教学优化算法的熔炼车间调度方法和系统。与现有技术相比,具备以下有益效果:The invention provides a smelting workshop scheduling method and system based on an improved teaching optimization algorithm. Compared with the prior art, it has the following beneficial effects:
(1)本发明提出了考虑原材料动态到达时间的能效平衡优化模型,为求解这一模型,创新了原有的教学优化算法,分别进行了班级初始化、教学环节、自适应学习环节以及伯努利交叉自学习环节等方面的改进与创新,结合模型本身的结构特性,将上述局部创新子过程纳入改进的教学优化算法的框架之下,改进后的算法能够更为客观地描述教学环节,自适应地在算法后期调整班级学生的学习步长,提升班级学生个体的自学习能力,可以在合理的求解时间内求解上述能效平衡优化模型的近似最优解,给企业的生产实际提供一定的理论指导与支撑。(1) The present invention proposes an energy efficiency balance optimization model considering the dynamic arrival time of raw materials. In order to solve this model, the original teaching optimization algorithm is innovated, and class initialization, teaching links, adaptive learning links and Bernoulli learning links are respectively carried out. Improvements and innovations in cross-self-learning links and other aspects, combined with the structural characteristics of the model itself, incorporate the above-mentioned local innovation sub-processes into the framework of the improved teaching optimization algorithm. The improved algorithm can describe the teaching links more objectively, self-adaptive In the late stage of the algorithm, the learning steps of the students in the class can be adjusted to improve the self-learning ability of the individual students in the class, and the approximate optimal solution of the above energy efficiency balance optimization model can be solved within a reasonable solution time, providing certain theoretical guidance for the actual production of enterprises with support.
(2)相较于传统教学优化算法中较为单一的随机初始化种群的方式,在改进的教学优化算法中,除了传统的随机初始化种群方式外,结合能效平衡优化问题的特征,引入了带有余热充分利用原则的初始种群质量提升机制,能够很好地加强初始种群的搜索精度。(2) Compared with the relatively simple method of randomly initializing the population in the traditional teaching optimization algorithm, in the improved teaching optimization algorithm, in addition to the traditional method of randomly initializing the population, combined with the characteristics of the energy efficiency balance optimization problem, a waste heat Making full use of the principled initial population quality improvement mechanism can well enhance the search accuracy of the initial population.
(3)传统的教学优化算法的教学环节只涉及到教师个体和均等生个体,但是考虑到综合成绩值求解的复杂性,拥有各科平均成绩的均等生并不能作为综合成绩值为平均值的个体,因此,在改进的教学优化算法中,引入了中位数学生的概念,可以很好地表达综合成绩值处于中间水平的学生个体。(3) The teaching link of the traditional teaching optimization algorithm only involves individual teachers and average students. However, considering the complexity of solving the comprehensive score value, the average student with the average score of each subject cannot be regarded as the average score of the comprehensive score. Individual, therefore, in the improved teaching optimization algorithm, the concept of median student is introduced, which can well express the individual student whose comprehensive grade value is in the middle level.
(4)为了进一步降低算法陷入局部最优的可能性,在改进的教学优化算法中,基于有偏随机秘钥算法中伯努利交叉的概念,创新提出了基于伯努利交叉的学生自学习环节,该环节可以很好地平衡搜索的深度和广度。(4) In order to further reduce the possibility of the algorithm falling into a local optimum, in the improved teaching optimization algorithm, based on the concept of Bernoulli crossover in the biased random secret key algorithm, an innovative self-learning method for students based on Bernoulli crossover is proposed link, which can well balance the depth and breadth of the search.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the 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. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例的流程图。Fig. 1 is a flowchart of an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. example. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本申请实施例通过提供一种基于改进教学优化算法的熔炼车间调度方法和系统,解决了现有调度算法无法利用到高端装备精密熔模铸造过程可能存在的余热的问题,实现熔炼车间作业中面向节能的生产调度。The embodiment of the present application provides a smelting workshop scheduling method and system based on an improved teaching optimization algorithm, which solves the problem that the existing scheduling algorithm cannot utilize the waste heat that may exist in the precision investment casting process of high-end equipment, and realizes the oriented Energy-efficient production scheduling.
本申请实施例中的技术方案为解决上述技术问题,总体思路如下:考虑原材料动态到达时间的能效平衡优化模型,为求解这一模型,创新了原有的教学优化算法,分别进行了班级初始化、教学环节、自适应学习环节以及伯努利自学习环节等方面的改进与创新,结合模型本身的结构特性,将上述局部创新子过程纳入改进的教学优化算法的框架之下,改进后的算法能够更为客观地描述教学环节,自适应地在算法后期调整班级学生的学习步长,提升班级学生个体的自学习能力,可以在合理的求解时间内求解上述能效平衡优化模型的近似最优解,给企业的生产实际提供一定的理论指导与支撑。The technical solution in the embodiment of this application is to solve the above-mentioned technical problems. The general idea is as follows: Considering the energy efficiency balance optimization model of the dynamic arrival time of raw materials, in order to solve this model, the original teaching optimization algorithm is innovated, and the class initialization, Improvements and innovations in teaching, self-adaptive learning, and Bernoulli self-learning, combined with the structural characteristics of the model itself, incorporate the above local innovation sub-processes into the framework of the improved teaching optimization algorithm. The improved algorithm can Describe the teaching process more objectively, adaptively adjust the learning step size of class students in the later stage of the algorithm, improve the self-learning ability of individual class students, and can solve the approximate optimal solution of the above energy efficiency balance optimization model within a reasonable solution time, Provide certain theoretical guidance and support for the actual production of enterprises.
为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。In order to better understand the above-mentioned technical solution, the above-mentioned technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
实施例1:Example 1:
如图1所示,本发明提供了一种基于改进教学优化算法的熔炼车间调度方法,该方法由计算机执行,该方法包括:As shown in Figure 1, the present invention provides a smelting workshop scheduling method based on an improved teaching optimization algorithm, which is executed by a computer, and the method includes:
S1、获取调度信息;设定总迭代次数Mit,初始化迭代次数it=0;S1. Obtain scheduling information; set the total number of iterations Mit, and initialize the number of iterations it=0;
S2、随机初始化班级内80%的学生个体的各科成绩,基于炉体余热充分利用原则随机初始化余下20%的学生个体的各科成绩,构建班级内的学生个体的初始各科成绩;S2. Randomly initialize the grades of 80% of individual students in each subject in the class, and randomly initialize the grades of each subject of the remaining 20% of individual students based on the principle of fully utilizing the waste heat of the furnace body, and construct the initial grades of each subject of individual students in the class;
S3、基于学生个体的初始各科成绩,分别计算班级内各个学生个体的综合成绩,构建初始班级成绩;S3. Based on the individual students' initial grades in each subject, calculate the comprehensive grades of each individual student in the class, and construct the initial class grades;
S4、将当前班级中综合成绩最好的学生个体作为教师个体;S4. Take the individual student with the best overall score in the current class as the individual teacher;
将当前班级中综合成绩为各科平均数的学生个体作为均等学生个体;The individual student whose comprehensive score is the average of each subject in the current class is regarded as an equal individual student;
将当前班级中综合成绩为中位数的学生个体作为中位数学生个体;Take the student individual whose comprehensive score is the median in the current class as the median individual student;
S5、基于当前的教师个体、均等学生个体和中位数学生个体对当前班级进行执行教学环节,并更新当前班级成绩;S5. Based on the current individual teacher, average student individual and median student individual, carry out the teaching process for the current class, and update the current class grade;
S6、利用班级内任一学生个体的各科成绩为班级内学生个体执行自适应学习环节,并再次更新当前班级成绩;S6. Use the grades of any individual student in the class to perform adaptive learning for the individual students in the class, and update the current grades of the class again;
S7、执行当前班级内学生个体的自学习环节,并更新当前班级成绩,形成第it次迭代后的班级成绩;S7. Execute the self-learning link of individual students in the current class, and update the current class grades to form the class grades after the it-th iteration;
S8、判断迭代次数it是否达到总迭代次数Mit,若是,输出当前最优学生个体成绩,并通过解码算法转换为调度序列;否则,更新当前教师个体、均等学生个体和中位数学生个体的各科成绩、迭代次数,并返回S5。S8. Judging whether the number of iterations it reaches the total number of iterations Mit, if so, output the current optimal student individual score, and convert it into a scheduling sequence through the decoding algorithm; otherwise, update the current individual teacher, equal student individual and median student individual Subject grades, iteration times, and return to S5.
本实施例的有益效果为:The beneficial effects of this embodiment are:
本发明提出了考虑原材料动态到达时间的能效平衡优化模型,为求解这一模型,创新了原有的教学优化算法,分别进行了班级初始化、教学环节、自适应学习环节以及伯努利自学习环节等方面的改进与创新,结合模型本身的结构特性,将上述局部创新子过程纳入改进的教学优化算法的框架之下,改进后的算法能够更为客观地描述教学环节,自适应地在算法后期调整班级学生的学习步长,提升班级学生个体的自学习能力,可以在合理的求解时间内求解上述能效平衡优化模型的近似最优解,给企业的生产实际提供一定的理论指导与支撑。The present invention proposes an energy efficiency balance optimization model considering the dynamic arrival time of raw materials. In order to solve this model, the original teaching optimization algorithm is innovated, and class initialization, teaching links, adaptive learning links and Bernoulli self-learning links are respectively carried out In combination with the structural characteristics of the model itself, the above local innovation sub-processes are incorporated into the framework of the improved teaching optimization algorithm. The improved algorithm can describe the teaching process more objectively and adaptively in the later stage of the algorithm. Adjusting the learning step size of class students and improving the individual self-learning ability of class students can solve the approximate optimal solution of the above energy efficiency balance optimization model within a reasonable solution time, providing certain theoretical guidance and support for the actual production of enterprises.
下面对本发明实施例的实现过程进行详细说明:The implementation process of the embodiment of the present invention is described in detail below:
S1、获取调度信息;设定总迭代次数Mit,初始化迭代次数it=0;S1. Obtain scheduling information; set the total number of iterations Mit, and initialize the number of iterations it=0;
所述调度信息包括:The scheduling information includes:
有N个高端装备精密零部件需要在拥有单个熔炼炉的精密铸造车间进行浇铸作业,高端装备零部件集合记作Ω={J1,…,Jj,…,JN};零部件的序号为{1,2,…,N};There are N high-end equipment precision parts that need to be cast in a precision casting workshop with a single melting furnace. The set of high-end equipment parts is recorded as Ω={J 1 ,…,J j ,…,J N }; the serial number of the parts is {1,2,...,N};
所有的零部件的原材料到达熔炼车间的时间不一致,但是通过物联网技术可以提前获知,零部件动态到达时间的集合记作 The time when the raw materials of all parts arrive at the smelting workshop is inconsistent, but it can be known in advance through the Internet of Things technology, and the collection of dynamic arrival times of parts is recorded as
由于预热操作主要针对炉内坩埚及炉体系统,基本在处理各个零部件时预热时间相差无几,因此,处理各个零部件所需要的预热时间相同并记作tp;Since the preheating operation is mainly aimed at the crucible and furnace body system in the furnace, the preheating time is almost the same when processing each component, so the preheating time required for processing each component is the same and recorded as t p ;
在熔炼和精炼阶段,因为各个零部件所需原材料的重量和体积有所不同,因此所需的熔炼和精炼时间有所不同,分别记作:In the smelting and refining stage, because the weight and volume of the raw materials required for each part are different, the required smelting and refining time are different, which are recorded as:
熔炼时间π={s1,…,sj,…,sN};Melting time π={s 1 ,…,s j ,…,s N };
精炼时间ω={p1,…,pj,…pN};Refining time ω={p 1 ,...,p j ,...p N };
S2、随机初始化班级内80%的学生个体的各科成绩,基于炉体余热充分利用原则随机初始化余下20%的学生个体的各科成绩,构建班级内的学生个体的初始各科成绩,学科数量d与零部件的数量相同。S2. Randomly initialize the scores of 80% of individual students in each subject in the class, and randomly initialize the scores of each subject of the remaining 20% of individual students based on the principle of making full use of the waste heat of the furnace, and construct the initial scores of individual students in each subject in the class, the number of subjects d is the same as the number of parts.
具体包括如下步骤:Specifically include the following steps:
S201、随机生成[0,1]之间的随机数作为学生个体随机成绩;S201, randomly generating a random number between [0,1] as the student's individual random score;
S202、20%的学生个体随机成绩利用解码算法解码得到对应的调度序列,记为 S202, 20% of the students' individual random scores are decoded by the decoding algorithm to obtain the corresponding scheduling sequence, which is recorded as
S203、设置j=1,并在max{tp,rj}时刻开始部件Jj的熔炼作业,记部件Jj精炼作业完工时间为Cj;S203. Set j=1, and start the smelting operation of part J j at the time of max{t p , r j }, record the completion time of the refining operation of part J j as C j ;
S204、判断剩余零部件的到达时间是否不超过Cj,若成立,则安排所有到达时间不超过Cj的零部件中熔炼时间和精炼时间之和最大的零部件开始熔炼作业,精炼作业完工时间记作Cj+1;S204. Determine whether the arrival time of the remaining parts does not exceed C j , if yes, arrange the part with the largest sum of smelting time and refining time among all parts whose arrival time does not exceed C j to start the smelting operation, and the refining operation is completed within the time Denote as C j+1 ;
S205、判断j是否小于N-1,若成立,则令j=j+1并返回S204;否则,再次利用解码算法对当前的调度序列进行反推,获得20%的学生个体随机成绩对应的学生个体的初始各科成绩,并与80%的学生个体随机成绩共同组成班级内的学生个体的初始各科成绩。S205, judge whether j is less than N-1, if it is true, set j=j+1 and return to S204; otherwise, use the decoding algorithm to reverse the current scheduling sequence again, and obtain the students corresponding to 20% of the students' individual random scores The individual's initial grades of each subject, together with 80% of the individual random grades of the students, constitute the initial grades of each subject of the individual students in the class.
其中,所述解码算法用于将学生个体第it代的成绩转化成调度序列,具体步骤如下:Wherein, the decoding algorithm is used to convert the achievement of the ith generation of the individual student into a scheduling sequence, and the specific steps are as follows:
步骤1:将学生个体的各科成绩与零部件序号{1,2,…,N}一一对应;Step 1: Combine the scores of individual students in each subject One-to-one correspondence with the part number {1,2,...,N};
步骤2:将零部件序号{1,2,…,N}按照学生个体的各科成绩的大小升序排序,得到新的零部件序号排序,并将此排序作为调度序列。Step 2: Align the component serial numbers {1, 2, ..., N} according to the grades of individual students in each subject Sort in ascending order of the size of the new parts and components, and use this sort as the scheduling sequence.
S3、基于学生个体的初始各科成绩,分别计算班级内各个学生个体的综合成绩,即调度序列的能效平衡指标;构建初始班级成绩;S3. Based on the individual students' initial grades in each subject, calculate the comprehensive grades of each individual student in the class, that is, the energy efficiency balance index of the scheduling sequence; construct the initial class grades;
依据实际熔炼过程的特点,具备以下典型特征:According to the characteristics of the actual smelting process, it has the following typical characteristics:
①所有零部件均按照非抢占的加工方式进行浇铸作业,即一旦开始某个零部件的浇铸作业,则该过程不可打断,后续零部件的浇铸必须在上一个零部件加工完成之后。① All parts are casted in a non-preemptive processing method, that is, once the casting operation of a certain part is started, the process cannot be interrupted, and the casting of subsequent parts must be completed after the processing of the previous part.
②假设每个零部件的熔炼温度和精炼温度趋于一致,一旦坩埚处理完上一个零部件Jj-1紧接着处理下一个零部件Jj时,后者的熔炼时间为αsj,其中α为余热利用率,0<α<1。②Assuming that the melting temperature and refining temperature of each part tend to be the same, once the crucible finishes processing the previous part J j-1 and then processes the next part J j , the melting time of the latter is αs j , where α is the waste heat utilization rate, 0<α<1.
③一旦坩埚及炉体系统冷却时间超过阈值χ时,下一个零部件进行浇铸作业时还需要额外的预热时间tp。③Once the cooling time of the crucible and furnace system exceeds the threshold χ, an additional warm-up time t p is required for the casting operation of the next component.
④假设坩埚及炉体的预热功率为Ppre,熔炼功率为Ps,精炼功率为Pp。上述能效平衡优化的目标一方面在于最小化浇铸所有零部件所需要的制造跨度,另一方面在于最小化坩埚及炉体系统总能耗。④Assume that the preheating power of the crucible and furnace body is P pre , the melting power is P s , and the refining power is P p . The goal of the energy efficiency balance optimization mentioned above is on the one hand to minimize the manufacturing span required to cast all parts, and on the other hand to minimize the total energy consumption of the crucible and furnace system.
假设零部件加工序列为相邻Jj和Jj+1两部件之间的空闲时间为Δti,i+1,那么制造跨度可计算为:Suppose the parts processing sequence is The idle time between two adjacent parts J j and J j+1 is Δt i,i+1 , then the manufacturing span can be calculated as:
那么铸造系统总能耗可以计算为:Then the total energy consumption of the foundry system can be calculated as:
由问题的性质可得到铸造系统的制造跨度和总能耗的下界分别为:According to the nature of the problem, the lower bounds of the manufacturing span and total energy consumption of the casting system are respectively:
结合上述制造跨度和能耗下界信息,可以将上述双目标问题转化成单目标问题,调度序列的能效平衡指标(即学生个体的综合成绩)可以表示如下:Combining the above-mentioned manufacturing span and energy consumption lower bound information, the above-mentioned double-objective problem can be transformed into a single-objective problem, and the energy efficiency balance index of the scheduling sequence (that is, the comprehensive score of the individual student) can be expressed as follows:
wC和wE分别为制造跨度和总耗能的权重。w C and w E are the weights of manufacturing span and total energy consumption, respectively.
因此,计算班级内各个学生个体的综合成绩的具体步骤可采用如下步骤:Therefore, the specific steps for calculating the comprehensive grades of individual students in the class can be as follows:
S301、将学生个体的初始各科成绩利用解码算法转换为调度序列,记为 S301. Using the decoding algorithm to convert the individual student's initial scores in each subject into a scheduling sequence, denoted as
S302、设置j=1,并在max{tp,rj}时刻开始部件Jj的熔炼作业,记部件Jj精炼作业完工时间为Cj;S302. Set j=1, and start the smelting operation of component J j at the time max{t p , r j }, record the completion time of the refining operation of component J j as C j ;
S303、在max{Cj,rj+1}时刻开始部件Jj+1的熔炼作业,记部件Jj+1精炼作业完工时间为Cj+1,记录Δtj,j+1=max{Cj,rj+1}-Cj的值;S303. Start the smelting operation of component J j+1 at the time of max{C j ,r j+1 }, record the completion time of the refining operation of component J j+1 as C j+1 , and record Δt j,j+1 = max{ C j , r j+1 } - the value of C j ;
S304、判断j是否小于N-1,若成立,则令j=j+1并转回步骤2;否则计算并输出能效平衡指标,并将其作为学生个体的综合成绩。S304. Determine whether j is smaller than N-1. If yes, set j=j+1 and return to step 2; otherwise, calculate and output the energy efficiency balance index, and use it as the comprehensive score of the individual student.
基于学生个体的综合成绩和各科成绩,构建初始班级成绩,记为:Based on the comprehensive grades of individual students and the grades of each subject, the initial class grades are constructed, which are recorded as:
其中,f(Xi[0])表示班级中第i个学生个体的初始综合成绩;i=1,…,NP;Among them, f(X i [0]) represents the initial comprehensive score of the i-th individual student in the class; i=1,...,NP;
XNP[0]表示班级中第NP个学生个体;X NP [0] represents the NPth individual student in the class;
表示班级中第NP个学生个体的第d科的初始成绩; Indicates the initial score of the dth subject of the NPth individual student in the class;
S4、将当前班级中综合成绩最好的学生个体作为教师个体Xbest[0],即:S4. Take the individual student with the best overall score in the current class as the teacher individual X best [0], namely:
arg min{f(Xi[0]),i=1,…,NP}arg min{f(X i [0]),i=1,...,NP}
将当前班级中综合成绩为各科平均数的学生个体作为均等学生个体Xavg[0],即:In the current class, the student whose comprehensive score is the average of each subject is taken as the equal student individual X avg [0], that is:
将当前班级中综合成绩为中位数的学生个体作为中位数学生个体Xmed[0],即:Take the individual student whose comprehensive grade is the median in the current class as the median student individual X med [0], that is:
S5、基于当前的教师个体、均等学生个体和中位数学生个体对当前班级进行执行教学环节,并更新当前班级成绩;S5. Based on the current individual teacher, average student individual and median student individual, carry out the teaching process for the current class, and update the current class grade;
教学环节主要利用教师个体、均等生个体和中位数学生个体的成绩进行当前班级的迭代,具体步骤如下:The teaching process mainly uses the grades of individual teachers, average students, and median students to iterate the current class. The specific steps are as follows:
S501、初始化i=1,it=0;即进行第1次迭代时,基于初始班级成绩进行迭代。S501. Initialize i=1, it=0; that is, when performing the first iteration, iterate based on the initial grades of the class.
第it代班级学生个体的各科成绩和综合成绩具体表示如下:The grades and comprehensive grades of individual students in the ith generation class are specifically expressed as follows:
教师个体的各科成绩和综合成绩记作:Individual teachers' grades in each subject and comprehensive grades are recorded as:
中位数学生个体的各科成绩和综合成绩记作:The scores of each subject and the comprehensive score of the median individual student are recorded as:
均等学生个体的各科成绩和综合成绩记作:The scores of each subject and the comprehensive score of each individual student are recorded as:
S502、令j=1;S502, let j=1;
S503、令randi=rand(0,1),TFi=1+rand(0,1),S503. Let rand i =rand(0,1), TF i =1+rand(0,1),
并且按照如下公式构建第一类新的学生个体第j科的成绩;And according to the following formula to construct the first class of new student individual subject j grades;
S504、令randi=rand(0,1)和TFi=1+rand(0,1),S504. Let rand i =rand(0,1) and TF i =1+rand(0,1),
并且按照如下公式构建第二类新的学生个体第j科的成绩;And according to the following formula to construct the second type of new individual students' grades of subject j;
S505、判断j≤N是否成立,若成立,则令j=j+1并转到S503;否则,分别计算两类新的学生个体New1Xi[it]和New2Xi[it]的综合成绩,并将Xi[it]、New1Xi[it]和New2Xi[it]中综合成绩最佳者保留为Xi[it+1];S505. Determine whether j≤N is established, if established, then set j=j+1 and turn to S503; otherwise, calculate the comprehensive scores of the two new types of student individuals New1X i [it] and New2X i [it] respectively, and Keep the one with the best comprehensive score among X i [it], New1X i [it] and New2X i [it] as X i [it+1];
S506、判断i≤NP是否成立,若成立,则令i=i+1,更新教师个体、均等生个体和中位数学生个体,并转到S502;否则,教学环节终止。S506. Determine whether i≤NP holds true, if true, set i=i+1, update individual teachers, average students, and median students, and turn to S502; otherwise, the teaching link is terminated.
S6、利用班级内任一学生个体的各科成绩为班级内学生个体执行自适应学习环节,并再次更新当前班级成绩;S6. Use the grades of any individual student in the class to perform adaptive learning for the individual students in the class, and update the current grades of the class again;
自适应环节主要模拟班级内任意两个学生个体的相互学习,并且学习步长随着迭代次数的增加而增大,便于在迭代后期增加班级成绩的多样性。具体步骤如下:The adaptive link mainly simulates the mutual learning of any two individual students in the class, and the learning step increases with the increase of the number of iterations, which is convenient for increasing the diversity of class grades in the late iteration. Specific steps are as follows:
S601、设置i=1,S601, setting i=1,
S602、选定任一不同于Xi[it]的学生个体记作Xk[it],设置j=1;S602. Select any individual student who is different from Xi [it] as X k [it], and set j=1;
S603、令其中θ>1,并且按如下公式构建新的学生个体第j科的成绩;S603. Order Where θ>1, and construct a new individual student's grade j subject according to the following formula;
S604、判断j≤N是否成立,若成立,则令j=j+1,并转到S603;否则,计算新的学生个体NewXi[it]的综合成绩,并将Xi[it]和NewXi[it]中综合成绩最佳者保留为Xi[it+1];S604. Determine whether j≤N is true, if true, set j=j+1, and turn to S603; otherwise, calculate the comprehensive score of the new student individual NewX i [it], and compare Xi [it] and NewX The one with the best overall score in i [it] is reserved as X i [it+1];
S605、判断i≤NP是否成立,若成立,则令i=i+1,并转到S602;否则,自适应学习环节终止。S605. Determine whether i≤NP holds true, if true, set i=i+1, and go to S602; otherwise, the adaptive learning link is terminated.
S7、执行当前班级内学生个体的自学习环节,并更新当前班级成绩,形成第it次迭代后的班级成绩;S7. Execute the self-learning link of individual students in the current class, and update the current class grades to form the class grades after the it-th iteration;
伯努利自学习环节主要模拟班级内单个学生个体的自学习这一情景,通过伯努利交叉变异的方式进行学生个体的各科成绩的自我更新,更新的目标是为了达到教师个体的各科成绩。具体步骤如下:The Bernoulli self-study link mainly simulates the self-study situation of a single student in the class. The self-renewal of the individual student's grades in each subject is carried out through the Bernoulli cross-variation method. The goal of the update is to achieve the individual teacher's performance in each subject score. Specific steps are as follows:
S701:设置i=1,S701: set i=1,
S702、设置j=1;S702, setting j=1;
S703、令BRi=rand(0,1),并且按照如下公式构建新的学生个体第j科的成绩;S703. Let BR i =rand(0,1), and construct the grade of subject j of a new individual student according to the following formula;
S704、判断j≤N是否成立,若成立,则令j=j+1并转到S703;否则,计算新的学生个体NewBXi[it]的综合成绩,并将Xi[it]和NewBXi[it]中综合成绩最佳者保留为Xi[it+1];S704. Determine whether j≤N is true, if true, set j=j+1 and go to S703; otherwise, calculate the comprehensive score of the new student individual NewBX i [it], and compare Xi [it] and NewBX i The one with the best comprehensive score in [it] is reserved as X i [it+1];
S705:判断i≤NP是否成立,若成立,则令i=i+1,并转到S702;否则伯努利自学习学习环节终止。S705: Determine whether i≤NP holds true, if true, set i=i+1, and go to S702; otherwise, the Bernoulli self-learning learning link is terminated.
S8、判断迭代次数it是否达到总迭代次数Mit,若是,输出当前最优学生个体成绩,并通过解码算法转换为调度序列;否则,更新当前教师个体、均等学生个体和中位数学生个体的各科成绩、迭代次数,并返回S5。S8. Judging whether the number of iterations it reaches the total number of iterations Mit, if so, output the current optimal student individual score, and convert it into a scheduling sequence through the decoding algorithm; otherwise, update the current individual teacher, equal student individual and median student individual Subject grades, iteration times, and return to S5.
实施例2Example 2
本发明还提供了一种基于改进教学优化算法的熔炼车间调度系统,所述系统包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述方法的步骤。The present invention also provides a smelting workshop scheduling system based on the improved teaching optimization algorithm, the system includes a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the computer program The procedure is to realize the steps of the above-mentioned method.
可理解的是,本发明实施例提供的基于改进教学优化算法的熔炼车间调度系统与上述基于改进教学优化算法的熔炼车间调度方法相对应,其有关内容的解释、举例、有益效果等部分可以参考基于改进教学优化算法的熔炼车间调度方法中的相应内容,此处不再赘述。It can be understood that the smelting workshop scheduling system based on the improved teaching optimization algorithm provided by the embodiment of the present invention corresponds to the above-mentioned smelting workshop scheduling method based on the improved teaching optimization algorithm. The corresponding content in the smelting shop scheduling method based on the improved teaching optimization algorithm will not be repeated here.
综上所述,与现有技术相比,本发明具备以下有益效果:In summary, compared with the prior art, the present invention has the following beneficial effects:
本发明提出了考虑原材料动态到达时间的能效平衡优化模型,为求解这一模型,创新了原有的教学优化算法,分别进行了班级初始化、教学环节、自适应学习环节以及伯努利自学习环节等方面的改进与创新,结合模型本身的结构特性,将上述局部创新子过程纳入改进的教学优化算法的框架之下,改进后的算法能够更为客观地描述教学环节,自适应地在算法后期调整班级学生的学习步长,提升班级学生个体的自学习能力,可以在合理的求解时间内求解上述能效平衡优化模型的近似最优解,给企业的生产实际提供一定的理论指导与支撑。The present invention proposes an energy efficiency balance optimization model considering the dynamic arrival time of raw materials. In order to solve this model, the original teaching optimization algorithm is innovated, and class initialization, teaching links, adaptive learning links and Bernoulli self-learning links are respectively carried out In combination with the structural characteristics of the model itself, the above local innovation sub-processes are incorporated into the framework of the improved teaching optimization algorithm. The improved algorithm can describe the teaching process more objectively and adaptively in the later stage of the algorithm. Adjusting the learning step size of class students and improving the individual self-learning ability of class students can solve the approximate optimal solution of the above energy efficiency balance optimization model within a reasonable solution time, providing certain theoretical guidance and support for the actual production of enterprises.
需要说明的是,通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, through the above description of the implementation manners, those skilled in the art can clearly understand that each implementation manner can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments. In this document, relational terms such as first and second etc. are used only to distinguish one entity or operation from another without necessarily requiring or implying any such relationship between these entities or operations. Actual relationship or sequence. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, rather than 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: it can still be described in the foregoing embodiments Modifications are made to the recorded technical solutions, or equivalent replacements are made to some of the technical features; 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 (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011086086.6A CN112396214B (en) | 2020-10-12 | 2020-10-12 | Method and system for smelting workshop scheduling based on improved teaching optimization algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011086086.6A CN112396214B (en) | 2020-10-12 | 2020-10-12 | Method and system for smelting workshop scheduling based on improved teaching optimization algorithm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112396214A CN112396214A (en) | 2021-02-23 |
CN112396214B true CN112396214B (en) | 2023-09-01 |
Family
ID=74595509
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011086086.6A Active CN112396214B (en) | 2020-10-12 | 2020-10-12 | Method and system for smelting workshop scheduling based on improved teaching optimization algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112396214B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113846241A (en) * | 2021-09-18 | 2021-12-28 | 栋梁铝业有限公司 | Production method of high-performance special aluminum alloy section |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105226638A (en) * | 2015-09-06 | 2016-01-06 | 清华大学 | Based on the electric power system Calculation of Available Transfer Capability method improving learning aid algorithm |
CN107254593A (en) * | 2017-06-02 | 2017-10-17 | 东莞市易合软件科技有限公司 | A method for automatic batching of smelting |
CN107544246A (en) * | 2017-09-05 | 2018-01-05 | 昆明理工大学 | A kind of Optimization Scheduling of the preparation process of the coking coal materials of multiple-objection optimization |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107578178B (en) * | 2017-09-11 | 2018-08-28 | 合肥工业大学 | Based on the dispatching method and system for becoming neighborhood search and gravitation search hybrid algorithm |
-
2020
- 2020-10-12 CN CN202011086086.6A patent/CN112396214B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105226638A (en) * | 2015-09-06 | 2016-01-06 | 清华大学 | Based on the electric power system Calculation of Available Transfer Capability method improving learning aid algorithm |
CN107254593A (en) * | 2017-06-02 | 2017-10-17 | 东莞市易合软件科技有限公司 | A method for automatic batching of smelting |
CN107544246A (en) * | 2017-09-05 | 2018-01-05 | 昆明理工大学 | A kind of Optimization Scheduling of the preparation process of the coking coal materials of multiple-objection optimization |
Non-Patent Citations (1)
Title |
---|
铸造专业熔炼方向人才培养模式的探索与实践;陈庚;方琴;王泽忠;傅骏;彭显平;吴代建;;铸造技术(第12期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112396214A (en) | 2021-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106096788B (en) | Cost control method and system for converter steelmaking process based on PSO_ELM neural network | |
CN112396214B (en) | Method and system for smelting workshop scheduling based on improved teaching optimization algorithm | |
CN112132258A (en) | Multi-task learning model construction and optimization method based on deformable convolution | |
Zhu et al. | Coupling coordinated development of population, marine economy, and environment system: a case in Hainan province, China | |
CN105578472B (en) | A kind of wireless sensor network performance online Method for optimized planning based on immunity principle | |
CN107544246B (en) | A multi-objective optimization method for optimal scheduling of coking coal preparation process | |
CN106096724A (en) | Converter steelmaking process cost control method based on ELM neutral net and system | |
Wang et al. | Hybrid model for predicting oxygen consumption in BOF steelmaking process based on cluster analysis | |
Yao et al. | Research on the nonlinear impact of environmental regulation on the efficiency of China’s regional green economy: Insights from the PSTR model | |
CN115390946A (en) | A Mine Accident Rescue Task Offloading Method Based on Mobile Edge Computing | |
CN115563860A (en) | Modeling and time sequence optimization method for electric-hydrogen-carbon coupling characteristics of steel park | |
Wang et al. | A green supplier selection method based on utility and comprehensive expert weights in the Internet of Things. | |
CN115330164A (en) | A multi-energy optimization method and device for emission control enterprises based on carbon constraints | |
Youhua et al. | Research on big data technology and application in internet era | |
Wu | Research of Network Economy on China International Trade Under the Big Data | |
Liu | Evolutionary game between developers and governments in the development of BIM technology | |
CN113139135B (en) | Improved collaborative filtering network course recommendation algorithm | |
Xu | Analysis of the current situation of cross-border higher education in the background of internationalization | |
Xia et al. | Application of image recognition technology in the field of ecological environment entrepreneurship education for college students | |
Xu | Thoughts on Taxation Planning under the Background of Reform in Value-added Tax | |
Xu | Evaluation of scientific and technological innovation capabilities of the Guangdong-Hong Kong-Macao Greater Bay Area and research on its coordinated development path | |
Jianliang et al. | The Schemes, Purposes and Challenges of Primary and Secondary Educational Reform in India: Interpretation based on India’s “National Education Policy Implementation Plan 2020” | |
CN109961350B (en) | Virtual tourism system based on Internet of things and cloud computing | |
Yuan et al. | Computer Intelligent Evaluation Model of Tourism Industry Using Coupling Coordination Degree Model and Entropy Method | |
Fu et al. | Research on the Impact of University-Industry Collaboration on Xi'an Construction of Innovation City |
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 |