[go: up one dir, main page]

CN118114808A - An integrated optimization method for process planning and resource scheduling of batch tasks - Google Patents

An integrated optimization method for process planning and resource scheduling of batch tasks Download PDF

Info

Publication number
CN118114808A
CN118114808A CN202410095466.8A CN202410095466A CN118114808A CN 118114808 A CN118114808 A CN 118114808A CN 202410095466 A CN202410095466 A CN 202410095466A CN 118114808 A CN118114808 A CN 118114808A
Authority
CN
China
Prior art keywords
transition
resource
constraints
resources
resource scheduling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410095466.8A
Other languages
Chinese (zh)
Other versions
CN118114808B (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.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Institute of Technology Shenzhen
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 Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN202410095466.8A priority Critical patent/CN118114808B/en
Publication of CN118114808A publication Critical patent/CN118114808A/en
Application granted granted Critical
Publication of CN118114808B publication Critical patent/CN118114808B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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/06313Resource planning in a project environment
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Operations Research (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biodiversity & Conservation Biology (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention belongs to the technical field of resource allocation, and particularly relates to a process planning and resource scheduling integrated optimization method for batch tasks, which comprises the following steps: step one: the description of the process flow, alternative operations, and operation times is as follows: the resource distribution system, such as the manufacturing module and the logistics module, can simultaneously execute multiple types of tasks J= { J 1,J2,...,Jq }, and a resource set R= { R 1,R2,…,Rk }, wherein each task J i can be divided into different stepsCan be expressed as follows: specifically, each step S i,j may consist of a different process route, noted as: That is, step S i,j has a u i,j procedure route (u i,j=|Si,j |), and procedure route L i,j,u can be represented as a different sequence of operations. The invention utilizes transition time delay S 3 PR to carry out modeling analysis on the resource distribution system, aims at minimizing task completion time, and plans a process and a resource scheduling scheme.

Description

一种批量任务的过程规划及资源调度集成优化方法An integrated optimization method for process planning and resource scheduling of batch tasks

技术领域Technical Field

本发明属于资源配置技术领域,具体涉及一种批量任务的过程规划及资源调度集成优化方法。The present invention belongs to the technical field of resource configuration, and in particular relates to a process planning and resource scheduling integrated optimization method for batch tasks.

背景技术Background Art

诸如制造模块、物流运输系统、多线程软件系统等涉及硬件或软件资源(例如,机器人、机器、算力资源等)的系统均可以被抽象为资源分配系统。在与资源分配系统相关的研究中,过程规划和资源调度旨在通过优化资源数量、进程顺序等参数实现更高系统吞吐量的核心技术。Systems involving hardware or software resources (e.g., robots, machines, computing resources, etc.) such as manufacturing modules, logistics and transportation systems, and multi-threaded software systems can all be abstracted as resource allocation systems. In the research related to resource allocation systems, process planning and resource scheduling are core technologies that aim to achieve higher system throughput by optimizing parameters such as the number of resources and the order of processes.

过程规划的重点是对生产操作进行选择和排序,而不考虑资源的数量或状态,而资源调度问题需将资源分配给选定的操作。过程规划和调度集成优化问题,称为Integrated Process Planning and Scheduling,IPPS,比单独优化具有更好的系统性能,近年来被广泛研究。Process planning focuses on selecting and sequencing production operations without considering the quantity or status of resources, while resource scheduling problems require allocating resources to selected operations. The integrated optimization problem of process planning and scheduling, called Integrated Process Planning and Scheduling, IPPS, has better system performance than individual optimization and has been widely studied in recent years.

IPPS求解方法可以分为两种类型:精确方法和不精确方法,如下:IPPS solution methods can be divided into two types: exact methods and inexact methods, as follows:

对于前者,分支约束方法、分支切割过程和混合整数线性规划问题(Mixed-Integer Linear Programming Problems,MILPPs)是常见的技术,其中MILPPs是使用最广泛的。但是,这些精确的方法只能处理单批量任务,并且当考虑批量任务时,它会变得复杂;For the former, branch-constrained methods, branch-and-cut procedures, and mixed-integer linear programming problems (MILPPs) are common techniques, among which MILPPs is the most widely used. However, these exact methods can only handle single-batch tasks, and it becomes complicated when considering batch tasks;

因此,启发式算法和智能算法等不精确算法逐渐应用。本质上,启发式算法是基于实际过程规划和调度总结的规则引导的搜索方向进行优化的。智能优化算法在全局优化中的效率和多样性,使其比启发式技术更受欢迎。一些新的方法(如机器学习,深度学习和强化学习)也正在被尝试应用。这些算法可以在很短的时间内提供近似值,而结果则非常依赖于所使用的编码、解码和所使用的操作。Therefore, imprecise algorithms such as heuristic algorithms and intelligent algorithms are gradually applied. In essence, heuristic algorithms are optimized based on the search direction guided by rules summarized from actual process planning and scheduling. The efficiency and diversity of intelligent optimization algorithms in global optimization make them more popular than heuristic techniques. Some new methods (such as machine learning, deep learning, and reinforcement learning) are also being tried. These algorithms can provide approximations in a very short time, and the results are very dependent on the encoding, decoding, and operations used.

现有的研究更多地关注于新的近似解算法,而不需要建立数学模型,如从数据缓存层面提出的Redis法,划分不同的作业通道分配资源,但批量任务之间的资源耦合关系更加复杂,处理时间更长,这将是一个很大的挑战。如何对资源分配系统的建模和分析,实现批量任务的过程规划及资源调度集成最优规划成为亟待解决的问题。为此,我们提出一种利用变迁时延S3PR对资源分配系统进行建模分析,以最小化任务完成时间为目标,批量任务的过程规划及资源调度的集成优化方法。Existing research focuses more on new approximate solution algorithms without the need to establish mathematical models, such as the Redis method proposed from the data cache level, which divides different job channels to allocate resources. However, the resource coupling relationship between batch tasks is more complex and the processing time is longer, which will be a great challenge. How to model and analyze the resource allocation system and realize the integrated optimal planning of process planning and resource scheduling of batch tasks has become an urgent problem to be solved. To this end, we propose a method to model and analyze the resource allocation system using the transition delay S 3 PR, with the goal of minimizing the task completion time, and an integrated optimization method for process planning and resource scheduling of batch tasks.

发明内容Summary of the invention

本发明的目的是提供一种批量任务的过程规划及资源调度集成优化方法,能够利用变迁时延S3PR对资源分配系统进行建模分析,以最小化任务完成时间为目标,规划过程和资源调度方案。The purpose of the present invention is to provide a process planning and resource scheduling integrated optimization method for batch tasks, which can use the transition delay S 3 PR to model and analyze the resource allocation system, and plan the process and resource scheduling scheme with the goal of minimizing the task completion time.

本发明采取的技术方案具体如下:The technical solution adopted by the present invention is as follows:

一种批量任务的过程规划及资源调度集成优化方法,包括以下步骤:A method for integrated optimization of process planning and resource scheduling of batch tasks, comprising the following steps:

步骤一:描述过程流程、可供选择操作、操作时间,如下:Step 1: Describe the process flow, available operations, and operation time as follows:

资源分配系统,如制造模块和物流模块,可以同时执行多种类型的任务J={J1,J2,...,Jq},资源集合R={R1,R2,…,Rk},其中每个任务Ji可以划分为不同的步骤可以表示如下:Resource allocation systems, such as manufacturing modules and logistics modules, can simultaneously execute multiple types of tasks J = {J 1 ,J 2 ,...,J q }, resource sets R = {R 1 ,R 2 ,…,R k }, where each task Ji can be divided into different steps It can be expressed as follows:

具体来说,每个步骤Si,j可以由不同的过程路线组成,记为:Specifically, each step Si ,j can be composed of different process routes, recorded as:

即,步骤Si,j有ui,j过程路由(ui,j=|Si,j|),过程路由Li,j,u可以表示为不同的操作序列,记为:That is, step S i,j has process routing u i,j (u i,j = |S i,j |), and the process routing L i,j,u can be expressed as different operation sequences, denoted as:

每个操作都需要指定资源其中表示从操作O到资源R的映射;需要相同资源的操作为资源而竞争,如机床、自动引导车辆、机器人等;Each operation requires the specification of a resource in Represents a mapping from operations O to resources R; operations that require the same resources compete for resources, such as machine tools, automated guided vehicles, robots, etc.

步骤二:根据任务、步骤、路由、操作、资源的描述,建立变迁时延S3PR模型;Step 2: Establish the transition delay S 3 PR model based on the description of tasks, steps, routes, operations, and resources;

其中,变迁时延S3PR模型被定义为一组子网的组合,分别是起点库所、结束库所、活动库所和资源库所;任务、步骤、路由、操作、资源的描述,根据如下表A中算法1建立变迁时延S3PR模型;Among them, the transition delay S 3 PR model Defined as a set of subnets A combination of and They are the starting place, the ending place, the activity place and the resource place respectively; the description of tasks, steps, routes, operations and resources, and the transition delay S 3 PR model is established according to Algorithm 1 in Table A below;

表A算法1Table A Algorithm 1

步骤三:建立过程规划和资源调度一体化混合整数线性规划模型,如下:Step 3: Establish a mixed integer linear programming model that integrates process planning and resource scheduling, as follows:

3.1)目标函数:3.1) Objective function:

本研究旨在合理确定过程路径和管理资源,以最小化任务完成时间,优化目标如下:This study aims to reasonably determine the process path and manage resources to minimize the task completion time. The optimization objectives are as follows:

min z (1)min z (1)

3.2)状态转换约束:3.2) State transition constraints:

资源分配系统的状态可以用变迁时延S3PR模型的有限的标记序列M0,M1,…,Mh来表示:The state of the resource allocation system can be represented by a finite tag sequence M 0 , M 1 ,…, M h of the transition delay S 3 PR model:

式(2)保证了状态转换的正确性,其中,σi=[σi(t1),...,σi(tm)]T是第i阶段的发射计数向量;换而言之,σi(t)≥1是指执行与变迁t对应的操作并占用相应的资源;Formula (2) ensures the correctness of the state transition, where σ i =[σ i (t 1 ),...,σ i (t m )] T is the emission count vector of the i-th stage; in other words, σ i (t) ≥ 1 means that the operation corresponding to transition t is executed and the corresponding resources are occupied;

3.3)任务完成时间约束:3.3) Task completion time constraints:

令发射完成向量τi=[τi(t1),τi(t2),…,τi(tm)]T表示第i阶段变迁的发射完成时间,其中τi(t)=0表示变迁t在该阶段没有使能,全局时钟从0开始;最大完成时间定义为所有任务的最大完成时间,即所有变迁的最大发射完成时间的最大值,可表示为:Let the emission completion vector τ i =[τ i (t 1 ),τ i (t 2 ),…,τ i (t m )] T represent the emission completion time of the transition in the i-th stage, where τ i (t) = 0 means that transition t is not enabled in this stage and the global clock starts from 0; the maximum completion time is defined as the maximum completion time of all tasks, that is, the maximum value of the maximum emission completion time of all transitions, which can be expressed as:

考虑到目标函数(2),将上述非线性约束可转化为:Considering the objective function (2), the above nonlinear constraints can be transformed into:

3.4)变迁发射完成时间约束:3.4) Transition emission completion time constraint:

给定一个变迁时延S3PR模型N=<P,T,F,δ>,可以划分为流程子网No=<PO,T,FO,δ>和资源子网Nr=<PR,T,FR,δ>,其中PO=PB∪PE∪PA,PR=PRGiven a transition delay S 3 PR model N = <P, T, F, δ>, it can be divided into a process subnet N o = <P O , T, F O , δ> and a resource subnet N r = <P R , T, F R , δ>, where P O = P B ∪P E ∪P A , P R = P R ;

给定一个变迁时延S3PR模型N=<P,T,F,δ>,当且仅当变迁t在子网No和Nr中都使能时,该变迁t在变迁时延S3PR中使能;换句话说,对于两个子网的变迁集合是相同的,并且变迁的使能受到两个子网的共同约束;然后将过程子网No和资源子网Nr中的变迁约束分别定义为过程约束和资源约束;Given a transition delay S 3 PR model N = <P, T, F, δ>, a transition t is enabled in the transition delay S 3 PR if and only if the transition t is enabled in both subnets N o and N r ; in other words, the transition sets for the two subnets are the same, and the enabling of the transitions is subject to the common constraints of the two subnets; then the transition constraints in the process subnet N o and the resource subnet N r are defined as process constraints and resource constraints, respectively;

因为在第1阶段之前没有使用过任何资源,第一个发射完成向量τ1表示为:Since no resources have been used before phase 1, the first emission completion vector τ 1 is expressed as:

τ1=σ1⊙δ (4)τ 1 =σ 1 ⊙δ (4)

其中,⊙表示阿达玛乘积,即 Among them, ⊙ represents the Hadamard product, that is,

从第2阶段开始,变迁的发射完成时间将受到两个约束,如下:Starting from phase 2, the emission completion time of transitions will be subject to two constraints, as follows:

首先,考虑过程约束:First, consider the process constraints:

定义为初始变迁的集合,变迁t∈TB的使能仅受资源约束的限制;过程之间的转移由矩阵表示,其中如果第i阶段的变迁tj在第i′阶段的变迁后执行,则 Defined as the set of initial transitions, the enabling of transitions t∈TB is limited only by resource constraints; the transfer between processes is defined by the matrix In other words, if the transition t j in stage i is the transition in stage i′ After execution,

因此,如下约束需要被满足:Therefore, the following constraints need to be satisfied:

上述式子可以表示为:The above formula can be expressed as:

其中,D(x)被定义为一个矩阵x或向量x的和;Where D(x) is defined as the sum of a matrix x or a vector x;

为了满足过程约束,变迁tj′需要满足即,In order to satisfy the process constraints, transition tj needs to satisfy Right now,

其中,Go∈{0,1}m×m定义为变迁-前置-变迁矩阵,其中:Among them, G o ∈ {0,1} m×m is defined as the transition-predecessor-transition matrix, where:

此外,还需要满足以下约束条件:In addition, the following constraints need to be met:

基于上述约束,子网No中变迁tj的完成时间约束可以表示为:Based on the above constraints, the completion time constraint of transition tj in subnetwork No can be expressed as:

进一步的,上述约束可以转化为如下线性约束:Furthermore, the above constraints can be transformed into the following linear constraints:

其中,τ=[τ12,…,τh],H是一个极大数;in, τ=[τ 12 ,…,τ h ], H is a very large number;

其次,考虑资源约束:Second, consider resource constraints:

由于资源的数量可能大于1,因此只有当每个资源都被利用时,变迁tj才需要使用从变迁tj′中释放的资源;第i阶段变迁tj与其他变迁tk之间的关系用yi,j∈{0,1}m×1表示;若变迁tk在第i阶段发射,且发射时间不晚于tj,则yi,j(k)=1,否则yi,j(k)=0,即,Since the number of resources may be greater than 1, transition tj only needs to use the resources released from transition tj′ when every resource is used. The relationship between transition tj in stage i and other transitions tk is represented by yi ,j∈ {0,1} m×1 . If transition tk is emitted in stage i and the emission time is no later than tj , then yi ,j (k)=1, otherwise yi ,j (k)=0, that is,

进一步的上述式子可以转化为如下线性约束:The above formula can be further transformed into the following linear constraint:

其中,ε是一个极小数,H是一个极大数;Among them, ε is a very small number, and H is a very large number;

因此,当变迁tj开始触发时,所有触发的转换都表示为所使用的相应资源的累积数描述如下:Therefore, when transition tj starts firing, all the triggered transitions are represented as The corresponding resources used The cumulative number is described as follows:

进一步的,上述约束可以转化为如下线性约束:Furthermore, the above constraints can be transformed into the following linear constraints:

其中,Gr∈{0,1}k×m表示资源与变迁之间的变迁-资源关系矩阵:Among them, Gr∈ {0,1} k×m represents the transition-resource relationship matrix between resources and transitions:

假设第i阶段的变迁tj使用第i′阶段的变迁tj′释放的资源,用矩阵表示;若在变迁tj触发时所有资源被使用,则必须选择一个变迁tj′,即:Assume that the transition tj in stage i uses the resources released by the transition tj′ in stage i′, using the matrix Indicates that if all resources are triggered when transition t j is used, a transition t j′ must be selected, namely:

其中,为每个资源的数量,它或表示为:in, For the quantity of each resource, it can be expressed as:

进一步的,上述约束可以转化为如下线性约束:Furthermore, the above constraints can be transformed into the following linear constraints:

其中,ε是一个极小数,H是一个极大数;Among them, ε is a very small number, and H is a very large number;

此外,还需要满足以下约束条件:In addition, the following constraints need to be met:

其中,是一个所有元素都等于1的行向量;in, is a row vector with all elements equal to 1;

基于上述约束,子网Nr中变迁tj的完成时间约束可以表示为:Based on the above constraints, the completion time constraint of transition tj in subnetwork Nr can be expressed as:

进一步的上述式子可以转化为如下线性约束:The above formula can be further transformed into the following linear constraint:

3.5)整合混合整数线性规划模型:3.5) Integrate the mixed integer linear programming model:

通过式(1)-(13),可以将混合整数线性规划模型描述如下:Through equations (1)-(13), the mixed integer linear programming model can be described as follows:

步骤四:利用在MATLAB中调用Gurobi优化工具箱求解线性模型最优解,进行实验分析。Step 4: Use the Gurobi optimization toolbox in MATLAB to solve the optimal solution of the linear model and conduct experimental analysis.

本发明取得的技术效果为:The technical effects achieved by the present invention are:

本发明的一种批量任务的过程规划及资源调度集成优化方法,能够根据工作流程,针对不同批量任务选择过程操作并合理调度资源,以实现任务完成时间最小化,弥补了现有精确数学模型的缺陷,并为非精确算法提供理论支撑,规划过程和资源调度方案。The present invention provides an integrated optimization method for process planning and resource scheduling of batch tasks, which can select process operations and reasonably schedule resources for different batch tasks according to the workflow to minimize the task completion time, making up for the defects of existing precise mathematical models and providing theoretical support for non-precise algorithms, planning processes and resource scheduling solutions.

本发明的一种批量任务的过程规划及资源调度集成优化方法,通过物联网技术实现资源分配系统,如制造模块和物流模块,可以同时执行多种类型的任务以及完成资源集合,适用于批量任务的过程规划及资源调度,以应对批量任务之间更加复杂的资源耦合关系带来的挑战。The present invention provides an integrated optimization method for process planning and resource scheduling of batch tasks, which realizes a resource allocation system such as a manufacturing module and a logistics module through the Internet of Things technology. It can simultaneously execute multiple types of tasks and complete resource collection. It is suitable for process planning and resource scheduling of batch tasks to cope with the challenges brought about by more complex resource coupling relationships between batch tasks.

本发明的一种批量任务的过程规划及资源调度集成优化方法,给定任务、步骤、路由、操作、资源的描述,根据算法1建立变迁时延S3PR模型,考虑这些因素,满足批量任务现场各种突发问题的处理,有效减少并发,延长本方法的工作时间。The present invention provides a batch task process planning and resource scheduling integrated optimization method. Given the description of tasks, steps, routes, operations, and resources, a transition delay S 3 PR model is established according to Algorithm 1. These factors are considered to meet the needs of processing various sudden problems on the batch task site, effectively reduce concurrency, and extend the working time of the method.

本发明的一种批量任务的过程规划及资源调度集成优化方法,考虑过程约束和资源约束,能够细化精确数学模型,使过程和资源调度方案规划的准确度更高。The process planning and resource scheduling integrated optimization method for batch tasks of the present invention takes process constraints and resource constraints into consideration, and can refine the precise mathematical model to make the planning of process and resource scheduling schemes more accurate.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明的一种批量任务的过程规划及资源调度集成优化方法的流程图;FIG1 is a flow chart of a method for integrated optimization of process planning and resource scheduling for batch tasks of the present invention;

图2是本发明的实施例两个任务的流程图;FIG2 is a flow chart of two tasks of an embodiment of the present invention;

图3是本发明的变迁时延S3PR模型的示意图;FIG3 is a schematic diagram of a transition delay S 3 PR model of the present invention;

图4是本发明的过程规划和资源调度结果的统计图。FIG. 4 is a statistical diagram of the process planning and resource scheduling results of the present invention.

具体实施方式DETAILED DESCRIPTION

为了使本发明的目的及优点更加清楚明白,以下结合实施例对本发明进行具体说明。应当理解,以下文字仅仅用以描述本发明的一种或几种具体的实施方式,并不对本发明具体请求的保护范围进行严格限定。In order to make the purpose and advantages of the present invention more clearly understood, the present invention is specifically described below in conjunction with embodiments. It should be understood that the following text is only used to describe one or several specific embodiments of the present invention, and does not strictly limit the scope of protection of the specific claims of the present invention.

如图1-4所示,一种批量任务的过程规划及资源调度集成优化方法,包括以下步骤:As shown in Figure 1-4, a method for integrated optimization of process planning and resource scheduling for batch tasks includes the following steps:

步骤一:描述过程流程、可供选择操作、操作时间,如下:Step 1: Describe the process flow, available operations, and operation time as follows:

资源分配系统,如制造模块和物流模块,可以同时执行多种类型的任务J={J1,J2,…,Jq},资源集合R={R1,R2,...,Rk},通过物联网技术来实现,适用于批量任务的过程规划及资源调度,其中每个任务Ji可以划分为不同的步骤可以表示如下:Resource allocation systems, such as manufacturing modules and logistics modules, can simultaneously execute multiple types of tasks J = {J 1 ,J 2 ,…,J q }, resource set R = {R 1 ,R 2 ,…,R k }, implemented through the Internet of Things technology, suitable for process planning and resource scheduling of batch tasks, where each task Ji can be divided into different steps It can be expressed as follows:

具体来说,每个步骤Si,j可以由不同的过程路线组成,记为:Specifically, each step Si ,j can be composed of different process routes, recorded as:

即,步骤Si,j有ui,j过程路由(ui,j=|Si,j|),过程路由Li,j,u可以表示为不同的操作序列,记为:That is, step S i,j has process routing u i,j (u i,j = |S i,j |), and the process routing L i,j,u can be expressed as different operation sequences, denoted as:

每个操作都需要指定资源其中表示从操作O到资源R的映射;需要相同资源的操作为资源而竞争,如机床、自动引导车辆、机器人等;Each operation requires the specification of a resource in Represents a mapping from operations O to resources R; operations that require the same resources compete for resources, such as machine tools, automated guided vehicles, robots, etc.

在本实施例中,该系统由两个任务J={J1,J2}和六个资源R={R1,R2,C1…,C4}组成,该过程详情如下:In this embodiment, the system is composed of two tasks J = {J 1 , J 2 } and six resources R = {R 1 , R 2 , C 1 ..., C 4 }. The details of the process are as follows:

步骤二:根据任务、步骤、路由、操作、资源的描述,建立变迁时延S3PR模型;Step 2: Establish the transition delay S 3 PR model based on the description of tasks, steps, routes, operations, and resources;

其中,变迁时延S3PR模型被定义为一组子网的组合,分别是起点库所、结束库所、活动库所和资源库所;任务、步骤、路由、操作、资源的描述,根据如下表A中算法1建立变迁时延S3PR模型,考虑多种因素,满足批量任务现场各种突发问题的处理,有效减少并发,延长本方法的工作时间;Among them, the transition delay S 3 PR model Defined as a set of subnets A combination of and They are the starting place, the ending place, the activity place and the resource place; the description of tasks, steps, routes, operations and resources. According to the algorithm 1 in Table A below, the transition delay S 3 PR model is established, which takes into account various factors to meet the processing of various emergencies on the batch task site, effectively reduce concurrency and extend the working time of this method;

表A算法1Table A Algorithm 1

在本实施例中,如图3所示,根据算法1建立的变迁时延S3PR模型,其中,PB={p1,p7},PE={p6,p12},PA={p2,p3,p4,p5,p8,p9,p10,p11},PR={p13,p14},T={t1,t2,...,t11},操作和变迁和延时时间的关系图下表B所示:In this embodiment, as shown in FIG3 , a transition delay S 3 PR model is established according to Algorithm 1, wherein PB = {p 1 , p 7 }, PE = {p 6 , p 12 }, PA = {p 2 , p 3 , p 4 , p 5 , p 8 , p 9 , p 10 , p 11 }, PR = {p 13 , p 14 }, T = {t 1 , t 2 , ..., t 11 }, and the relationship between operation, transition and delay time is shown in Table B below:

表B操作和变迁和延时时间的关系Table B Relationship between operation, transition and delay time

步骤三:建立过程规划和资源调度一体化混合整数线性规划模型,如下:Step 3: Establish a mixed integer linear programming model that integrates process planning and resource scheduling, as follows:

3.1)目标函数:3.1) Objective function:

本研究旨在合理确定过程路径和管理资源,以最小化任务完成时间,优化目标如下:This study aims to reasonably determine the process path and manage resources to minimize the task completion time. The optimization objectives are as follows:

min z (1)min z (1)

3.2)状态转换约束:3.2) State transition constraints:

资源分配系统的状态可以用变迁时延S3PR模型的有限的标记序列M0,M1,…,Mh来表示:The state of the resource allocation system can be represented by a finite tag sequence M 0 , M 1 ,…, M h of the transition delay S 3 PR model:

式(2)保证了状态转换的正确性,其中,σi=[σi(t1),...,σi(tm)]T是第i阶段的发射计数向量;换而言之,σi(t)≥1是指执行与变迁t对应的操作并占用相应的资源;Formula (2) ensures the correctness of the state transition, where σ i =[σ i (t 1 ),...,σ i (t m )] T is the emission count vector of the i-th stage; in other words, σ i (t) ≥ 1 means that the operation corresponding to transition t is executed and the corresponding resources are occupied;

3.3)任务完成时间约束:3.3) Task completion time constraints:

令发射完成向量τi=[τi(t1),τi(t2),…,τi(tm)]T表示第i阶段变迁的发射完成时间,其中τi(t)=0表示变迁t在该阶段没有使能,全局时钟从0开始;最大完成时间定义为所有任务的最大完成时间,即所有变迁的最大发射完成时间的最大值,可表示为:Let the emission completion vector τ i =[τ i (t 1 ),τ i (t 2 ),…,τ i (t m )] T represent the emission completion time of the transition in the i-th stage, where τ i (t) = 0 means that transition t is not enabled in this stage and the global clock starts from 0; the maximum completion time is defined as the maximum completion time of all tasks, that is, the maximum value of the maximum emission completion time of all transitions, which can be expressed as:

考虑到目标函数(2),将上述非线性约束可转化为:Considering the objective function (2), the above nonlinear constraints can be transformed into:

3.4)变迁发射完成时间约束:3.4) Transition emission completion time constraint:

给定一个变迁时延S3PR模型N=<P,T,F,δ>,可以划分为流程子网No=<PO,T,FO,δ>和资源子网Nr=<PR,T,FR,δ>,其中PO=PB∪PE∪PA,PR=PRGiven a transition delay S 3 PR model N = <P, T, F, δ>, it can be divided into a process subnet N o = <P O , T, F O , δ> and a resource subnet N r = <P R , T, F R , δ>, where P O = P B ∪P E ∪P A , P R = P R ;

给定一个变迁时延S3PR模型N=<P,T,F,δ>,当且仅当变迁t在子网No和Nr中都使能时,该变迁t在变迁时延S3PR中使能;换句话说,对于两个子网的变迁集合是相同的,并且变迁的使能受到两个子网的共同约束;然后将过程子网No和资源子网Nr中的变迁约束分别定义为过程约束和资源约束;Given a transition delay S 3 PR model N = <P, T, F, δ>, a transition t is enabled in the transition delay S 3 PR if and only if the transition t is enabled in both subnets N o and N r ; in other words, the transition sets for the two subnets are the same, and the enabling of the transitions is subject to the common constraints of the two subnets; then the transition constraints in the process subnet N o and the resource subnet N r are defined as process constraints and resource constraints, respectively;

因为在第1阶段之前没有使用过任何资源,第一个发射完成向量τ1表示为:Since no resources have been used before phase 1, the first emission completion vector τ 1 is expressed as:

τ1=σ1⊙δ (4)τ 1 =σ 1 ⊙δ (4)

其中,⊙表示阿达玛乘积,即 Among them, ⊙ represents the Hadamard product, that is,

从第2阶段开始,变迁的发射完成时间将受到两个约束,如下:Starting from phase 2, the emission completion time of transitions will be subject to two constraints, as follows:

首先,考虑过程约束:First, consider the process constraints:

定义为初始变迁的集合,变迁t∈TB的使能仅受资源约束的限制;过程之间的转移由矩阵表示,其中如果第i阶段的变迁tj在第i′阶段的变迁后执行,则 Defined as the set of initial transitions, the enabling of transitions t∈TB is limited only by resource constraints; the transfer between processes is defined by the matrix In other words, if the transition tj in stage i is the transition in stage i′ After execution,

因此,如下约束需要被满足:Therefore, the following constraints need to be satisfied:

上述式子可以表示为:The above formula can be expressed as:

其中,D(x)被定义为一个矩阵x或向量x的和;Where D(x) is defined as the sum of a matrix x or a vector x;

为了满足过程约束,变迁tj′需要满足即,In order to satisfy the process constraints, transition tj needs to satisfy Right now,

其中,Go∈{0,1}m×m定义为变迁-前置-变迁矩阵,其中:Among them, G o ∈ {0,1} m×m is defined as the transition-predecessor-transition matrix, where:

此外,还需要满足以下约束条件:In addition, the following constraints need to be met:

基于上述约束,子网No中变迁tj的完成时间约束可以表示为:Based on the above constraints, the completion time constraint of transition tj in subnetwork No can be expressed as:

进一步的,上述约束可以转化为如下线性约束:Furthermore, the above constraints can be transformed into the following linear constraints:

其中,τ=[τ12,...,τh],H是一个极大数;in, τ=[τ 12 ,...,τ h ], H is a very large number;

其次,考虑资源约束:Second, consider resource constraints:

由于资源的数量可能大于1,因此只有当每个资源都被利用时,变迁tj才需要使用从变迁tj′中释放的资源;第i阶段变迁tj与其他变迁tk之间的关系用yi,j∈{0,1}m×1表示;若变迁tk在第i阶段发射,且发射时间不晚于tj,则yi,j(k)=1,否则yi,j(k)=0,即,Since the number of resources may be greater than 1, transition tj only needs to use the resources released from transition tj′ when every resource is used. The relationship between transition tj in stage i and other transitions tk is represented by yi ,j∈ {0,1} m×1 . If transition tk is emitted in stage i and the emission time is no later than tj , then yi ,j (k)=1, otherwise yi ,j (k)=0, that is,

进一步的上述式子可以转化为如下线性约束:The above formula can be further transformed into the following linear constraint:

其中,ε是一个极小数,H是一个极大数;Among them, ε is a very small number, and H is a very large number;

因此,当变迁tj开始触发时,所有触发的转换都表示为所使用的相应资源的累积数描述如下:Therefore, when transition tj starts firing, all the triggered transitions are represented as The corresponding resources used The cumulative number is described as follows:

进一步的,上述约束可以转化为如下线性约束:Furthermore, the above constraints can be transformed into the following linear constraints:

其中,Gr∈{0,1}k×m表示资源与变迁之间的变迁-资源关系矩阵:Among them, Gr∈ {0,1} k×m represents the transition-resource relationship matrix between resources and transitions:

假设第i阶段的变迁tj使用第i′阶段的变迁tj′释放的资源,用矩阵表示;若在变迁tj触发时所有资源被使用,则必须选择一个变迁tj′,即:Assume that the transition tj in stage i uses the resources released by the transition tj′ in stage i′, using the matrix Indicates that if all resources are triggered when transition t j is used, a transition t j′ must be selected, namely:

其中,为每个资源的数量,它或表示为:in, For the quantity of each resource, it can be expressed as:

进一步的,上述约束可以转化为如下线性约束:Furthermore, the above constraints can be transformed into the following linear constraints:

其中,ε是一个极小数,H是一个极大数;Among them, ε is a very small number, and H is a very large number;

此外,还需要满足以下约束条件:In addition, the following constraints need to be met:

其中,是一个所有元素都等于1的行向量;in, is a row vector with all elements equal to 1;

基于上述约束,子网Nr中变迁tj的完成时间约束可以表示为:Based on the above constraints, the completion time constraint of transition tj in subnetwork Nr can be expressed as:

进一步的上述式子可以转化为如下线性约束:The above formula can be further transformed into the following linear constraint:

3.5)整合混合整数线性规划模型:3.5) Integrate the mixed integer linear programming model:

通过式(1)-(13),可以将混合整数线性规划模型描述如下:Through equations (1)-(13), the mixed integer linear programming model can be described as follows:

步骤四:利用在MATLAB中调用Gurobi优化工具箱求解线性模型最优解,进行实验分析。Step 4: Use the Gurobi optimization toolbox in MATLAB to solve the optimal solution of the linear model and conduct experimental analysis.

在本实施例中,考虑两个任务的批量均为3,即,任务Job1和任务Job2均需完成三次,过程规划和资源调度结果如图4所示。结果显示,任务Job1的第一次和第三次工作是由资源C1完成,而第二次工作是由资源C2完成。各个资源被操作占用时间如图4所示。In this embodiment, consider that the batch size of both tasks is 3, that is, both Job 1 and Job 2 need to be completed three times, and the process planning and resource scheduling results are shown in Figure 4. The results show that the first and third work of Job 1 is completed by resource C 1 , while the second work is completed by resource C 2. The time occupied by each resource by the operation is shown in Figure 4.

综上,本发明能够根据工作流程,针对不同批量任务选择过程操作并合理调度资源,以实现任务完成时间最小化,弥补了现有精确数学模型的缺陷,并为非精确算法提供理论支撑。In summary, the present invention can select process operations for different batch tasks according to the workflow and reasonably schedule resources to minimize the task completion time, which makes up for the defects of the existing precise mathematical model and provides theoretical support for the imprecise algorithm.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。本发明中未具体描述和解释说明的结构、装置以及操作方法,如无特别说明和限定,均按照本领域的常规手段进行实施。The above is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention shall be implemented according to the conventional means in the art unless otherwise specified and limited.

Claims (10)

1.一种批量任务的过程规划及资源调度集成优化方法,其特征在于:包括步骤:1. A method for integrated optimization of process planning and resource scheduling of batch tasks, characterized in that it comprises the following steps: 步骤一:描述过程流程、可供选择操作、操作时间;Step 1: Describe the process flow, available operations, and operation time; 步骤二:根据任务、步骤、路由、操作、资源的描述,建立变迁时延S3PR模型;Step 2: Establish the transition delay S 3 PR model based on the description of tasks, steps, routes, operations, and resources; 步骤三:建立过程规划和资源调度一体化混合整数线性规划模型;Step 3: Establish a mixed integer linear programming model integrating process planning and resource scheduling; 步骤四:利用在MATLAB中调用Gurobi优化工具箱求解线性模型最优解,进行实验分析。Step 4: Use the Gurobi optimization toolbox in MATLAB to solve the optimal solution of the linear model and conduct experimental analysis. 2.根据权利要求1所述的一种批量任务的过程规划及资源调度集成优化方法,其特征在于:所述步骤一包括:2. According to claim 1, a method for integrated optimization of process planning and resource scheduling of batch tasks, characterized in that: step 1 comprises: 资源分配系统,所述资源分配系统可以同时执行若干种类型的任务J={J1,J2,...,Jq},资源集合R={R1,R2,...,Rk},其中每个任务Ji可以划分为不同的步骤可以表示如下:A resource allocation system, wherein the resource allocation system can simultaneously execute several types of tasks J = {J 1 , J 2 , ..., J q }, a resource set R = {R 1 , R 2 , ..., R k }, wherein each task Ji can be divided into different steps It can be expressed as follows: 具体来说,每个步骤Si,j可以由不同的过程路线组成,记为:Specifically, each step Si ,j can be composed of different process routes, recorded as: 即,步骤Si,j有ui,j过程路由(ui,j=|Si,j|),过程路由Li,j,u可以表示为若干操作序列,记为:That is, step S i,j has a process route u i,j (u i,j = |S i,j |), and the process route L i,j,u can be expressed as several operation sequences, denoted as: 且,每个操作都指定资源其中表示从操作O到资源R的映射。Furthermore, each operation specifies a resource in Represents a mapping from operations O to resources R. 3.根据权利要求2所述的一种批量任务的过程规划及资源调度集成优化方法,其特征在于:所述资源分配系统包括用于执行若干种类型任务的制造模块和用于资源集合的物流模块。3. According to claim 2, a method for integrated optimization of process planning and resource scheduling for batch tasks is characterized in that: the resource allocation system includes a manufacturing module for executing several types of tasks and a logistics module for resource aggregation. 4.根据权利要求1所述的一种批量任务的过程规划及资源调度集成优化方法,其特征在于:所述变迁时延S3PR模型为:4. The process planning and resource scheduling integrated optimization method for batch tasks according to claim 1, characterized in that: the transition delay S 3 PR model is: 且被定义为一组子网的组合,分别是起点库所、结束库所、活动库所和资源库所; and is defined as a set of subnets A combination of and They are starting place, ending place, activity place and resource place; 其中,设定PB={p1,p7},PE={p6,p12},PA={p2,p3,p4,p5,p8,p9,p10,p11},PR={p13,p14},T={t1,t2,...,t11}。Among them, set P B = {p 1 , p 7 }, P E = {p 6 , p 12 }, P A = {p 2 , p 3 , p 4 , p 5 , p 8 , p 9 , p 10 , p 11 }, P R = {p 13 , p 14 }, T = {t 1 , t 2 ,..., t 11 }. 5.根据权利要求1所述的一种批量任务的过程规划及资源调度集成优化方法,其特征在于:所述步骤三包括如下步骤:5. The process planning and resource scheduling integrated optimization method for batch tasks according to claim 1 is characterized in that: the step three comprises the following steps: M1:建立目标函数;M1: Establish the objective function; M2:状态转换约束;M2: state transition constraint; M3:任务完成时间约束;M3: Task completion time constraint; M4:变迁发射完成时间约束;M4: Transition launch completion time constraint; M5:整合混合整数线性规划模型。M5: Integrating mixed-integer linear programming models. 6.根据权利要求1所述的一种批量任务的过程规划及资源调度集成优化方法,其特征在于:所述目标函数为:6. The process planning and resource scheduling integrated optimization method for batch tasks according to claim 1 is characterized in that: the objective function is: min z (1)min z (1) 其作为优化目标。It is used as the optimization target. 7.根据权利要求1所述的一种批量任务的过程规划及资源调度集成优化方法,其特征在于:所述步骤M2中资源分配系统的状态用变迁时延S3PR模型的有限的标记序列M0,M1,...,Mh来表示,如下:7. A method for integrated optimization of process planning and resource scheduling of batch tasks according to claim 1, characterized in that: the state of the resource allocation system in step M2 is represented by a finite tag sequence M 0 , M 1 , ..., M h of a transition delay S 3 PR model, as follows: 式(2)保证了状态转换的正确性,其中,σi=[σi(t1),...,σi(tm)]T是第i阶段的发射计数向量;且,σi(t)≥1指代执行与变迁t对应的操作并占用相应的资源。Formula (2) ensures the correctness of the state transition, where σ i =[σ i (t 1 ),...,σ i (t m )] T is the emission count vector of the i-th stage; and σ i (t)≥1 means that the operation corresponding to transition t is executed and the corresponding resources are occupied. 8.根据权利要求1所述的一种批量任务的过程规划及资源调度集成优化方法,其特征在于:所述步骤M3中令发射完成向量τi=[τi(t1),τi(t2),...,τi(tm)]T表示第i阶段变迁的发射完成时间;8. A method for integrated optimization of process planning and resource scheduling of batch tasks according to claim 1, characterized in that: in step M3, let the emission completion vector τ i =[τ i (t 1 ),τ i (t 2 ),...,τ i (t m )] T represent the emission completion time of the i-th stage transition; 其中τi(t)=0指代变迁t在该阶段没有使能,全局时钟从0开始;最大完成时间定义为所有任务的最大完成时间,或所有变迁的最大发射完成时间的最大值,如下:Where τ i (t) = 0 means that transition t is not enabled in this phase, and the global clock starts from 0; the maximum completion time is defined as the maximum completion time of all tasks, or the maximum value of the maximum emission completion time of all transitions, as follows: 考虑到目标函数(2),将上述非线性约束可转化为:Considering the objective function (2), the above nonlinear constraints can be transformed into: 9.根据权利要求1所述的一种批量任务的过程规划及资源调度集成优化方法,其特征在于:所述步骤M4中设定一个变迁时延S3PR模型N=<P,T,F,δ>,划分为流程子网No=<PO,T,FO,δ>和资源子网Nr=<PR,T,FR,δ>,其中PO=PB∪PE∪PA,PR=PR9. A method for integrated optimization of process planning and resource scheduling of batch tasks according to claim 1, characterized in that: in said step M4, a transition delay S 3 PR model N = <P, T, F, δ> is set, which is divided into a process subnet N o = <P O , T, F O , δ> and a resource subnet N r = <P R , T, F R , δ>, wherein P O = P B ∪P E ∪P A , P R = P R ; 设定一个变迁时延S3PR模型N=<P,T,F,δ>,仅当变迁t在子网No和Nr中都使能时,该变迁t在变迁时延S3PR中使能,这样对于两个子网的变迁集合是相同的,并且变迁的使能受到两个子网的共同约束;然后将过程子网No和资源子网Nr中的变迁约束分别定义为过程约束和资源约束;Assume a transition delay S 3 PR model N = <P, T, F, δ>, and only when transition t is enabled in both subnets N o and N r , the transition t is enabled in the transition delay S 3 PR, so that the transition sets for the two subnets are the same, and the enabling of transitions is subject to the common constraints of the two subnets; then define the transition constraints in the process subnet N o and the resource subnet N r as process constraints and resource constraints respectively; 因为在第1阶段之前没有使用过任何资源,第一个发射完成向量τ1表示为:Since no resources have been used before phase 1, the first emission completion vector τ 1 is expressed as: τ1=σ1⊙δ (4)τ 1 =σ 1 ⊙δ (4) 其中,⊙表示阿达玛乘积,即 Among them, ⊙ represents the Hadamard product, that is, 从第2阶段开始,变迁的发射完成时间将受到两个约束,如下:Starting from phase 2, the emission completion time of the transition will be subject to two constraints, as follows: 首先,考虑过程约束:First, consider the process constraints: 定义为初始变迁的集合,变迁t∈TB的使能仅受资源约束的限制;过程之间的转移由矩阵表示,其中若第i阶段的变迁tj在第i′阶段的变迁tj′··tj后执行,则 Defined as the set of initial transitions, the enabling of transitions t∈TB is limited only by resource constraints; the transfer between processes is defined by the matrix Represents that if the transition t j of the i-th stage is executed after the transition t j′·· t j of the i′th stage, then 因此,需要满足如下约束:Therefore, the following constraints need to be met: 上述式子可以表示为:The above formula can be expressed as: 其中,定义D(x)为一个矩阵x或向量x的和;Where D(x) is defined as the sum of a matrix x or a vector x; 为了满足过程约束,变迁tj′要满足tj′··tj,即:In order to satisfy the process constraints, the transition t j′ must satisfy t j′·· t j , that is: 其中,Go∈{0,1}m×m定义为变迁-前置-变迁矩阵,其中:Among them, G o ∈ {0,1} m×m is defined as the transition-predecessor-transition matrix, where: 此外,还要满足以下约束条件:In addition, the following constraints must be met: 基于上述约束,子网No中变迁tj的完成时间约束表示为:Based on the above constraints, the completion time constraint of transition tj in subnetwork No is expressed as: 上述约束转化为如下线性约束:The above constraints are transformed into the following linear constraints: 其中,τ=[τ12,...,τh],H是一个极大数;in, τ=[τ 12 ,...,τ h ], H is a very large number; 其次,考虑资源约束:Second, consider resource constraints: 当每个资源都被利用时,变迁tj需要使用从变迁tj′中释放的资源;第i阶段变迁tj与其他变迁tk之间的关系用yi,j∈{0,1}m×1表示;When every resource is utilized, transition tj needs to use the resources released from transition tj′ ; the relationship between transition tj in stage i and other transitions tk is represented by y i,j ∈{0,1} m×1 ; 若变迁tk在第i阶段发射,且发射时间不晚于tj,则yi,j(k)=1,否则yi,j(k)=0,即,If transition t k is emitted in stage i and the emission time is no later than t j , then yi ,j (k) = 1, otherwise yi,j (k) = 0, that is, 上述式子转化为如下线性约束:The above formula is transformed into the following linear constraint: 其中,ε是一个极小数,H是一个极大数;Among them, ε is a very small number, and H is a very large number; 因此,当变迁tj开始触发时,所有触发的转换都表示为所使用的相应资源的累积数描述如下:Therefore, when transition tj starts firing, all the triggered transitions are represented as The corresponding resources used The cumulative number is described as follows: 上述约束转化为如下线性约束:The above constraints are transformed into the following linear constraints: 其中,Gr∈{0,1}k×m表示资源与变迁之间的变迁-资源关系矩阵:Among them, Gr∈ {0,1} k×m represents the transition-resource relationship matrix between resources and transitions: 假设第i阶段的变迁tj使用第i′阶段的变迁tj′释放的资源,用矩阵表示;若在变迁tj触发时所有资源被使用,则必须选择一个变迁tj′,即:Assume that the transition tj in stage i uses the resources released by the transition tj′ in stage i′, using the matrix Indicates that if all resources are triggered when transition t j is used, a transition t j′ must be selected, namely: 其中,为每个资源的数量,它或表示为:in, For the quantity of each resource, it can be expressed as: 上述约束转化为如下线性约束:The above constraints are transformed into the following linear constraints: 其中,ε是一个极小数,H是一个极大数;Among them, ε is a very small number, and H is a very large number; 此外,还满足以下约束条件:In addition, the following constraints are met: 其中,是一个所有元素都等于1的行向量;in, is a row vector with all elements equal to 1; 基于上述约束,子网Nr中变迁tj的完成时间约束表示为:Based on the above constraints, the completion time constraint of transition tj in subnetwork Nr is expressed as: 上述式子转化为如下线性约束:The above formula is transformed into the following linear constraint: 10.根据权利要求1所述的一种批量任务的过程规划及资源调度集成优化方法,其特征在于:所述步骤M5中通过式(1)-(13),将混合整数线性规划模型描述如下:10. The process planning and resource scheduling integrated optimization method for batch tasks according to claim 1, characterized in that: in step M5, the mixed integer linear programming model is described as follows through equations (1)-(13):
CN202410095466.8A 2024-01-24 2024-01-24 Process planning and resource scheduling integrated optimization method for batch tasks Active CN118114808B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410095466.8A CN118114808B (en) 2024-01-24 2024-01-24 Process planning and resource scheduling integrated optimization method for batch tasks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410095466.8A CN118114808B (en) 2024-01-24 2024-01-24 Process planning and resource scheduling integrated optimization method for batch tasks

Publications (2)

Publication Number Publication Date
CN118114808A true CN118114808A (en) 2024-05-31
CN118114808B CN118114808B (en) 2025-01-17

Family

ID=91218898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410095466.8A Active CN118114808B (en) 2024-01-24 2024-01-24 Process planning and resource scheduling integrated optimization method for batch tasks

Country Status (1)

Country Link
CN (1) CN118114808B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118735159A (en) * 2024-06-03 2024-10-01 哈尔滨工业大学 A spacecraft system performance optimization method based on on-board resource configuration and scheduling

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0241271A2 (en) * 1986-04-11 1987-10-14 AT&T Corp. Methods and apparatus for efficient resource allocation
CN111352397A (en) * 2020-01-17 2020-06-30 西安电子科技大学 State Robustness Detection Method of Automatic Manufacturing System Based on Mathematical Programming Algorithm
CN114037251A (en) * 2021-11-04 2022-02-11 陕西科技大学 Manufacturing system cost minimization resource allocation method based on Petri network
CN116050638A (en) * 2023-02-10 2023-05-02 武汉科技大学 Automatic manufacturing system initial resource optimal configuration method based on tag time Petri net
CN117406779A (en) * 2023-11-20 2024-01-16 哈尔滨工业大学 Spacecraft system analysis and autonomous avoidance threat behavior planning method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0241271A2 (en) * 1986-04-11 1987-10-14 AT&T Corp. Methods and apparatus for efficient resource allocation
CN111352397A (en) * 2020-01-17 2020-06-30 西安电子科技大学 State Robustness Detection Method of Automatic Manufacturing System Based on Mathematical Programming Algorithm
CN114037251A (en) * 2021-11-04 2022-02-11 陕西科技大学 Manufacturing system cost minimization resource allocation method based on Petri network
CN116050638A (en) * 2023-02-10 2023-05-02 武汉科技大学 Automatic manufacturing system initial resource optimal configuration method based on tag time Petri net
CN117406779A (en) * 2023-11-20 2024-01-16 哈尔滨工业大学 Spacecraft system analysis and autonomous avoidance threat behavior planning method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱森;: "一类Petri网――S~4R的死锁预防策略", 计算机科学, no. 10, 15 October 2010 (2010-10-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118735159A (en) * 2024-06-03 2024-10-01 哈尔滨工业大学 A spacecraft system performance optimization method based on on-board resource configuration and scheduling

Also Published As

Publication number Publication date
CN118114808B (en) 2025-01-17

Similar Documents

Publication Publication Date Title
Li et al. An agent-based approach for integrated process planning and scheduling
Zhang et al. An effective genetic algorithm for the flexible job-shop scheduling problem
CN111967656A (en) Resource scheduling method and system for multi-disaster-point emergency rescue command and control organization
CN118114808A (en) An integrated optimization method for process planning and resource scheduling of batch tasks
CN117057551A (en) Method and device for solving multi-task scheduling problem in consideration of cooperative robot
CN111353646B (en) Steelmaking flexible scheduling optimization method, system, medium and equipment with switching time
CN115609593B (en) Multi-type robot man-machine cooperative assembly scheduling method and device
CN113342495A (en) Cross-organization multi-instance subprocess model mining method and system
CN111340345A (en) A Tool Scheduling Method Based on Improved Particle Swarm Optimization
CN112101773B (en) Multi-agent system task scheduling method and system for process industry
CN117742260A (en) Flow shop scheduling method and device considering combined buffering and unmanned transportation
CN116009419A (en) Virtual reconstruction and simulation operation method and system for complex equipment manufacturing process
CN119250328A (en) A* path optimization method with dynamic node reservation in wafer scheduling system
CN118859860A (en) A flexible manufacturing system scheduling method and device based on Petri net-based reachable graph
CN116224946B (en) Optimized scheduling method and system for production and logistics integration of mechanical part processing workshop
CN116976603A (en) Batch production optimization scheduling method for complex parts
Echeverria et al. Solving the flexible job-shop scheduling problem through an enhanced deep reinforcement learning approach
Yusof et al. Constraint-chromosome genetic algorithm for flexible manufacturing system machine-loading problem
CN111190711A (en) Multi-robot task allocation method combining BDD with heuristic A-search
CN116859833A (en) AGV dynamic scheduling and path planning method based on tabu search
Der Jeng et al. Deadlock-free scheduling of flexible manufacturing systems based on heuristic search and Petri net structures
Dong et al. A sequence fine-tuning strategy based evolutionary algorithm for solving project scheduling problems
CN109885383B (en) A Non-Unit Time Task Scheduling Method with Constraints
CN114003389A (en) Cloud platform resource allocation method and system based on joint selection and virtual machine placement
WO2006120745A1 (en) Floor plan evaluating method, floor plan correcting method, program, floor plan evaluating device, and floor plan creating device

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