[go: up one dir, main page]

CN110852500B - Resource-limited hybrid flow shop optimization method - Google Patents

Resource-limited hybrid flow shop optimization method Download PDF

Info

Publication number
CN110852500B
CN110852500B CN201911061792.2A CN201911061792A CN110852500B CN 110852500 B CN110852500 B CN 110852500B CN 201911061792 A CN201911061792 A CN 201911061792A CN 110852500 B CN110852500 B CN 110852500B
Authority
CN
China
Prior art keywords
empire
colonial
machine
follows
stage
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
Application number
CN201911061792.2A
Other languages
Chinese (zh)
Other versions
CN110852500A (en
Inventor
李俊青
陶昕瑞
韩玉艳
刘闯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Liaocheng University
Original Assignee
Liaocheng University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Liaocheng University filed Critical Liaocheng University
Priority to CN201911061792.2A priority Critical patent/CN110852500B/en
Publication of CN110852500A publication Critical patent/CN110852500A/en
Application granted granted Critical
Publication of CN110852500B publication Critical patent/CN110852500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • G06F18/2134Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods based on separation criteria, e.g. independent component analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • General Business, Economics & Management (AREA)
  • Operations Research (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Educational Administration (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及车间调度优化领域。目的在于提供一种资源受限混合流水车间优化方法,所述方法包括:S1:提出基于二维向量的编码策略和相适应的局部搜索策略而改进帝国主义竞争过程的离散的帝国主义竞争算法;S2:结合模拟退火算法来提高离散的帝国主义竞争算法的性能;S3:在解码过程中动态分配资源。本发明能够以最小化完成时间为目标,来解决各种资源受限的混合流程排程问题。

Figure 201911061792

The invention relates to the field of workshop scheduling optimization. The purpose is to provide a resource-constrained mixed flow shop optimization method, the method includes: S1: Propose a discrete imperialist competition algorithm based on a two-dimensional vector encoding strategy and an adaptive local search strategy to improve the imperialist competition process; S2: Incorporating simulated annealing algorithms to improve the performance of discrete imperialist competition algorithms; S3: Dynamically allocating resources during decoding. The present invention can aim at minimizing the completion time to solve the scheduling problems of various resource-constrained mixed processes.

Figure 201911061792

Description

一种资源受限混合流水车间优化方法A resource-constrained hybrid flow shop optimization method

技术领域Technical Field

本发明涉及车间调度优化领域,具体涉及一种资源受限混合流水车间优化方法。The present invention relates to the field of workshop scheduling optimization, and in particular to a resource-constrained hybrid flow workshop optimization method.

背景技术Background Art

自资源约束项目调度问题首次提出以来,出现了各种资源约束项目调度问题。根据这些问题的特点,我们可以将它们分为若干类,如资源约束的并行机调度问题、资源约束的流车间调度问题、资源约束的混合流车间调度问题、资源约束的作业。车间调度问题,以及资源受限的柔性车间调度问题。Since the resource-constrained project scheduling problem was first proposed, various resource-constrained project scheduling problems have emerged. According to the characteristics of these problems, we can classify them into several categories, such as resource-constrained parallel machine scheduling problem, resource-constrained flow shop scheduling problem, resource-constrained mixed flow shop scheduling problem, resource-constrained job shop scheduling problem, and resource-constrained flexible shop scheduling problem.

Rajkumar使用贪婪的随机自适应搜索程序来解决资源受限的灵活工作车间调度问题,其目标是最小化最大生产时间、最大工作量和总工作量。郑和王使用基于知识的果蝇优化算法来解决工作顺序、机器和工人分配问题。朱等人利用强大的图形数据库NEO4J对这一问题进行了创新性的研究。。Gao和Pan提出了一种新的算法,称为双向量表示的随机多群微候鸟优化算法。陈提出了一种并行机可重入作业车间调度问题的调度算法。Chan和Lei分别使用遗传算法(GA)和可变邻域搜索来解决这个问题。熊等人提出了一种多目标进化算法来解决这类问题。Rajkumar used a greedy randomized adaptive search procedure to solve the resource-constrained flexible job shop scheduling problem, whose goal is to minimize the maximum production time, the maximum workload, and the total workload. Zheng and Wang used a knowledge-based fruit fly optimization algorithm to solve the work order, machine, and worker allocation problem. Zhu et al. used the powerful graph database NEO4J to conduct innovative research on this problem. Gao and Pan proposed a new algorithm called the random multi-swarm micro-migratory bird optimization algorithm represented by dual vectors. Chen proposed a scheduling algorithm for the parallel machine reentrant job shop scheduling problem. Chan and Lei used genetic algorithms (GA) and variable neighborhood search, respectively, to solve this problem. Xiong et al. proposed a multi-objective evolutionary algorithm to solve this type of problem.

Mendez等人针对资源约束的流程车间调度问题,提出了一种新的具有适当序列约束的混合整数线性规划数学模型。Nishi等人提出了一种基于拉格朗日分解与协调的分散调度方法。Figielska解决了具有优先权的调度流程问题,提出了一种启发式算法。Pei等人提出了一种混合BA-VNS算法在其编码过程中实现了最优调度规则。Lin等人也用气体来解决这个问题。Leu和Cheng等人提出了一种多项式算法,并考虑了资源回收过程。Sural等人提出了一种复杂度算法。解决工艺车间的单位时间作业调度问题。Mendez et al. proposed a new mixed integer linear programming mathematical model with appropriate sequence constraints for the resource-constrained process shop scheduling problem. Nishi et al. proposed a decentralized scheduling method based on Lagrangian decomposition and coordination. Figielska solved the scheduling process problem with priority and proposed a heuristic algorithm. Pei et al. proposed a hybrid BA-VNS algorithm that implemented the optimal scheduling rule in its encoding process. Lin et al. also used gas to solve this problem. Leu and Cheng et al. proposed a polynomial algorithm and considered the resource recovery process. Sural et al. proposed a complexity algorithm. Solve the unit time job scheduling problem in process workshops.

张等人对于资源受限的车间调度问题采用全局搜索的方法,设计了一种离散粒子群优化方法。Li等人提出了一种考虑机器和工人双重约束的分支种群遗传元启发式算法。Lei和Guo提出了一种两阶段动态邻域搜索方法。Tamssaouet等人测试了两种算法,结果表明,禁忌搜索算法在特定问题上表现良好。Faccio提出了一种模拟退火算法,并分析了参数的敏感性。Zhang et al. adopted a global search method for resource-constrained workshop scheduling problems and designed a discrete particle swarm optimization method. Li et al. proposed a branch population genetic metaheuristic algorithm considering the dual constraints of machines and workers. Lei and Guo proposed a two-stage dynamic neighborhood search method. Tamssaouet et al. tested two algorithms and the results showed that the taboo search algorithm performed well on specific problems. Faccio proposed a simulated annealing algorithm and analyzed the sensitivity of the parameters.

Figielska提出了一种用于资源约束的混合流车间调度问题的列生成算法,该算法包括线性规划、禁忌搜索算法和求解混合流车间问题的贪婪过程。Dosa等人在不同情况下应用近似算法和多项式算法求解具有作业分配约束的并行机调度问题。Figielska proposed a column generation algorithm for the mixed flow shop scheduling problem with resource constraints, which includes linear programming, taboo search algorithm and greedy process for solving the mixed flow shop problem. Dosa et al. applied approximate algorithms and polynomial algorithms to solve parallel machine scheduling problems with job allocation constraints in different situations.

但以上这些算法在实际应用过程中存在求解速度慢、求解复杂、准确率低等问题。本发明以最小化完成时间为目标,来解决各种资源受限的混合流程排程问题。However, the above algorithms have problems such as slow solution speed, complex solution, low accuracy, etc. in practical application. The present invention aims to minimize the completion time to solve various resource-constrained hybrid process scheduling problems.

发明内容Summary of the invention

本发明的目的在于解决上述现有技术中存在的难题,提供一种资源受限的混合流水车间调度问题的优化方法,缩短完工时间。The purpose of the present invention is to solve the above-mentioned problems existing in the prior art, to provide an optimization method for the resource-constrained hybrid flow shop scheduling problem, and to shorten the completion time.

为实现上述发明目的,本发明所采用的技术方案是:一种资源受限混合流水车间优化方法,其特征在于,所述方法包括:In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is: a resource-constrained hybrid flow shop optimization method, characterized in that the method comprises:

S1:提出基于二维向量的编码策略和相适应的局部搜索策略而改进帝国主义竞争过程的离散的帝国主义竞争算法;S1: A discrete imperialist competition algorithm is proposed to improve the imperialist competition process based on a two-dimensional vector encoding strategy and an adaptive local search strategy;

S2:结合模拟退火算法来提高离散的帝国主义竞争算法的性能;S2: Combine simulated annealing algorithm to improve the performance of discrete imperialist competition algorithm;

S3:在解码过程中动态分配资源。S3: Dynamically allocate resources during decoding.

优选的,所述S1中离散的帝国主义竞争算法实现过程还包括:Preferably, the discrete imperialist competition algorithm implementation process in S1 further includes:

步骤1帝国初始化:Step 1 Empire initialization:

步骤2帝国同化阶段;Step 2: Imperial assimilation phase;

步骤3帝国竞争阶段;Step 3: Empire competition stage;

步骤4帝国灭亡阶段。Step 4: The fall of the empire.

优选的,所述S1中离散的帝国主义竞争算法的编码策略如下:使用一个包含两个基于两向量(TVB)表示和一个基于机器甘特图(MGB)表示的两相编码机制,两向量一维是机器向量,一维是调度向量;Preferably, the encoding strategy of the discrete imperialist competition algorithm in S1 is as follows: using a two-phase encoding mechanism including two-vector-based (TVB) representations and one-machine Gantt chart (MGB) representation, where one dimension of the two vectors is a machine vector and the other dimension is a scheduling vector;

所述S1中步骤1是这样实现的:Step 1 in S1 is implemented as follows:

按照算例,把生成的国家分为帝国和殖民地,并根据帝国的势力分配给各个帝国,帝国的势力根据公式(2)来标准化:According to the example, the generated countries are divided into empires and colonies, and are allocated to each empire according to the power of the empire. The power of the empire is standardized according to formula (2):

Cn=cn-max{ci} (2)C n = c n - max{ ci } (2)

其中,cn是第N个帝国的适应度,Cn是帝国的标准化势力;根据帝国的标准化势力,用公式(3)来计算帝国的力量:Among them, c n is the fitness of the Nth empire, and C n is the standardized power of the empire. According to the standardized power of the empire, the power of the empire is calculated using formula (3):

Figure GDA0003684586290000031
Figure GDA0003684586290000031

Figure GDA0003684586290000032
是帝国的总势力,Pn是一个比率,帝国的力量越大,拥有的殖民地数量就越多,最后根据公式(4)计算每个帝国的殖民地数量:
Figure GDA0003684586290000032
is the total power of the empire, Pn is a ratio. The greater the power of the empire, the more colonies it has. Finally, the number of colonies of each empire is calculated according to formula (4):

N.C.n=round{Pn*Ncol} (4)NC n =round{P n *N col } (4)

N.C.n是每个帝国最初拥有殖民地的数量,Ncol为总的殖民地数量,根据这个数字,殖民地被随机分配到每个帝国,所有帝国和殖民地的初始化阶段就完成了。 NCn is the number of colonies each empire initially has, and Ncol is the total number of colonies. Based on this number, colonies are randomly assigned to each empire, and the initialization phase for all empires and colonies is completed.

优选的,所述S1中,步骤2帝国同化阶段是这样实现的:Preferably, in said S1, step 2, the empire assimilation phase, is implemented as follows:

同化过程的本质是使一个帝国内的所有殖民地趋向于帝国内的局部最优解决方案,同化的过程通过将殖民地移入帝国来实现The essence of the assimilation process is to make all colonies within an empire tend to the local optimal solution within the empire. The assimilation process is achieved by moving colonies into the empire.

殖民地移动到帝国的距离X到新位置,X定义为:The colony moves to a distance X from the empire to its new location, where X is defined as:

X~U(0,β*d) (5)X~U(0,β*d) (5)

其中β是一个大于1的实数,d是帝国和殖民地之间的距离,β>1表示殖民地可以从不同的方向向帝国移动;Where β is a real number greater than 1, d is the distance between the empire and the colony, and β>1 means that the colony can move toward the empire from different directions;

在移动后添加一个随机偏移变量θ,以在帝国周围执行更广泛的搜索,θ服从均匀分布的随机数:Add a random offset variable θ after the move to perform a wider search around the empire, θ follows a uniformly distributed random number:

θ~U(-γ,γ) (6)θ~U(-γ,γ) (6)

其中γ是调整与原始方向偏差的参数,β和γ的值通常分别取2和π/4;局部搜索策略如下:Where γ is a parameter to adjust the deviation from the original direction. The values of β and γ are usually 2 and π/4 respectively. The local search strategy is as follows:

对于两向量解的表示的局部搜索策略:Local search strategy for the representation of a two-vector solution:

步骤1:对于机器分配向量,我们随机选择一个操作并将其分配给不同的可用机器;Step 1: For the machine assignment vector, we randomly select an operation and assign it to different available machines;

步骤2:对于调度向量,我们随机使用交换和插入操作符;对于交换运算符,我们在调度向量中随机选择两个作业编号,然后交换这两个作业以生成不同的解决方案;对于插入操作符,我们在调度向量中随机选择两个作业,然后删除一个作业并将其插入到另一个选定作业的前面;Step 2: For the schedule vector, we randomly use the swap and insert operators; for the swap operator, we randomly select two job numbers in the schedule vector, then swap the two jobs to generate different solutions; for the insert operator, we randomly select two jobs in the schedule vector, then delete one job and insert it in front of the other selected job;

对于机器甘特图解的表示的局部搜索策略:Local search strategy for the representation of machine Gantt charts:

步骤1:计算最后一步每台机器的完成时间;Step 1: Calculate the completion time of each machine in the last step;

步骤2:找到完成时间最长的机器,并将它们存储在一个称为BM的向量中;Step 2: Find the machines with the longest completion time and store them in a vector called BM;

步骤3:从BM中随机选择一台机器Bm,并将BM正在处理的所有作业存储在一个名为BJ的向量中;Step 3: Randomly select a machine B m from BM and store all the jobs being processed by BM in a vector called BJ;

步骤4:在BJ中随机选择一个作业Bj,随机选择一个阶段j,找到在阶段j中处理BJ的指定机器MJ;Step 4: Randomly select a job B j in BJ, randomly select a stage j, and find the designated machine MJ that processes BJ in stage j;

步骤5:从Mj中删除作业Bj,随机分配Bj到J阶段的另一台机器,并在新分配的机器中找到Bj的最佳位置。Step 5: Remove job Bj from Mj , randomly assign Bj to another machine in stage J, and find the best position for Bj in the newly assigned machine.

优选的,所述S1中,步骤3帝国竞争阶段是这样实现的:Preferably, in said S1, step 3, the empire competition stage, is implemented as follows:

策略一:Strategy 1:

步骤1:将帝国按照殖民地数量排序;Step 1: Sort the empires by the number of colonies;

步骤2:殖民地少的帝国作为弱小帝国,殖民地多的作为强大帝国;Step 2: The empire with fewer colonies is considered a weak empire, and the empire with more colonies is considered a strong empire;

步骤4:打乱弱小帝国的殖民地顺序;Step 4: Disrupt the colonial order of weak empires;

步骤5:从弱小帝国的殖民地中随机选择selectNum个殖民地归属到强大的帝国中;Step 5: Randomly select selectNum colonies from the colonies of the weak empire and assign them to the strong empire;

or

策略二:Strategy 2:

步骤1:按照帝国及其殖民地的适应度总和从小到大排序;Step 1: Sort the empire and its colonies by the sum of their fitness from small to large;

步骤2:适应度大的作为弱小帝国,适应度小的作为强大帝国;Step 2: The empire with high fitness is regarded as a weak empire, and the empire with low fitness is regarded as a strong empire;

步骤3:打乱弱小帝国的殖民地顺序;Step 3: Disrupt the colonial order of weak empires;

步骤4:从弱小帝国的殖民地中随机选择selectNum个殖民地归属到强大的帝国中;Step 4: Randomly select selectNum colonies from the colonies of the weak empire and assign them to the strong empire;

优选的,所述S2模拟退火算法过程如下:Preferably, the S2 simulated annealing algorithm process is as follows:

步骤1:初始化温度;Step 1: Initialize temperature;

步骤2:创建随机解决方案x并评估f(x);Step 2: Create a random solution x and evaluate f(x);

步骤3:把x储存在xbest里;Step 3: Store x in x best ;

步骤4:当停止条件不满足时;Step 4: When the stop condition is not met;

步骤5:创建邻域解决方案xnew并评估f(xnew);Step 5: Create a neighborhood solution x new and evaluate f(x new );

步骤6:接受概率为P(x,xnew,T);Step 6: The acceptance probability is P(x, x new ,T);

步骤7:如果x优于xbest,将x存入xbestStep 7: If x is better than x best , store x in x best ;

步骤8:降温,算法结束。Step 8: Cool down and the algorithm ends.

优选的,所述S3中,动态分配资源的过程如下:Preferably, in S3, the process of dynamically allocating resources is as follows:

对于操作Oi,j,在计算其开始时间Si,j时,我们考虑以下条件:(1)Ji上一阶段Ci,j-1的完成时间;(2)可用的机器时间Ik;(3)k机器所需资源的最大可用时间;因此,Si,j计算如下:For operation O i,j , when calculating its start time S i,j , we consider the following conditions: (1) the completion time of the previous stage C i,j-1 of Ji ; (2) the available machine time I k ; (3) the maximum available time of the required resources of the k machines; therefore, S i,j is calculated as follows:

Figure GDA0003684586290000064
Figure GDA0003684586290000064

Figure GDA0003684586290000061
Figure GDA0003684586290000061

其中,Ar是资源r∈Rk的可用时间,

Figure GDA0003684586290000062
是机器k所需的所有资源的最大可用时间,Pi,j为第一阶段工作的处理时间。Where A r is the available time of resource r∈R k ,
Figure GDA0003684586290000062
is the maximum available time of all resources required by machine k, and Pi,j is the processing time of the first phase of work.

如果Oi,j是Ji的第一个操作,则开始时间Si,j计算如下:If O i,j is the first operation of Ji , then the start time S i,j is calculated as follows:

Figure GDA0003684586290000063
Figure GDA0003684586290000063

Oi,j完成后,Rk资源将被消耗并立即释放以用于其他操作;因此,Rk和Ik的可用时间将更新如下:After O i,j is completed, the R k resource will be consumed and immediately released for other operations; therefore, the available time of R k and I k will be updated as follows:

Figure GDA0003684586290000071
Figure GDA0003684586290000071

在所有的操作都安排好之后,总完工时间计算如下:After all operations are scheduled, the total completion time is calculated as follows:

Figure GDA0003684586290000072
Figure GDA0003684586290000072

本发明的有益效果集中体现在:能够求解最短化完工时间,提出了最佳的资源优化配制方式。The beneficial effects of the present invention are mainly reflected in: being able to solve the shortest completion time and proposing the best resource optimization configuration method.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明资源受限的混合流水车间的例图。FIG. 1 is an example diagram of a resource-constrained hybrid flow shop according to the present invention.

图2帝国同化阶段示意图。Figure 2 Schematic diagram of the imperial assimilation stage.

图3本发明方法中的帝国竞争示意图。FIG3 is a schematic diagram of imperial competition in the method of the present invention.

图4为本发明方法中编码策略示意图。FIG. 4 is a schematic diagram of the encoding strategy in the method of the present invention.

图5为本发明方法中调参图。FIG5 is a diagram showing the parameters of the method of the present invention.

图6为本发明方法中帝国竞争策略的ANOVA方差分析图。FIG. 6 is an ANOVA analysis of variance diagram of the empire competition strategy in the method of the present invention.

图7为本发明方法中最好解的ANOVA方差分析图。FIG. 7 is an ANOVA analysis of variance diagram of the best solution in the method of the present invention.

图8为本发明方法中平均解的ANOVA方差分析图。FIG. 8 is an ANOVA analysis of variance diagram of the average solution in the method of the present invention.

图9为本发明方法中最差解的ANOVA方差分析图。FIG. 9 is an ANOVA analysis of variance diagram of the worst solution in the method of the present invention.

具体实施方式DETAILED DESCRIPTION

下方将结合实施例对本发明进行完整的阐述:The present invention will be fully described below in conjunction with embodiments:

本发明提出了一个离散帝国主义竞争演算法(D-ICA),以最小化完成时间为目标,来解决各种资源受限的混合流程排程问题。在该算法中,我们采用了基于两个矢量解的表示和基于机器甘特图的解的表示两种相位的编码机制,并采用了局部搜索的方法。然后将D-ICA和模拟退火算法(SA)相结合,提高了算法的性能。此外,我们还考虑了解码过程中资源的动态分配。我们测试了基于随机生成的一组真实车间调度系统实例的算法,并对该算法与现有的启发式算法进行了数值分析和比较,验证了算法的有效性。This paper proposes a discrete imperialist competitive algorithm (D-ICA) to solve various resource-constrained hybrid process scheduling problems with the goal of minimizing the completion time. In this algorithm, we adopt two phases of encoding mechanisms: representation based on two vector solutions and representation based on machine Gantt chart solutions, and adopt a local search method. Then, D-ICA is combined with the simulated annealing algorithm (SA) to improve the performance of the algorithm. In addition, we also consider the dynamic allocation of resources during the decoding process. We tested the algorithm based on a set of randomly generated real shop scheduling system instances, and numerically analyzed and compared the algorithm with existing heuristic algorithms to verify the effectiveness of the algorithm.

1资源受限的混合流水车间问题描述1 Resource-constrained hybrid flow shop problem description

所考虑的问题可以正式描述如下。按一定顺序有n个作业需要s个处理阶段。在整个过程中,至少有一个阶段有两台或两台以上的并行处理机。第一阶段加工完成后,第二阶段继续工作。当机器在第二阶段可用时,工作可以在第二阶段处理,或者如果第一阶段处理完成,工作可以保持在无限容量的缓冲空间中,直到机器在第二阶段空闲。在第2阶段,作业可以在任何处理器上处理,处理开始后不允许中断。The problem under consideration can be formally described as follows. There are n jobs that require s processing stages in a certain sequence. In the whole process, there is at least one stage with two or more parallel processing machines. After the first stage is processed, the second stage continues to work. When the machine in the second stage is available, the job can be processed in the second stage, or if the first stage processing is completed, the job can be kept in the buffer space of unlimited capacity until the machine is free in the second stage. In the second stage, the job can be processed on any processor, and interruption is not allowed after the processing starts.

在这两个阶段之间,我们考虑使用机器人来运输在第一阶段处理完成的工作。除了机器之外,分两个阶段处理工作还需要有限的额外资源,这些资源可以在阶段之间共享,即两个阶段都可以使用固定数量的资源。Between the two stages, we consider using robots to transport the work that was processed in stage 1. In addition to machines, processing work in two stages requires limited additional resources that can be shared between the stages, i.e., both stages can use a fixed amount of resources.

工厂里有预先给定的h种资源,包括R1,R2,...,Rh。预先给出每种类型的资源数量是一定的。每台机器上的流程是基于不同类型资源之间的合作。因此,要开始操作,必须确保机器和资源同时可用。两个资源或计算机冲突操作之间的处理间隔不能重叠。目的是尽量缩短完成时间。There are h pre-given resources in the factory, including R 1 ,R 2 ,...,R h . The number of each type of resource is given in advance. The process on each machine is based on the cooperation between different types of resources. Therefore, to start the operation, it must be ensured that the machine and the resource are available at the same time. The processing intervals between conflicting operations of two resources or computers cannot overlap. The goal is to minimize the completion time.

接下来,我们介绍了一个混合整数线性规划模型,它扩展了李等人引入的RCHFS模型。Next, we introduce a mixed-integer linear programming model that extends the RCHFS model introduced by Li et al.

1.1资源受限的混合流水车间问题建模1.1 Modeling of the Resource-Constrained Hybrid Flow Shop Problem

RCHFS建模所需参数和符号下标如下所示:The parameters and symbol subscripts required for RCHFS modeling are as follows:

Figure GDA0003684586290000091
Figure GDA0003684586290000091

Figure GDA0003684586290000101
Figure GDA0003684586290000101

1.2资源受限的混合流水车间问题算例1.2 Resource-constrained hybrid flow shop problem example

为了解决RCHF问题,验证D-ICA算法的有效性,我们根据实际生产数据随机生成了20个RCHF问题的大规模测试案例。每个测试问题的相同工厂数量是从unidrnd(2,5)中随机生成的。根据作业的数量,将实例的测试集分为四类。为了验证D-ICA算法在不同复杂度环境下的有效性,将每类问题分为五个子问题,每个子问题的阶段数不同。例如,代码实例50_2_2表示问题在第一阶段有50个作业、两个阶段和两个并行机器。In order to solve the RCHF problem and verify the effectiveness of the D-ICA algorithm, we randomly generated 20 large-scale test cases of the RCHF problem based on actual production data. The same number of factories for each test problem was randomly generated from unidrnd(2,5). The test set of instances was divided into four categories according to the number of jobs. In order to verify the effectiveness of the D-ICA algorithm in environments with different complexity, each type of problem was divided into five sub-problems, and the number of stages of each sub-problem was different. For example, the code instance 50_2_2 means that the problem has 50 jobs, two stages, and two parallel machines in the first stage.

2求解资源受限的混合流水车间的优化算法2 Optimization Algorithm for Solving Resource-Constrained Hybrid Flow Shop Problems

2.1帝国主义竞争算法2.1 Imperialist Competition Algorithm

在帝国主义殖民竞争机制的启发下,Gargari和Lucas于2007年提出了一种新的群智能优化算法ICA。ICA已广泛应用于一些实际的优化问题。例如,Zahra等人利用ICA解决网格环境下的独立任务调度问题。与其他算法相比,独立分量分析法能在较短的时间内找到最优解[26]。Lucas等人设计了一种低速、单侧直线感应电动机,结果表明,独立分量分析的性能优于遗传算法。Niknam等人将ICA与K-均值算法相结合,成功地将该混合方法应用于数据簇的处理。最近的研究表明,ICA是解决车间调度问题的有效算法,如流程车间和单机调度问题。ICA具有收敛速度快的优点,并提出了许多改进的算法。Bahrami等人利用混沌映射确定同化算子中群体方向的变化。Lin等人提出了对ICA算法的扰动,并用人工帝国主义国家取代相对较弱的帝国主义国家,以加强帝国之间的信息交流。Inspired by the imperialist colonial competition mechanism, Gargari and Lucas proposed a new swarm intelligence optimization algorithm ICA in 2007. ICA has been widely used in some practical optimization problems. For example, Zahra et al. used ICA to solve the independent task scheduling problem in a grid environment. Compared with other algorithms, independent component analysis can find the optimal solution in a shorter time [26]. Lucas et al. designed a low-speed, single-sided linear induction motor, and the results showed that the performance of independent component analysis was better than that of genetic algorithm. Niknam et al. combined ICA with the K-means algorithm and successfully applied the hybrid method to the processing of data clusters. Recent studies have shown that ICA is an effective algorithm for solving workshop scheduling problems, such as process workshops and single-machine scheduling problems. ICA has the advantage of fast convergence speed and has proposed many improved algorithms. Bahrami et al. used chaotic mapping to determine the change of group direction in the assimilation operator. Lin et al. proposed perturbations to the ICA algorithm and replaced relatively weak imperialist countries with artificial imperialist countries to strengthen information exchange between empires.

与其他进化算法类似,ICA从一组称为总体的初始解开始。群体中的每个个体在遗传算法中被称为“染色体”,在ICA中被称为“国家”。每个国家分为两部分:帝国主义国家和殖民地。健康状况较好的国家将成为帝国,健康状况较差的国家将成为帝国的殖民地。帝国与强大帝国之间的竞争很可能会从弱小的帝国手中夺取殖民地。整个竞争过程一直持续到只剩下一个帝国,达到了算法的迭代次数,或者找到了最优解。典型的独立竞争过程包括建立最初的帝国、同化殖民地、帝国之间的竞争以及帝国的消失[36]。该算法流程如下所示:Similar to other evolutionary algorithms, ICA starts with a set of initial solutions called the population. Each individual in the population is called a "chromosome" in genetic algorithms and a "country" in ICA. Each country is divided into two parts: the imperialist country and the colonies. Countries with better health will become empires, and countries with poorer health will become colonies of the empire. Competition between empires and stronger empires is likely to seize colonies from weaker empires. The entire competition process continues until only one empire remains, the number of algorithm iterations is reached, or the optimal solution is found. The typical independent competition process includes the establishment of the initial empire, the assimilation of colonies, competition between empires, and the disappearance of empires [36]. The algorithm flow is as follows:

(1)初始化阶段(1) Initialization phase

按照算例,把生成的国家分为帝国和殖民地,并根据帝国的势力分配给各个帝国,帝国的势力根据等式(2)来标准化:According to the example, the generated countries are divided into empires and colonies, and are allocated to each empire according to the power of the empire. The power of the empire is standardized according to equation (2):

Cn=cn-max{ci} (2)C n = c n - max{ ci } (2)

其中,cn是第N个帝国的适应度,Cn是帝国的标准化势力。根据帝国的标准化势力,用公式(3)来计算帝国的力量:Among them, c n is the fitness of the Nth empire, and C n is the standardized power of the empire. According to the standardized power of the empire, the power of the empire is calculated using formula (3):

Figure GDA0003684586290000111
Figure GDA0003684586290000111

Figure GDA0003684586290000112
是帝国的总势力,Pn是一个比率,帝国的力量越大,拥有的殖民地数量就越多,最后根据公式(4)计算每个帝国的殖民地数量:
Figure GDA0003684586290000112
is the total power of the empire, Pn is a ratio. The greater the power of the empire, the more colonies it has. Finally, the number of colonies of each empire is calculated according to formula (4):

N.C.n=round{Pn*Ncol} (4)NC n =round{P n *N col } (4)

N.C.n是每个帝国最初拥有殖民地的数量。根据这个数字,殖民地被随机分配到每个帝国。所有帝国和殖民地的初始化就完成了。 NCn is the number of colonies each empire initially has. Based on this number, colonies are randomly assigned to each empire. The initialization of all empires and colonies is complete.

(2)帝国同化阶段(2) Imperial assimilation stage

殖民地移动到帝国的距离X到新位置,X定义为:The colony moves to a distance X from the empire to its new location, where X is defined as:

X~U(0,β*d) (5)X~U(0,β*d) (5)

其中β是一个大于1的实数,d是帝国和殖民地之间的距离,β>1表示殖民地可以从不同的方向向帝国移动。Where β is a real number greater than 1, d is the distance between the empire and the colony, and β>1 means that the colony can move toward the empire from different directions.

在移动后添加一个随机偏移变量θ,以在帝国周围执行更广泛的搜索。θ服从均匀分布的随机数:Add a random offset variable θ after the move to perform a wider search around the empire. θ follows a uniformly distributed random number:

θ~U(-γ,γ) (6)θ~U(-γ,γ) (6)

其中γ是调整与原始方向偏差的参数。β和γ的值通常分别取2和π/4。Where γ is a parameter that adjusts the deviation from the original direction. The values of β and γ are usually 2 and π/4 respectively.

(3)帝国竞争阶段:(3) Imperial Competition Stage:

策略一:Strategy 1:

步骤1:将帝国按照殖民地数量排序。Step 1: Sort the empires by the number of colonies.

步骤2:殖民地少的帝国作为弱小帝国,殖民地多的作为强大帝国。Step 2: The empire with fewer colonies is considered a weak empire, and the empire with more colonies is considered a strong empire.

步骤4:打乱弱小帝国的殖民地顺序。Step 4: Disrupt the colonial order of weak empires.

步骤5:从弱小帝国的殖民地中随机选择selectNum个殖民地归属到强大的帝国中。Step 5: Randomly select selectNum colonies from the colonies of the weak empire and assign them to the strong empire.

策略二:Strategy 2:

步骤1:按照帝国及其殖民地的适应度总和从小到大排序。Step 1: Sort the empire and its colonies by the sum of their fitness from small to large.

步骤2:适应度大的作为弱小帝国,适应度小的作为强大帝国。Step 2: Those with high fitness are treated as weak empires, and those with low fitness are treated as strong empires.

步骤3:打乱弱小帝国的殖民地顺序。Step 3: Disrupt the colonial order of weak empires.

步骤4:从弱小帝国的殖民地中随机选择selectNum个殖民地归属到强大的帝国中。Step 4: Randomly select selectNum colonies from the colonies of the weak empire and assign them to the strong empire.

(4)帝国灭亡阶段:(4) The demise of the empire:

除了最强大的帝国以外,所有的殖民地都将崩溃,所有的殖民地都将由这个独特的帝国控制。如果一个帝国失去了所有的殖民地,算法将在最后一个帝国离开或达到最大迭代次数时结束,那么它将灭亡。All but the most powerful empires will collapse, and all colonies will be controlled by this unique empire. If an empire loses all its colonies, the algorithm will end when the last empire leaves or the maximum number of iterations is reached, then it will perish.

2.2问题编码2.2 Question Coding

我们使用一个包含两个基于矢量(TVB)表示和一个基于机器甘特图(MGB)表示的两相编码机制。第一个矢量是机器分配矢量,第二个是调度矢量。我们使用这两种表示是因为在早期的进化阶段,基于两个向量的表示可以识别具有广泛搜索能力的有前途的搜索空间。在后期的发展阶段,我们使用基于机器甘特图的解决方案表示对每台机器的详细调度进行编码,并通过足够大的搜索空间进行搜索。We use a two-phase encoding mechanism consisting of two vector-based (TVB) representations and a machine Gantt chart (MGB)-based representation. The first vector is the machine assignment vector and the second is the schedule vector. We use these two representations because in the early evolutionary stages, the two-vector-based representation can identify promising search spaces with broad search capabilities. In the later evolutionary stages, we use the machine Gantt chart-based solution representation to encode the detailed schedule of each machine and search through a sufficiently large search space.

2.3问题解码2.3 Problem decoding

对于操作Oi,j,在计算其开始时间Si,j时,我们考虑以下条件:(1)Ji上一阶段Ci,j-1的完成时间;(2)可用的机器时间Ik;(3)k机器所需资源的最大可用时间。因此,Si,j可以计算如下:For operation O i,j , when calculating its start time S i,j , we consider the following conditions: (1) the completion time of the previous stage C i,j-1 of Ji ; (2) the available machine time I k ; (3) the maximum available time of the required resources of the k machines. Therefore, S i,j can be calculated as follows:

Figure GDA0003684586290000134
Figure GDA0003684586290000134

Figure GDA0003684586290000131
Figure GDA0003684586290000131

其中,Ar是资源r∈Rk的可用时间,

Figure GDA0003684586290000132
是机器k所需的所有资源的最大可用时间,Pi,j为第一阶段工作的处理时间。Where A r is the available time of resource r∈R k ,
Figure GDA0003684586290000132
is the maximum available time of all resources required by machine k, and Pi,j is the processing time of the first stage work.

如果Oi,j是Ji的第一个操作,则开始时间Si,j可以计算如下:If O i,j is the first operation of Ji , then the start time S i,j can be calculated as follows:

Figure GDA0003684586290000133
Figure GDA0003684586290000133

Oi,j完成后,Rk资源将被消耗并立即释放以用于其他操作。因此,Rk和Ik的可用时间将更新如下:After O i,j is completed, the R k resource will be consumed and immediately released for other operations. Therefore, the available time of R k and I k will be updated as follows:

Figure GDA0003684586290000141
Figure GDA0003684586290000141

在所有的操作都安排好之后,总完工时间计算如下:After all operations are scheduled, the total completion time is calculated as follows:

Figure GDA0003684586290000142
Figure GDA0003684586290000142

2.4局部搜索策略2.4 Local Search Strategy

对于两向量解的表示的局部搜索策略:Local search strategy for the representation of a two-vector solution:

步骤1:对于机器分配向量,我们随机选择一个操作并将其分配给不同的可用机器。Step 1: For the machine assignment vector, we randomly select an operation and assign it to a different available machine.

步骤2:对于调度向量,我们随机使用交换和插入操作符。对于交换运算符,我们在调度向量中随机选择两个作业编号,然后交换这两个作业以生成不同的解决方案。对于插入操作符,我们在调度向量中随机选择两个作业,然后删除一个作业并将其插入到另一个选定作业的前面。Step 2: For the schedule vector, we randomly use the swap and insert operators. For the swap operator, we randomly select two job numbers in the schedule vector and then swap the two jobs to generate different solutions. For the insert operator, we randomly select two jobs in the schedule vector and then delete one job and insert it in front of the other selected job.

对于机器甘特图解的表示的局部搜索策略:Local search strategy for the representation of machine Gantt charts:

步骤1:计算最后一步每台机器的完成时间。Step 1: Calculate the completion time of each machine in the last step.

步骤2:找到完成时间最长的机器,并将它们存储在一个称为BM的向量中。Step 2: Find the machines with the longest completion time and store them in a vector called BM.

步骤3:从BM中随机选择一台机器Bm,并将BM正在处理的所有作业存储在一个名为BJ的向量中。Step 3: Randomly select a machine B m from the BM and store all the jobs being processed by the BM in a vector called BJ.

步骤4:在BJ中随机选择一个作业Bj,随机选择一个阶段j,找到在阶段j中处理BJ的指定机器MJ。Step 4: Randomly select a job B j in BJ, randomly select a stage j, and find the designated machine MJ that processes BJ in stage j.

步骤5:从Mj中删除作业Bj,随机分配Bj到J阶段的另一台机器,并在新分配的机器中找到Bj的最佳位置。Step 5: Remove job Bj from Mj , randomly assign Bj to another machine in stage J, and find the best position for Bj in the newly assigned machine.

2.5全局搜索策略2.5 Global Search Strategy

SA算法是一种基于冶金退火过程的随机优化算法。从较高的初始温度出发,随机地在求解空间中寻找目标函数的全局最优解。也就是说,局部最优解可以随机跳出,最终达到全局最优解。与自然退火类似,对优化问题的SA解决方案进行加热,即随机生成。然后,允许该解决方案选择具有特定接受概率值的附近位置之一。接受概率取决于一个全局参数t,即温度,它随着算法的迭代而降低。The SA algorithm is a stochastic optimization algorithm based on the metallurgical annealing process. Starting from a high initial temperature, the global optimal solution of the objective function is randomly searched in the solution space. That is, the local optimal solution can randomly jump out and eventually reach the global optimal solution. Similar to natural annealing, the SA solution to the optimization problem is heated, that is, randomly generated. Then, the solution is allowed to choose one of the nearby locations with a specific acceptance probability value. The acceptance probability depends on a global parameter t, namely the temperature, which decreases with the iteration of the algorithm.

Kirkpatrick等人将接受概率表示为一个类似Boltzmann的方程。一般来说,如果当前解决方案用x表示,而新创建的解决方案用xnew表示,则xnew的接受概率为P(x,xnew,T)。如果xnew优于x,则接受,即P(x,xnew,T);否则,在区间[0,1]中随机获得的值。它们的可接受概率公式是与x的适配度之差,即

Figure GDA0003684586290000151
即Δ=f(xnew)-f(x)。如果采用指数冷却,有几种冷却方案。算法迭代k处的温度由公式12定义:Kirkpatrick et al. expressed the acceptance probability as a Boltzmann-like equation. In general, if the current solution is represented by x and the newly created solution is represented by x new , then the acceptance probability of x new is P(x, x new , T). If x new is better than x, then it is accepted, that is, P(x, x new , T); otherwise, a value randomly obtained in the interval [0, 1]. Their acceptance probability formula is the difference in fitness with x, that is,
Figure GDA0003684586290000151
That is, Δ = f(x new ) - f(x). If exponential cooling is used, there are several cooling schemes. The temperature at algorithm iteration k is defined by formula 12:

Tk=αTk-1=αkT0 (12)T k = αT k-1 = α k T 0 (12)

其中0<α<1为温度降低率。显然,α越小,温度下降越慢。Among them, 0<α<1 is the temperature drop rate. Obviously, the smaller α is, the slower the temperature drops.

2.6D-ICA算法框架2.6D-ICA Algorithm Framework

针对带时间窗的装配式建筑配送路径优化问题,设计的算法框架描述如下:For the problem of optimizing the distribution path of prefabricated buildings with time windows, the designed algorithm framework is described as follows:

步骤1:采用2.1节的初始化方法生成初始化帝国,并把殖民地分配给帝国Step 1: Use the initialization method in Section 2.1 to generate an initial empire and assign colonies to the empire

步骤2:帝国同化阶段,使用了2.4中提到的局部搜索策略Step 2: Empire assimilation phase, using the local search strategy mentioned in 2.4

步骤3:帝国竞争阶段,使用了2.5中提到的全局搜索策略Step 3: Empire competition phase, using the global search strategy mentioned in 2.5

步骤4:帝国灭亡阶段Step 4: The Empire Falls

3实验结果与分析3 Experimental results and analysis

3.1仿真实验参数设置3.1 Simulation experiment parameter setting

我们根据实际生产数据随机生成了20个RCHFS问题的大规模测试案例。每个测试问题的相同工厂数量是从unidrnd(2,5)中随机生成的。根据作业的数量,将实例的测试集分为四类。为了验证D-ICA算法在不同复杂度环境下的有效性,将每类问题分为五个子问题,每个子问题的阶段数不同。例如,代码实例50_2_2表示问题在第一阶段有50个作业、两个阶段和两个并行机器。我们将帝国竞争选择率设置为0.2。We randomly generated 20 large-scale test cases of RCHFS problems based on real production data. The same number of factories for each test problem was randomly generated from unidrnd(2,5). The test set of instances was divided into four categories according to the number of jobs. In order to verify the effectiveness of the D-ICA algorithm in different complexity environments, each type of problem was divided into five sub-problems, and the number of stages of each sub-problem was different. For example, the code instance 50_2_2 means that the problem has 50 jobs, two stages, and two parallel machines in the first stage. We set the imperial competition selection rate to 0.2.

3.2仿真实验结果分析3.2 Analysis of simulation experiment results

为了评估D-ica算法的有效性,我们将其与人工蜂群算法(abc)、离散abc算法和多目标自适应大邻域搜索算法进行了比较。To evaluate the effectiveness of the D-ica algorithm, we compared it with the artificial bee colony algorithm (abc), the discrete abc algorithm, and the multi-objective adaptive large neighborhood search algorithm.

根据20个测试案例,在同一台计算机上运行每个算法30次。比较实验结果如表1所示。实例名显示在第一列中。第二列显示每个实例的最佳值。以下四列显示了比较中考虑的每个算法获得的最佳值。为了直观地比较四种算法得到的解的质量,我们计算了解的偏差百分比,结果显示在最后四列中。Each algorithm was run 30 times on the same computer based on 20 test cases. The results of the comparative experiments are shown in Table 1. The instance names are shown in the first column. The second column shows the best value for each instance. The following four columns show the best values obtained by each algorithm considered in the comparison. In order to visually compare the quality of the solutions obtained by the four algorithms, we calculate the percentage deviation of the solutions and the results are shown in the last four columns.

表1所示的结果可以概括为:(1)D-ica算法为给定的例子获得了15个最优解,远远超过其他算法;(2)如最后一行所示,平均有效期和平均百分比偏差较低。综上所述,实验结果表明,与其他最近提出的有效算法相比,D-ica是一种更有效的求解RCHFS问题的方法。表1显示了四种算法获得的最佳解的RPI值。The results shown in Table 1 can be summarized as follows: (1) the D-ica algorithm obtains 15 optimal solutions for the given example, far exceeding the other algorithms; (2) as shown in the last row, the average validity period and average percentage deviation are low. In summary, the experimental results show that D-ica is a more effective method for solving the RCHFS problem compared to other recently proposed effective algorithms. Table 1 shows the RPI values of the best solutions obtained by the four algorithms.

表1实验结果对比Table 1 Comparison of experimental results

Figure GDA0003684586290000161
Figure GDA0003684586290000161

Figure GDA0003684586290000171
Figure GDA0003684586290000171

Claims (4)

1. A resource-constrained hybrid flow shop optimization method, characterized in that the method comprises:
s1: providing a discrete empire-oriented competition algorithm for improving the empire-oriented competition process based on a coding strategy and a local search strategy of a two-dimensional vector;
s2: the performance of a discrete empire-oriented competition algorithm is improved by combining a simulated annealing algorithm;
s3: dynamically allocating resources in a decoding process;
in S3, the process of dynamically allocating resources is as follows:
for operationO i,j At the calculation of its start time S i,j When we consider the following conditions: (1) J is a unit of i Last stage C i,j-1 Completion time of (d); (2) Available machine time I k (ii) a (3) k maximum available time of resources required by the machine; thus, S i,j The calculation is as follows:
S i,j =max(S i,j-1 +P i,j-1 ,I k ,AR k ) (7)
Figure FDA0003918514840000011
wherein, A r Is that the resource R belongs to R k The time of availability of (a) is,
Figure FDA0003918514840000012
is the maximum available time, P, of all resources required by machine k i,j Processing time for the first stage operation;
if O is i,j Is J i First operation of (2), then start time S i,j The calculation is as follows:
Figure FDA0003918514840000021
O i,j after completion, R k Resources will be consumed and immediately released for other operations; thus, R k And I k The available time of (c) will be updated as follows:
Figure FDA0003918514840000022
after all operations are scheduled, the total completion time is calculated as follows:
Figure FDA0003918514840000023
the implementation process of the discrete empire kingdom competition algorithm in the S1 further comprises the following steps:
step 1 empire initialization:
step 2, the empire assimilation stage;
step 3, an empire competition stage;
step 4, the empire and death stage;
the encoding strategy of the discrete empire-oriented competition algorithm in the S1 is as follows: using a two-phase encoding scheme comprising two-vector-based representations and a machine-Gantt-based representation, the two vectors being machine vectors in one dimension and scheduling vectors in one dimension;
the step 1 in the S1 is realized by the following steps:
according to the calculation, the generated countries are divided into empires and colonial areas and are assigned to the respective empires according to the forces of the empires, which are standardized according to the formula (2):
C n =c n -max{c i } (2)
wherein, c n Is the fitness of the Nth empire, C n Is the standard strength of the empire; the force of the empire is calculated according to the empire's normalized momentum using equation (3):
Figure FDA0003918514840000031
Figure FDA0003918514840000032
is the general force of the empire, P n Is a ratio, the larger the force of the empire, the more the number of colonial areas is owned, and finally the number of colonial areas per empire is calculated according to the formula (4):
N·C n =round{P n *N col } (4)
N.C .n is the number of colonial areas initially owned by each empire, N col Based on this number, the colonial area is randomly assigned to each empire, all empires and all other empiresThe initialization phase of the colonial site is complete.
2. The resource-constrained hybrid flow shop optimization method according to claim 1, characterized in that: in the S1, the empire assimilation stage in the step 2 is realized as follows:
the essence of the assimilation process is to move all the colonists in one empire towards a locally optimal solution in the empire, which is achieved by moving the colonists into the empire
The colonial moves to the empire by a distance X to a new location, X being defined as:
X~U(0,β*d) (5)
where β is a real number greater than 1, d is the distance between the empire and the colonial ground, β > 1 indicating that the colonial ground can move towards the empire from different directions;
a random offset variable theta is added after the move to perform a more extensive search around the empire, theta obeying uniformly distributed random numbers:
θ~U(-γ,γ) (6)
wherein gamma is a parameter for adjusting deviation from the original direction, and values of beta and gamma are respectively 2 and pi/4;
the local search strategy is as follows:
local search strategy for representation of two vector solutions:
step 1: for machine allocation vectors, we randomly choose one operation and allocate it to different available machines;
and 2, step: for scheduling vectors, we use swap and insert operators randomly; for the swap operator, we randomly select two job numbers in the scheduling vector, and then swap the two jobs to generate different solutions; for insert operators, we randomly select two jobs in the scheduling vector, then delete one job and insert it in front of the other selected job;
local search strategy for a representation of a machine gantt chart:
step 1: calculating the completion time of each machine in the last step;
and 2, step: finding the machines with the longest completion time and storing them in a vector called BM;
and step 3: randomly selecting a machine B from BM m And all jobs that the BM is handling are stored in a vector named BJ;
and 4, step 4: randomly selecting one job B in BJ j Randomly selecting a stage j, and finding a designated machine MJ for processing the BJ in the stage j;
and 5: from M j Delete in operation B j Randomly assigning B j To another machine in the J stage, and find B in the newly allocated machine j The optimum position of (a).
3. The resource-constrained hybrid flow shop optimization method according to claim 2, characterized in that: in the S1, the imperial competition stage in the step 3 is realized as follows:
the first strategy is as follows:
step 1: sorting empires according to the number of colonial areas;
step 2: the empire with less colonial land is used as a weak empire, and the empire with more colonial land is used as a strong empire;
and 4, step 4: disturbing the colonial place sequence of the small and weak empires;
and 5: randomly selecting selectNum breeding places from breeding places of a weak empire state to belong to a strong empire state;
or
And (2) strategy two:
step 1, sorting according to the fitness sum of the empire and the colonial place from small to large;
step 2: the large adaptability is used as a weak empire and the small adaptability is used as a strong empire;
and 3, step 3: disturbing the colonial place sequence of the small and weak empires;
and 4, step 4: selectNum colonial places are randomly selected from colonial places of the weak empire to belong to the strong empire.
4. The resource-constrained hybrid flow shop optimization method according to claim 3, characterized in that: the S2 simulated annealing algorithm process is as follows:
step 1: initializing temperature;
and 2, step: creating a stochastic solution x and evaluating f (x);
and step 3: store x in x best Lining;
and 4, step 4: when the stop condition is not satisfied;
and 5: creating a neighborhood solution x new And evaluating f (x) new );
And 6: the acceptance probability is P (x, x) new ,T);
And 7: if x is better than x best Store x in x best
And 8: and (5) cooling, and ending the algorithm.
CN201911061792.2A 2019-11-01 2019-11-01 Resource-limited hybrid flow shop optimization method Active CN110852500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911061792.2A CN110852500B (en) 2019-11-01 2019-11-01 Resource-limited hybrid flow shop optimization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911061792.2A CN110852500B (en) 2019-11-01 2019-11-01 Resource-limited hybrid flow shop optimization method

Publications (2)

Publication Number Publication Date
CN110852500A CN110852500A (en) 2020-02-28
CN110852500B true CN110852500B (en) 2023-04-07

Family

ID=69599411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911061792.2A Active CN110852500B (en) 2019-11-01 2019-11-01 Resource-limited hybrid flow shop optimization method

Country Status (1)

Country Link
CN (1) CN110852500B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102907095A (en) * 2010-04-14 2013-01-30 联发科技股份有限公司 Method and apparatus for performing local multiple-hypothesis prediction for video coding of coding units
CN106570584A (en) * 2016-11-02 2017-04-19 北京工商大学 Urban rail transportation passenger path selection method based on improved imperialism competition algorithm
CN106611280A (en) * 2016-06-03 2017-05-03 四川用联信息技术有限公司 Imperialism competition algorithm based on real variable function side distance
CN107479522A (en) * 2017-09-22 2017-12-15 郑州航空工业管理学院 The method that a kind of empire's Competitive Algorithms of improvement solve Flexible Job-shop Scheduling Problems
CN108803519A (en) * 2018-06-23 2018-11-13 郑州航空工业管理学院 A kind of method that empire's Competitive Algorithms of improvement solve Flexible Job-shop Scheduling Problems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102907095A (en) * 2010-04-14 2013-01-30 联发科技股份有限公司 Method and apparatus for performing local multiple-hypothesis prediction for video coding of coding units
CN106611280A (en) * 2016-06-03 2017-05-03 四川用联信息技术有限公司 Imperialism competition algorithm based on real variable function side distance
CN106570584A (en) * 2016-11-02 2017-04-19 北京工商大学 Urban rail transportation passenger path selection method based on improved imperialism competition algorithm
CN107479522A (en) * 2017-09-22 2017-12-15 郑州航空工业管理学院 The method that a kind of empire's Competitive Algorithms of improvement solve Flexible Job-shop Scheduling Problems
CN108803519A (en) * 2018-06-23 2018-11-13 郑州航空工业管理学院 A kind of method that empire's Competitive Algorithms of improvement solve Flexible Job-shop Scheduling Problems

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于改进ICA算法的LBFFSP问题研究;韩忠华等;《信息与控制》;20170430;474-482 *

Also Published As

Publication number Publication date
CN110852500A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
Li et al. An improved artificial bee colony algorithm for distributed heterogeneous hybrid flowshop scheduling problem with sequence-dependent setup times
He et al. Scheduling flexible job shop problem subject to machine breakdown with route changing and right-shift strategies
CN112286152B (en) Distributed flow shop scheduling method and system with batch delivery constraint
CN111400868B (en) Distributed workshop scheduling optimization method and system with order and robot carrying functions
CN106022601B (en) Multi-target resource allocation method
CN110969362A (en) A method and system for multi-objective task scheduling under cloud computing system
CN111353646B (en) Steelmaking flexible scheduling optimization method, system, medium and equipment with switching time
Janes et al. Applying improved genetic algorithm for solving job shop scheduling problems
Arıkan et al. A hybrid simulated annealing-tabu search algorithm for the part selection and machine loading problems in flexible manufacturing systems
Nabovati et al. Multi-objective invasive weeds optimisation algorithm for solving simultaneous scheduling of machines and multi-mode automated guided vehicles
CN115935616A (en) Multi-objective optimization method for scheduling of sequence-dependent flow shop groups of consistent batches
CN110852500B (en) Resource-limited hybrid flow shop optimization method
Kaoud et al. Scheduling of automated guided vehicles and machines in flexible manufacturing systems: a simulation study
Gao et al. Flow shop scheduling with variable processing times based on differential shuffled frog leaping algorithm
CN118605513A (en) Parallel optimization method for robot path planning based on load balancing and multi-search strategy
Mirmohseni et al. A new fuzzy hybrid dynamic programming for scheduling weighted jobs on single machine
Yao et al. An improved UKPK-PSO algorithm inspired from block chain technology for flexible job shop scheduling problem
Kurt Integrating sequence-dependent setup times and blocking in hybrid flow shop scheduling to minimize total tardiness
Sarayloo et al. Imperialistic competitive algorithm for solving a dynamic cell formation problem with production planning
Piroozfard et al. A hybrid harmony search algorithm for the job shop scheduling problems
Naderi et al. Modelling and scheduling lot streaming flexible flow lines
Parjapati et al. Optimization of flexible job shop scheduling problem with sequence dependent setup times using genetic algorithm approach
Zahmani et al. A real time data mining rules selection model for the job shop scheduling problem
Gupta Tabu search for vehicle routing problems (VRPs)
Ravichandran et al. A hybrid pso-cs algorithm for parallel line job shop scheduling to minimize makespan

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