A robust control method for a flexible assembly system with a single unreliable resource
By using the automaton model and the improved banker algorithm in the flexible assembly system, the deadlock problem caused by unreliable resources is solved, ensuring the continuous processing of workpieces under fault and normal conditions, and achieving the robustness and efficiency of the system. .
Patent Information
- Application Number
- CN202210307986.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-03-26
AI Technical Summary
When existing flexible assembly systems contain unreliable resources, it is difficult to effectively avoid deadlocks and ensure continuous processing of workpieces, resulting in system pauses and economic losses.
A robust control strategy based on the automaton model is proposed. Through the improved banker algorithm and branching strategy, it ensures that workpieces that do not request faulty resources can continue to be processed when unreliable resources fail, and ensures that all workpieces that do not request faulty resources can be processed normally when the resources are working normally. Continuous processing of workpieces.
It achieves the ability to avoid deadlocks and ensure continuous processing of workpieces in flexible assembly systems containing unreliable resources. It is suitable for large-scale flexible manufacturing systems, has polynomial time complexity, and improves the permissibility and robustness of the system.
Smart Images

Figure CN114740718B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of flexible assembly, and in particular relates to a robust control method for a flexible assembly system. Background Art
[0002] Assembly operation assembles multiple workpieces into a product and is one of the most important operations in a flexible manufacturing system. In a flexible manufacturing system with assembly operations (hereinafter referred to as a flexible assembly system), deadlock may be caused not only by shared resources and interactive workpieces, but also by the mutual waiting of workpieces for assembly operations. Once a deadlock occurs, the system will come to a standstill and will not be able to complete the processing task, resulting in economic losses and serious consequences. Recently, the deadlock control problem of manufacturing assembly systems has attracted widespread attention from researchers. Luo et al., as recorded in the literature 1 (JC Luo, ZQ Liu and MC Zhou, A Petri Net-based deadlock avoidance policy for flexible manufacturing systems with assembly operations and multiple resource acquisition, IEEE Trans. Ind. Inform., vol. 15, no. 6, pp. 3379-3387, 2019.), proposed a deadlock avoidance strategy for a flexible assembly system based on the Petri net model of the system and compared it with the existing deadlock control method. The results show that the strategy has higher permissibility.
[0003] There are many resources in flexible assembly systems, and resource failures are inevitable. After an unreliable resource fails, the production of workpieces that request unreliable resources for processing will be forced to stop. Since these workpieces that are forced to stop production still occupy resources and cannot be released, they may further block the processing of workpieces that do not request faulty resources, which may cause the entire system to come to a standstill. Recently, deadlock control of flexible assembly manufacturing systems with unreliable resources has received widespread attention from researchers. Du et al., as recorded in document 2 (N.Du, HSHu, MCZhou, Robust Deadlock Avoidance and Control of Automated Manufacturing Systems With Assembly Operations Using Petri Nets, IEEE Transactions on Automation Science and Engineering, 17 (4), pp. 1961-1975, 2020.), applied the one-step-forward technique to the robust control of flexible assembly systems with unreliable resources, and proposed the first robust control strategy for flexible assembly manufacturing systems with unreliable resources. This strategy attempts to ensure that all workpieces that do not request unreliable resources are continuously processed. However, according to research, the above goal is not achievable in manufacturing assembly systems with unreliable resources.
[0004] The current prior art has the following disadvantages:
[0005] 1) Due to the complexity of robust control of flexible assembly systems with unreliable resources, only a few scholars in Reference 2 have studied this problem. However, the control objectives in Reference 2 are not achievable in flexible assembly systems with unreliable resources, so there are currently no results. Summary of the invention
[0006] In order to overcome the shortcomings of the prior art, the present invention provides a robust control method for a flexible assembly system containing a single unreliable resource. First, an automaton model of the system is established to characterize the system under study. Second, based on the established model, four characteristics that the robust control strategy needs to meet are proposed. Third, based on the improved banker's algorithm, a robust control strategy that can meet the proposed four characteristics is proposed. The present invention is the only robust control strategy that can meet the above four characteristics. The deadlock avoidance strategy proposed in the present invention has a polynomial time complexity, so it can be widely used in large-scale flexible manufacturing systems.
[0007] The technical solution adopted by the present invention to solve the technical problem includes the following steps:
[0008] Step 1: Flexible assembly system modeling;
[0009] Step 1-1: The flexible assembly system contains an unreliable resource and has the following three typical characteristics: First, each resource is a workstation, including a machine for processing workpieces and a number of buffer slots for storing work; second, only the machine of the unreliable resource can fail, and the failure occurs when the machine is working or idle; finally, each workpiece has only one processing path, and each operation only requires one resource;
[0010] Step 1-2: Model the flexible assembly system using automata;
[0011] The model is represented by an octet S = {R, ψ, P, ρ, Q, Σ, ξ, δ}, where R = {r1, r2, …, r m} is a collection of resources, m represents the number of resources in the system; let r u represents the unreliable resources in the system; let ψ i ∈Z + Represents r i ∈R, the capacity of the buffer space, Z + is a positive integer;
[0012] P={P1,P2,…,P n} is a set of artifact types, where n represents the number of artifact types in the system, let l j Indicates P j The number of operations, P jk Indicates P j The kth operation; for each type of workpiece P j ∈P, let P jb and P je Respectively represent P j The beginning and end stages; let P b = {P 1b ,P 2b ,…,P nb} and P e = {P 1e ,P 2e ,…,P ne}, let ρ(P jk ) indicates P jk Each instance of p jk Requested resources; let Ω(r i )={P jk :ρ(P jk )=r i} indicates a request r i The set of operations ∈R;
[0013] Since different artifacts may contain some of the same operations, let P iand P j Represents two types of workpieces, P i(k-1) and P ik YesP i Two consecutive operations, P j(o-1) and P jo YesP j If two consecutive operations of P i(k-1) and P j(o-1) are different operations, and P ik and P jo is the same operation, then P ik or P jo Is P i(k-1) An example of P j(o-1) An assembly operation to assemble an instance of a Denote the set of assembly operations in the system, let P jk ∈P a represents an assembly operation, Π(P jk ) represents the set of operations assembled by this assembly operation, expressed as: Π(P ik )=Π(P jo )={P i(k-1) ,P j(o-1)};
[0014] Q represents the set of system states. A state q=<λ,x jk ,y jk :j=1,…,n,k=1,…,l j >, where λ=0 or 1 means r u Is it a malfunction or normal operation; x jk ,y jk Respectively represent the stage P jk The number of completed or unfinished workpieces; q0 is the initial state of the system, where Given a state q, if q(λ)=1, q(x 11 )=1,q(y 21 )=2, and the other elements are all 0, then q can be expressed as q=1+x 11 +2y 21 ;
[0015] ∑=∑ c ∪∑ u , where ∑ c ={α jk :j=1,2,…,n,k=1,…,l j +1} is the set of controllable events, α jk ,k≤l j Indicates that ρ(P jk ) is assigned to pjk , α j(lj+1) Represents a completed P j Leave the system; represents the set of assembly events in the system, ∑ u =∑ u1 ∪{κ,η} is the set of uncontrollable events in the system, where ∑ u1 ={β jk :j=1,…,n,k=1,…,l j}, β jk Indicates that in P jk The workpiece is processed, κ and η represent the failure or repair of uncontrollable resources respectively;
[0016] Given a state q∈Q, ξ(q) is the set of events that can be enabled under q, defined as follows:
[0017] a) P j1 ∈Ω(r i ),if Then α j1 ∈ξ(q);
[0018] b) If r i =r u , then q(λ)=1 is necessary, If q(y jk )>0, then β jk ∈ξ(q);
[0019] c) If λ = 1, then κ∈ξ(q);
[0020] d) If q(λ) = 0, then η∈ξ(q);
[0021] e) 1 of them <k≤|P j | and If q(x j(k-1 )>0 and λ i =0, then α jk ∈ξ(q);
[0022] f) 1 of them <k≤|P j | and α jk ∈∑ a ,if q(x vw )>0 and Then α jk ∈ξ(q);
[0023] g) If q(x j |W j |)>0, then α j(lj+1) ∈ξ(q);
[0024] δ:Q×∑→Q is the state transition equation. For state q∈Q and enabling event π∈ξ(q), let δ(q,π) represent the state obtained from state q after enabling event π;
[0025] Let σ=π1π2...π k ∈∑* represents an event string. Given q∈Q, if q2=δ(q1,π2)∈Q,…,and q k =δ(q k-1 ,π k )∈Q, then σ can occur from q, q1-q k is a state reachable from q; Q R (q) represents the set of states reachable from q; let δ(q,σ) represent the state obtained from state q after enabling the events in σ in sequence; given a control strategy △, let Q R (q,△) represents the set of states reachable from q under the supervision of △;
[0026] Step 2: Characteristics of the robust control strategy;
[0027] The robust supervisory control strategy for an automated manufacturing system with a single unreliable resource needs to ensure that: 1) when the unreliable resource fails, workpieces that do not request the failed resource continue to be processed; 2) when the unreliable resource is working properly, all workpieces continue to be processed; for an automated manufacturing system with a single unreliable resource and assembly operations, property 1) cannot be met;
[0028] For virtual unreliable resources, the specific definitions are as follows;
[0029] Definition 1: Given an operation P jk , let θ(P jk ) indicates that in P jk The previous set of operations containing virtual operations, Θ(P jk )=θ(P jk )∪{P jk}; Resource i ∈R is a virtual unreliable resource if and and
[0030] Definition 2: Resource r i ∈R is a second-order virtual unreliable resource if and and It is a virtual unreliable resource;
[0031] Lemma 1: P jk and P j(k+c) Indicates P j Two stages, where c∈Z + If P jk ∈Π a , P j(k+c) ∈Π a , and ρ(P jk )∈Γ(S), then ρ(P j(k+c) )∈Γ(S);
[0032] According to the above process, when r u In case of failure, request r u or virtual unreliable resources cannot continue processing; therefore, a robust control strategy should ensure that those that do not request r u ∪Γ(S) continuous processing of workpieces; specifically, the robust control strategy needs to satisfy the following characteristics:
[0033] Definition 3: If all the systems do not request r u ∪Γ(S) can be processed continuously in a certain state, then this state is called the suitable state of S, referred to as FS; if 1) when λ = 1, all workpieces can be processed continuously; 2) If κ∈ξ(q), then δ(q,κ) is FS; 3) When λ=0, all unrequested workpieces can be processed continuously; 4) If η∈ξ(q), then δ(q,η) is FS; then the control strategy △ is called robust to S;
[0034] Step 3: Robust control strategy;
[0035] Step 3-1: Branching strategy CNR algorithm;
[0036] The input of the CNR algorithm includes the state q, the stage set D1 where the workpiece is located, the number set D2 of the workpieces in the stage set D1, the target position set D3 of the workpiece number set D2, and the system S under study; given the operation stage P jk ,make represents the set of its remaining operations;
[0037] CNR does not consider the capacity and status of resources during the calculation process; therefore, CNR first sets the resource capacity to infinity and the status of unreliable resources to running; artifacts on stages that are not in D1 are not considered, so CNR clears these artifacts to avoid interference; the subsequent state is assigned to q; then CNR moves all artifacts on D1 to their target positions sequentially, and updates D1 and D2 synchronously; and the state after the above operations is assigned to q; since the capacity of resources is assumed to be infinite, the remaining artifacts that cannot be moved to the target position can only be blocked because the artifacts that need to be assembled with them are not in the waiting assembly stage; then, CNR will be in stage P jk The workpiece ∈D1 moves to The position with the smallest subscript in is found, and D1 is updated synchronously, and the state after the above operation is assigned to q; then, CNR calculates the number of unprocessed workpieces required; in order to complete the calculation, the following definitions are required:
[0038] A workpiece has multiple assembly stages, some of which depend on other assembly stages to complete their assembly operations; the classification of different assembly stages is as follows;
[0039] Definition 4: Let P je is a virtual end stage of the system, P a (P je )=θ(P je )∩P a For P je The set of all previous assembly stages; an assembly operation P jk ∈P a (P je ) If satisfied It is called a first-order assembly operation; let P a1 (P je ) indicates that in P a (P je ) is a set of first-order assembly operations; an assembly operation P jk ∈{P a (P je )\P a1 (P je )}If satisfied It is called a second-order assembly operation; let P a2 (P je ) indicates that in P a (P je ) is the set of second-order assembly operations in ; formally, an assembly operation P jk ∈{P a (P je )\P a1 (P je )\P a2(P je )\...\P av (P je )}If satisfied It is called a (v+1)-order assembly operation; assuming that the largest assembly stage is c max Let P a1 = {P a1 (P je ):j=1,2,…,n},P a2 = {P a2 (P je ):j=1,2,…,n},…,
[0040] Let Φ[j] store the required P jb ∈P b Unprocessed workpiece; Initially, for P jb ∈P b Let Φ[j] = 0, and start the CNR calculation from the first-order assembly operation. Given P jk ∈P a1 ,if Let z = max{q(x vw )+q(y vw ):P vw ∈Π(P jk )}; For each P vw ∈Π(P jk ),make Indicates that in P vw The set of previous virtual start stages, for each Let Φ[o]=Φ[o]+zq(x vw )-q(y vw ); let q(x vw )=z,q(y vw )=0; Then, assemble in stage Π(P jk ) for z times, update D1 and D2, and assign the resulting state to q; if the resulting workpieces can be moved to D3[i], then move them one by one to D3[i] until all workpieces are moved or can no longer be moved, update D1 and D2, and assign the resulting state to q; if the resulting workpieces cannot be moved to D3[i], move the z workpieces in P jk The workpiece moves to P j(k+v) , where v∈Z, P j(k+v) ∈Π a , Update D1 and D2, assign the obtained state to q; in all P jk ∈P a1After the stage processing is completed, CNR starts the calculation of the second-order assembly operation; the calculation process of the second-order assembly operation is the same as the calculation process of the first-stage assembly operation; repeat this section until all All processed;
[0041] Theorem 1: Given q∈Q R (q0), D1, D2, D3, S, let Φ min represents the minimum number of unprocessed workpieces required to move all workpieces at stage D1 to the target stage D3. Then, Φ=CNR(q,D1,D2,D3,S)=Φ min ;
[0042] Step 3-2: The first improved banker algorithm MBA1;
[0043] Let P represent the set of all operations in the system, that is Given P jk ∈P, let Indicates P jk The remaining path of represents the set of operation locations that will not request resources in Γ(S) in the future; let represents the set of operation locations that request resources in Γ(S) in the future but are not on Γ(S) resources; let P 3 = {P jk :ρ(P jk )∈Γ(S)} represents the set of operation locations on Γ(S) resources; let P 4 = {P ib |i∈{1,2,…,n}};
[0044] Given a state q, MBA1 sets all the jk ∈P 1 The workpieces on the system are removed from the system, all in stage P jk ∈P 2 The workpiece moves to ρ(P j(k+v) ), where v∈Z + ,ρ(P j(k+v) )∈γ jk ,ρ(P j(k+v) )∈Γ(S), Let P 1 (q) = {P jk ∈P 1 :q(x jk )+q(y jk )≥0}, P 2 (q) = {P jk∈P 2 :q(x jk )+q(y jk )≥0}, P 3 (q) = {P jk ∈P 3 :q(x jk )+q(y jk )≥0} respectively represent that in state q at stage P 1 , P 2 , P 3 The set of stages with workpieces on ; due to the existence of assembly operations, in stage P 1 ∪P 2 Moving the workpiece on the target position may require unprocessed workpieces; the number of required workpieces is calculated by CNR; let Φ represent the number of unprocessed workpieces required, P 4 (q) = {P ib |i∈{1,2,…,n} and Φ[i]>0};
[0045] MBA1 consists of two parts, namely and Try to put in stage P 1 ∪P 2 Move the workpiece to the target stage. Try to put in stage P jk ∈P 1 ∪P 2 ∪P 4 The workpiece moves to ρ(P j(k+v) ), where v∈Z + ,ρ(P j(k+v) )∈γ jk , P j(k+v) ∈Π a ,
[0046] Theorem 2: It has polynomial time complexity;
[0047] Theorem 3: It has polynomial time complexity;
[0048] MBA1Find a P 1 ∪P 2 The order of the stages, in this order all 1 ∪P 2 All the artifacts on the stage can be moved to the target position; if this sequence can be found, MBA1 returns (true, q1), indicating that q is accepted by MBA1 and the state obtained after moving all artifacts in this sequence is q1; otherwise, MBA1 returns (false, q1);
[0049] MBA1 Alternate Execution and Until all in P 1 ∪P 2 The workpieces on each stage are moved to the target position; let D1, D2, and D3 represent three sets used to store the considered stages, the number of workpieces on these stages, and the target positions of these considered stages respectively;
[0050] Theorem 4: MBA1 has polynomial time complexity;
[0051] Step 3-3: The second improved banker algorithm MBA2;
[0052] MBA2 attempts to remove all the workpieces remaining in the system after executing MBA1, assuming that λ=1. Due to the existence of assembly operations in the system, removing the remaining workpieces from the system may require unprocessed workpieces. The number of workpieces required is calculated by CNR.
[0053] MBA2 consists of two parts: and Try to put in stage P 1 ∪P 2 ∪P 3 ∪P 4 The workpiece removal system on Trying to put a jk ∈P 1 ∪P 2 ∪P 3 ∪P 4 The workpiece moves to ρ(P j(k+v) ), where v∈{1,2,…,l j -k},ρ(P j(k+v) )∈γ jk ,P j(k+v) ∈Π a ,
[0054] Theorem 5: It has polynomial time complexity.
[0055] Processing stage P 1 ∪P 2 ∪P 3 ∪P 4 The workpiece on Processing stage P 1 ∪P 2 ∪P 4 On the workpiece, in addition, and The effect is the same;
[0056] Theorem 6: It has polynomial time complexity;
[0057] MBA2 Alternate Execution and Until all in P 1 ∪P 2 ∪P 3 The workpieces on the stage are removed from the system; let D1, D2, D3 represent three sets used to store the considered stages, the number of workpieces on these stages, and the target positions of these considered stages;
[0058] Theorem 7: MBA2 has polynomial time complexity;
[0059] Step 3-4: Robust supervisory control strategy of the system;
[0060] The robust supervisory control strategy is LZZ :Q×∑→{0,1}, which is specifically defined as follows: Let q∈Q R (q0) is the state of the system π∈ξ(q) is the enabling event in state q, if π∈∑ u , then △ LZZ (q,π)=1; otherwise, let q1=δ(q,π), if and only if MBA1(q1)=(true,q2) and MBA2(q2)=true,△ LZZ (q,π)=1;
[0061] Lemma 2: And q(λ)=1, assuming σ∈{∑ c ∪∑ u1}* is the event sequence found by MBA1 at q, then executing σ from q does not violate MBA2;
[0062] Lemma 3: and q(λ)=1, assuming MBA1(q)=(true,q1),σ∈{∑ c ∪∑ u1}* is the event sequence found by MBA2 in q1, then executing σ from q1 will not violate MBA1;
[0063] Theorem 8: and q(λ)=1, δ(q,σ [i] )∈Q R (q0,△ LZZ ), and q0 = δ(q,σ);
[0064] Theorem 9: If κ∈ξ(q), then q1=δ(q,κ) is a FS;
[0065] Corollary 1: and λ = 0, all workpieces that do not request resources in Γ(S) can be processed continuously from q;
[0066] Theorem 10: If η∈ξ(q), then q1=δ(q,η) is FS;
[0067] Theorem 6-1: Finally, we get △ LZZ It is the robust supervisory control strategy of the system.
[0068] Furthermore, the steps of the CNR are as follows:
[0069] Input: The state of the system q∈Q R (q0), D1, D2, D3, and system S;
[0070] Output: The number of unprocessed workpieces of each type of workpiece required to be stored Φ;
[0071] Step 3.1.1: Let q(λ)=1;
[0072] Step 3.1.2: Let j = 1;
[0073] Step 3.1.3: If j <= n, then loop through steps 3.1.3.1 and 3.1.3.2, otherwise end the loop and jump to step 3.1.4;
[0074] Step 3.1.3.1: Φ[j] = 0;
[0075] Step 3.1.3.2: Let j increase by 1;
[0076] Step 3.1.4: Let i = 1;
[0077] Step 3.1.5: If i <= m, then loop through steps 3.1.5.1 and 3.1.5.2, otherwise end the loop and jump to step 3.1.6;
[0078] Step 3.1.5.1: ψ i =INF;
[0079] Step 3.1.5.2: Let i increase by 1;
[0080] Step 3.1.6: Let i = 1;
[0081] Step 3.1.7: If i <= n, then loop through steps 3.1.7.1 to 3.1.7.3, otherwise end the loop and jump to step 3.1.8;
[0082] Step 3.1.7.1: Let j = 1;
[0083] Step 3.1.7.2: If j <= l i , then loop and execute step 3.1.7.2.1 and step 3.1.7.2.2, otherwise end the loop and jump to step 3.1.7.3;
[0084] Step 3.1.7.2.1: If Then let q(x ij )=0 and q(y ij )=0; otherwise let q(x ij )=q(x ij )+q(y ij ) and q(y ij )=0;
[0085] Step 3.1.7.2.2: let j increase by 1;
[0086] Step 3.1.7.3: Add 1 to j
[0087] Step 3.1.8: Let i = 1;
[0088] Step 3.1.9: If i<=|D1|, then loop through steps 3.1.9.1 to 3.1.9.3, otherwise end the loop and jump to step 3.1.10;
[0089] Step 3.1.9.1: Assume D1[i] = P jk ,D3[i]=P vw ;
[0090] Step 3.1.9.2: Loop through steps 3.1.9.2.1 to 3.1.9.2.4 until D2[i] <= 0;
[0091] Step 3.1.9.2.1: If the workpiece at stage D1[i] can be moved to D3[i], then execute steps 3.1.9.2.1.1 to 3.1.9.2.1.4, otherwise jump to step 3.1.9.2.2;
[0092] Step 3.1.9.2.1.1: Let ζ denote the sequence of stages passed from D1[i] to D3[i];
[0093] Step 3.1.9.2.1.2: Move one workpiece from D1[i] to D3[i];
[0094] Step 3.1.9.2.1.3: Let t = 1;
[0095] Step 3.1.9.2.1.4: If t <= cmax , then execute steps 3.1.9.2.1.4.1 to 3.1.9.2.1.4.6, otherwise jump to step 3.1.9.2.2;
[0096] Step 3.1.9.2.1.4.1: Let Ξ=P at ∩ζ;
[0097] Step 3.1.9.2.1.4.2: If P exists ef ∈Ξ, then execute step 3.1.9.2.1.4.2.1 and step 3.1.9.2.1.4.2.2, otherwise jump to step 3.1.9.2.1.4.3;
[0098] Step 3.1.9.2.1.4.2.1: Remove P from Ξ ef ;
[0099] Step 3.1.9.2.1.4.2.2: If P exists gh ∈{Π(P ef )\ζ}, then execute steps 3.1.9.2.1.4.2.2.1~3.1.9.2.1.4.2.2.5, otherwise jump to step 3.1.9.2.1.4.2.1;
[0100] Step 3.1.9.2.1.4.2.2.1: q(x gh )=q(x gh )–1;
[0101] Step 3.1.9.2.1.4.2.2.2: Find d∈{1,2,…,|D1|} such that P gh =D1[d];
[0102] Step 3.1.9.2.1.4.2.2.3: Let D2[d] = D2[d] – 1;
[0103] Step 3.1.9.2.1.4.2.2.4: If D2[d] is equal to 0, then let D1[d] = P vw , otherwise jump to step 3.1.9.2.1.4.2.2.5;
[0104] Step 3.1.9.2.1.4.2.2.5: From {Π(P ef )\ζ} to delete P gh ;
[0105] Step 3.1.9.2.1.4.3: Let q(x jk )=q(x jk )–1,q(x vw )=q(x vw)+1;
[0106] Step 3.1.9.2.1.4.4: Let D2[i] = D2[i] – 1;
[0107] Step 3.1.9.2.1.4.5: If D2[i] = 0, then let D1[i] = P vw ;
[0108] Step 3.1.9.2.1.4.6: Let t increase by 1;
[0109] Step 3.1.9.2.2: Find c∈{1,2,…,l j -k} makes P j(k+c) ∈Π a and
[0110] Step 3.1.9.2.3: D1[i] = P j(k+c) ;
[0111] Step 3.1.9.2.4: Let q(x jk )=q(x jk )–D2[i],q(x j(k+c) )=q(x j(k+c) )+D2[i], jump to step 3.1.9.3;
[0112] Step 3.1.9.3: Let i increase by 1;
[0113] Step 3.1.10: Let i = 1;
[0114] Step 3.1.11: If i <= c max , then loop through steps 3.1.11.1 to 3.1.11.3, otherwise jump to step 3.1.12;
[0115] Step 3.1.11.1: If there is P jk ∈P ai , then loop through steps 3.1.11.1.1 to 3.1.11.1.2, otherwise jump to step 3.1.11.1.3;
[0116] Step 3.1.11.1.1: Let t = 1;
[0117] Step 3.1.11.1.2: If t<=|D1|, then execute the loop and execute steps 3.1.11.1.2.1.1 to 3.1.11.1.2.1.7, otherwise jump to step 3.1.11.2;
[0118] Step 3.1.11.1.2.1: If D1[t]∈Π(P jk ), then execute steps 3.1.11.1.2.1.1 to 3.1.11.1.2.1.6, otherwise jump to step 3.1.11.1.2.1.7;
[0119] Step 3.1.11.1.2.1.1: Let z = max{q(x vw )+q(y vw ):P vw ∈Π(P jk )};
[0120] Step 3.1.11.1.2.1.2: If P exists vw ∈Π(P jk ), loop through steps 3.1.11.1.2.1.2.1 to 3.1.11.1.2.1.2.6, otherwise jump to;
[0121] Step 3.1.11.1.2.1.2.1: Order
[0122] Step 3.1.11.1.2.1.2.2: For each Let Φ[o]=Φ[o]+zq(x vw )-q(y vw );
[0123] Step 3.1.11.1.2.1.2.3: Let q(x vw )=0;
[0124] Step 3.1.11.1.2.1.2.4: Let f = 1;
[0125] Step 3.1.11.1.2.1.2.5: If f<=|D1|, then loop through steps 3.1.11.1.2.1.2.5.1 and 3.1.11.1.2.1.2.5.2, otherwise jump to step 3.1.11.1.2.1.2.6;
[0126] Step 3.1.11.1.2.1.2.5.1: If f≠t and D1[f]∈Π(P jk ), then let D2[f]=0, D1[f]=D3[f];
[0127] Step 3.1.11.1.2.1.2.5.2: f = f + 1;
[0128] Step 3.1.11.1.2.1.2.6: From Π(P jk ) to delete P vw ;
[0129] Step 3.1.11.1.2.1.3: q(x jk )=q(x jk )+z;
[0130] Step 3.1.11.1.2.1.4: D1[t] = P jk ;
[0131] Step 3.1.11.1.2.1.5: Let D2[t] = z;
[0132] Step 3.1.11.1.2.1.6: If D2[t]>0, then loop through steps 3.1.11.1.2.1.6.1 to 3.1.11.1.2.1.6.13, otherwise jump to step 3.1.11.1.2.1.7;
[0133] Step 3.1.11.1.2.1.6.1: Assume D3[t] = P vw ;
[0134] Step 3.1.11.1.2.1.6.2: If the workpiece at stage D1[t] can be moved to D3[t], then execute steps 3.1.11.1.2.1.6.3 to 3.1.11.1.2.1.6.8, otherwise jump to step 3.1.11.1.2.1.6.9;
[0135] Step 3.1.11.1.2.1.6.3: Let ζ denote the sequence of stages passed from D1[t] to D3[t];
[0136] Step 3.1.11.1.2.1.6.4: Let d = 1;
[0137] Step 3.1.11.1.2.1.6.5: If d <= c max , then loop through steps 3.1.11.1.2.1.6.5.1 to 3.1.11.1.2.1.6.5.3, otherwise jump to step 3.1.11.1.2.1.6.6;
[0138] Step 3.1.11.1.2.1.6.5.1: Let Ξ={P ad ∩ζ};
[0139] Step 3.1.11.1.2.1.6.5.2: If P exists ef ∈Ξ, then execute step 3.1.11.1.2.1.6.5.2.1 and step 3.1.11.1.2.1.6.5.2.2, otherwise jump to step 3.1.11.1.2.1.6.5.3;
[0140] Step 3.1.11.1.2.1.6.5.2.1: If P exists gh ∈{Π(P ef )\ζ}, then execute steps 3.1.11.1.2.1.6.5.2.1.1~3.1.11.1.2.1.6.5.2.1.5, otherwise jump to step 3.1.11.1.2.1.6.5.2.2;
[0141] Step 3.1.11.1.2.1.6.5.2.1.1: q(x gh )=q(x gh )–1;
[0142] Step 3.1.11.1.2.1.6.5.2.1.2: Find o∈{1,2,…,|D1|} such that P gh =D1[o];
[0143] Step 3.1.11.1.2.1.6.5.2.1.3: Let D1[o] = D1[o] – 1;
[0144] Step 3.1.11.1.2.1.6.5.2.1.4: If D2[o] is equal to 0, then set D1[o] = D3[t], otherwise jump to step 3.1.11.1.2.1.6.5.2.1.5;
[0145] Step 3.1.11.1.2.1.6.5.2.1.5: From {Π(P ef )\ζ} to delete P gh ;
[0146] Step 3.1.11.1.2.1.6.5.2.2: Remove P from Ξ ef ;
[0147] Step 3.1.11.1.2.1.6.5.3: if i=-1, decrement i by 1;
[0148] Step 3.1.11.1.2.1.6.6: q(x jk )=q(x jk )–1and q(x vw )=q(x vw )+1;
[0149] Step 3.1.11.1.2.1.6.7: D2[t] = D2[t] – 1;
[0150] Step 3.1.11.1.2.1.6.8: If D2[t]=0, then set D1[t]=D3[t], otherwise jump to step 3.1.11.1.2.1.6.9;
[0151] Step 3.1.11.1.2.1.6.9: Find c∈{1,2,…,l j -k} makes P j(k+c) ∈Π a and
[0152] Step 3.1.11.1.2.1.6.10: Let D1[t] = P j(k+c) ;
[0153] Step 3.1.11.1.2.1.6.11: Let q(x jk )=q(x jk )–D2[t];
[0154] Step 3.1.11.1.2.1.6.12: q(x j(k+c) )=q(x j(k+c) )+D2[t];
[0155] Step 3.1.11.1.2.1.6.13: Jump to step 3.1.11.1.2.1.7;
[0156] Step 3.1.11.1.2.1.7: let t increase by 1;
[0157] Step 3.1.11.2: From P ai Delete P jk ;
[0158] Step 3.1.11.3: Let i increase by 1;
[0159] Step 3.1.12: Return to Φ.
[0160] Furthermore, the The steps are as follows:
[0161] Input: The state of the system q∈Q R (q0), and system S;
[0162] Output: state q1 obtained after moving some workpieces to the appropriate position;
[0163] Step 3.2.1: Set flag = true;
[0164] Step 3.2.2: If flag = true, then loop through the steps, otherwise execute the steps;
[0165] Step 3.2.2.1: Set flag = false;
[0166] Step 3.2.2.2: If there is Pjk ∈P 1 , then loop through steps 3.2.2.2.1 and 3.2.2.2.2, otherwise jump to step 3.2.2.3;
[0167] Step 3.2.2.2.1: If q(x jk )+q(y jk )>0 and there exists a jk If the workpiece on the system can be moved out of the system, let σ represent the sequence of events associated with this movement, q = δ(q,σ), and flag = true, otherwise jump to step 3.2.2.2.2;
[0168] Step 3.2.2.2.2: From P 1 Delete P jk ;
[0169] Step 3.2.2.3: If there is P jk ∈P 2 , then loop through steps 3.2.2.3.2 and 3.2.2.3.2, otherwise jump to step 3.2.3;
[0170] Step 3.2.2.3.1: If q(x jk )+q(y jk )>0, then execute step 3.2.2.3.1.1 and step 3.2.2.3.1.2, otherwise jump to step 3.2.2.3.2;
[0171] Step 3.2.2.3.1.1: Find c∈{1,2,…,l j -k} makes ρ(P j(k+v) )∈γ jk ,P j(k+c) ∈Γ(S), and
[0172] Step 3.2.2.3.1.2: If there is a jk The workpiece on can be moved to stage P j(k+c) , then let σ represent the event sequence associated with this move, q = δ(q,σ), and flag = true, otherwise jump to step 3.2.2.3.2;
[0173] Step 3.2.2.3.2: From P 2 Delete P jk ;
[0174] Step 3.2.3: Return to q.
[0175] Furthermore, the The steps are as follows:
[0176] Input: The state of the system q∈Q R (q0), the system S, and the number of unprocessed workpieces Φ required for storage;
[0177] Output: flag (indicates whether there is a first node in Π that can be moved to the remaining path a stage), the state q1 after moving the workpiece, and Φ;
[0178] Step 3.2.4: flag = false;
[0179] Step 3.2.5: If there is P jk ∈P 1 ∪P 2 , then loop through steps 3.2.5.1 and 3.2.5.2, otherwise jump to step 3.2.6;
[0180] Step 3.2.5.1: If q(x jk )+q(y jk )>0, then execute step 3.2.5.1.1 and step 3.2.5.1.2, otherwise jump to step 3.2.5.2;
[0181] Step 3.2.5.1.1: Find c∈{1,2,…,l j -k} makes ρ(P j(k+v) )∈γ jk ,P j(k+c) ∈Π a ,and
[0182] Step 3.2.5.1.2: If there is a jk The workpiece on can be moved to stage P j(k+c) , then let σ represent the event sequence associated with this move, q = δ(q,σ), and flag = true, jump to step 3.2.5.2, otherwise jump to step 3.2.6;
[0183] Step 3.2.5.2: From P 1 ∪P 2 Delete P jk ;
[0184] Step 3.2.6: If flag = false, then execute step, otherwise execute step;
[0185] Step 3.2.6.1: If there is P jb ∈P 4, then loop through steps 3.2.6.1.1 and 3.2.6.1.1.2, otherwise jump to step 3.2.7;
[0186] Step 3.2.6.1.1: If Φ[j]>0, then execute steps 3.2.6.1.1.1 and 3.2.6.1.1.2, otherwise jump to step 3.2.6.1.2;
[0187] Step 3.2.6.1.1.1: Find c∈{1,2,…,l j} makes P jc ∈γ jb ,P jc ∈Π a ,and
[0188] Step 3.2.6.1.1.2: If there is a jb The workpiece on can be moved to stage P jc , then let σ represent the event sequence associated with this move, q = δ(q,σ), Φ[j] = Φ[j]–1, and flag = true, otherwise jump to step 3.2.7;
[0189] Step 3.2.6.1.2: From P 4 Delete P jb ;
[0190] Step 3.2.7: Return flag, q1, and Φ.
[0191] Furthermore, the steps of MBA1 are as follows:
[0192] Input: The state of the system q∈Q R (q0);
[0193] Output: the state q1 after moving the workpiece, flag, indicating whether the state is accepted by MBA1;
[0194] Step 3.2.8: Let t = |P 1 (q)∪P 2 (q)|, i=1;
[0195] Step 3.2.9: If there is P jk ∈P 1 (q), then loop through steps 3.2.9.1 to 3.2.9.5, otherwise jump to step 3.2.10;
[0196] Step 3.2.9.1: D1[i] = P jk ;
[0197] Step 3.2.9.2: D2[i] = q(x jk )+q(y jk );
[0198] Step 3.2.9.3: D3[i] = P je ;
[0199] Step 3.2.9.4: Let i increase by 1;
[0200] Step 3.2.9.5: From P 1 Delete P from (q) jk ;
[0201] Step 3.2.10: If there is P jk ∈P 2 (q), then loop through steps 3.2.10.1 to 3.2.10.6, otherwise jump to step 3.2.11;
[0202] Step 3.2.10.1: D1[i] = P jk ;
[0203] Step 3.2.10.2: D2[i] = q(x jk )+q(y jk );
[0204] Step 3.2.10.3: Find c∈{1,2,…,l j -k} makes ρ(P j(k+v) )∈γ jk ,P j(k+c) ∈Γ(S), and
[0205] Step 3.2.10.4: D3[i] = P j(k+c) ;
[0206] Step 3.2.10.5: let i increase by 1;
[0207] Step 3.2.9.6: From P 2 Delete P from (q) jk ;
[0208] Step 3.2.11: Φ = CNR(q, D1, D2, D3, S);
[0209] Step 3.2.12: flag = true;
[0210] Step 3.2.13: If flag = true, then loop through steps 3.2.13.1 to 3.2.13.3, otherwise jump to step 3.2.14;
[0211] Step 3.2.13.1:
[0212] Step 3.2.13.2:
[0213] Step 3.2.13.3: q = q2;
[0214] Step 3.2.14: If there is P jk ∈P 1 ∪P 2 , then loop through steps 3.2.14.1 and 3.2.14.2, otherwise jump to step 3.2.15;
[0215] Step 3.2.14.1: If q(x jk )+q(y jk )>0, then return (q,false), otherwise jump to step;
[0216] Step 3.2.14.2: From P 1 ∪P 2 Delete P jk ;
[0217] Step 3.2.15: Return (q, true).
[0218] Furthermore, the The steps are as follows:
[0219] Input: The state of the system q∈Q R (q0), system S;
[0220] Output: state q1 after moving the workpiece;
[0221] Step 3.3.1: flag = true;
[0222] Step 3.3.2: If flag = true, then loop through steps 3.3.2.1 and 3.3.2.2, otherwise jump to step 3.3.3;
[0223] Step 3.3.2.1: flag = false;
[0224] Step 3.3.2.2: If there is P jk ∈P 1 ∪P 2 ∪P 3 ∪P 4 , then loop through steps 3.3.2.2.1 and 3.3.2.2.2, otherwise jump to step 3.3.3;
[0225] Step 3.3.2.2.1: If q(x jk )+q(y jk )>0 and exists in stage P jk If the workpiece on the system can be removed from the system, let σ represent the sequence of events associated with this movement, q = δ(q,σ), and flag = true, otherwise jump to step 3.2.7;
[0226] Step 3.3.2.2.2: From P 1 ∪P 2 ∪P 3 ∪P 4 Delete P jk ;
[0227] Step 3.3.3: Return to q.
[0228] Furthermore, the steps of MBA2 are as follows:
[0229] Input: The state of the system q∈Q R (q0);
[0230] Output: flag, indicating whether q is rejected by MBA2;
[0231] Step 3.3.4: Let t = |P 1 (q)∪P 2 (q)∪P 3 (q)|,i=1,q(λ)=1;
[0232] Step 3.3.5: If there is P jk ∈P 1 (q)∪P 2 (q)∪P 3 (q), then loop through steps 3.3.5.1 to 3.3.5.5, otherwise jump to step 3.3.6;
[0233] Step 3.3.5.1: D1[i] = P jk ;
[0234] Step 3.3.5.2: D2[i] = q(x jk )+q(y jk );
[0235] Step 3.3.5.3: D3[i] = P je ;
[0236] Step 3.3.5.4: Let i increase by 1;
[0237] Step 3.3.5.5: From P 1 (q)∪P 2 (q)∪P 3Delete P from (q) jk ;
[0238] Step 3.3.6: Φ = CNR(q, D1, D2, D3, S);
[0239] Step 3.3.7: flag = true;
[0240] Step 3.3.8: If flag = true, then loop through steps 3.3.8.1 to 3.3.8.3, otherwise jump to step 3.3.9;
[0241] Step 3.3.8.1:
[0242] Step 3.3.8.2:
[0243] Step 3.3.8.3: q = q2;
[0244] Step 3.3.9: If there is P jk ∈P 1 ∪P 2 ∪P 3 , then loop through step 3.3.9.1, otherwise jump to step 3.3.10;
[0245] Step 3.3.9.1: If q(x jk )+q(y jk )>0, then return false;
[0246] Step 3.3.10: Return true.
[0247] The beneficial effects of the present invention are as follows:
[0248] (1) Since the deadlock avoidance strategy proposed in the present invention has a polynomial time complexity, it can be widely used in large-scale flexible manufacturing systems;
[0249] (2) The present invention proposes for the first time the characteristics that a robust control strategy of a flexible assembly system with unreliable resources needs to satisfy, and proposes a robust supervisory control strategy that satisfies the characteristics, so the method of the present invention is unique;
[0250] (3) Since the invention attempts to move as many workpieces as possible out of the system to ensure the permissibility of the controlled system, the solution of the present invention has a high permissibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0251] Figure 1 The embodiments of the present invention are used to illustrate examples where existing characteristics cannot be satisfied.
[0252] Figure 2This is an example used by the embodiment of the present invention to illustrate that virtual unreliable resources should be further expanded.
[0253] Figure 3 The following is a description of the classification of the assembly stages of an embodiment of the present invention. DETAILED DESCRIPTION
[0254] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0255] A robust control method for a flexible assembly system with a single unreliable resource comprises the following steps:
[0256] Step 1: Flexible assembly system modeling;
[0257] The flexible assembly system targeted by the present invention contains an unreliable resource and has the following three typical characteristics. First, each resource is a workstation, which includes a machine for processing workpieces and a number of buffer slots for storing work. Second, only the machine of the unreliable resource can fail, and the failure may occur when the machine is working or idle. Finally, each workpiece has only one processing path, and each operation only requires one resource;
[0258] The system under study is modeled by automata, which can be represented by an octet S = {R, ψ, P, ρ, Q, Σ, ξ, δ}.
[0259] Step 2: Characteristics of the robust control strategy;
[0260] Specific examples are as follows;
[0261] like Figure 1 As shown, Example 1: Consider an automatic manufacturing system S, assuming R = {r1, r2, ..., r8}, P = {P1, P2, ..., P4}, l1 = 4, l2 = 5, l3 = 5, l4 = 4. The operation of P1 is P 11 , P 12 , P 13 , P 14 , the operation of P2 is P 21 , P 22 , P 23 , P 24 , P 25 , the operation of P3 is P 31 , P 32 , P 33 (P 23 ), P 34 (P 24 ), P 35 (P 25 ), the operation of P4 is P 41 , P 42 , P 43 , P44 . Note that P 33 and P 23 , P 34 and P 24 , and P 35 and P 25 It is the same operation. 23 is the assembly operation, Π(P 23 )={P 22 ,P 32}. ρ(P 11 )=r1,ρ(P 12 )=r2,ρ(P 13 )=r3,ρ(P 14 )=r4,ρ(P 21 )=r4,ρ(P 22 )=r3,ρ(P 23 )=r2,ρ(P 24 )=r1,ρ(P 25 )=r3,ρ(P 31 )=r5,ρ(P 32 )=r6,ρ(P 41 )=r7,ρ(P 42 )=r8,ρ(P 43 )=r7,ρ(P 44 )=r5. ψ1=ψ3=ψ4=ψ5=ψ6=ψ7=ψ8=1,ψ2=2. The system overview is shown in Figure 1 Assume that r6 is an unreliable resource. If the event sequence α 21 β 21 α 22 β 22 is allowed to occur, then enabling this event sequence from q0 yields δ(q0,α 21 β 21 α 22 β 22 )=q1=1+y 22 If r6 fails in state q1, all P3 workpieces on r6 cannot be processed. Therefore, the completed workpieces on r3 cannot complete their assembly operations until r6 is repaired. In this case, although P1 workpieces do not request unreliable resources, because the resource r3 they requested is occupied and cannot be released before r6 is repaired, P1 workpieces cannot continue to be processed. If the event sequence α 21 β 21 α 22 β 22 It is not allowed to happen, and P2 and P3 workpieces can never be processed continuously. Therefore, characteristic 2) cannot be satisfied. Therefore, for this type of system, characteristics 1) and 2) cannot be satisfied at the same time;
[0262] From Example 1, we can see that the violation of property 1) is caused by resource r3. This paper calls r3 a virtual unreliable resource, and its specific definition is as follows:
[0263] Definition 5: Given an operation P jk , let θ(P jk ) indicates that in P jk The previous set of operations containing virtual operations, Θ(P jk )=θ(P jk )∪{P jk}. Resources i ∈R is a virtual unreliable resource if and and
[0264] like Figure 2 As shown, Example 2: Consider an automatic manufacturing system S, assuming R = {r1, r2, ..., r5}, P = {P1, P2, ..., P5}, l1 = l2 = l3 = l4 = 2, l5 = 1. The operation of P1 is P 11 ,P 12 ,P 13 , the operation of P2 is P 21 ,P 22 ,P 23 (P 13 ), the operation of P3 is P 31 ,P 32 ,P 33 , the operation of P4 is P 41 ,P 42 ,P 43 (P 33 ), the operation of P5 is P 51 . Note that P 13 and P 23 , P 33 and P 43 is the same operation. 11 )=r2,ρ(P 12 )=r3,ρ(P 21 )=r1,ρ(P 22 )=r3,ρ(P 31 )=r2,ρ(P 32 )=r5,ρ(P 41 )=r4,ρ(P 42 )=r5,ρ(P 51 )=r4.ψ1=ψ2=ψ3=ψ4=ψ5=1. Assume r1 is an unreliable resource. Π(P 12 )={P 11 ,P 21},Π(P32 )={P 31 ,P 41},Π a = {P 11 ,P 21 ,P 31 ,P 41},Θ(P 12 )={P 1b ,P 11 ,P 12 ,P 21},Θ(P 32 )={P 3b ,P 31 ,P 32 ,P 41}.because and So r2 is a virtual unreliable resource. Consider the reachable state of the system q = 1 + x 11 +x 41 ,like Figure 2 As shown. If r1 fails at q, although P5 class workpieces do not request unreliable resources, because the resource r4 they requested is occupied and cannot be released before r1 is repaired, P5 class workpieces cannot be processed continuously. This shows that the virtual unreliable resource r2 may also block the processing of workpieces that do not request unreliable resources. Therefore, it is necessary to define resources that may be blocked by virtual unreliable resources;
[0265] Definition 6: Resource r i ∈R is a second-order virtual unreliable resource if and and It is a virtual unreliable resource;
[0266] by Figure 2 For example, the automatic manufacturing system in and is a virtual unreliable resource, r4 is a second-order unreliable resource. Note that Definition 2 can be extended to third-order virtual unreliable resources, and so on. In order to save space, Shen omits such extensions. For simplicity, virtual unreliable resources, second-order virtual unreliable resources, third-order virtual unreliable resources, etc. are collectively referred to as virtual unreliable resources. Given an automated manufacturing system S, let Λ(S) represent the set of virtual unreliable resources in the system, Γ(S)=Λ(S)∪{r u};
[0267] Lemma 4: P jk and P j(k+c) Indicates P j Two stages, where c∈Z + If P jk ∈Πa , P j(k+c) ∈Π a , and ρ(P jk )∈Γ(S), then ρ(P j(k+c) )∈Γ(S);
[0268] Proof: Because P j(k+c) ∈Π a and so ρ(P st )∈Γ(S). Because P j(k+c) ∈Π a , and So ρ(P j(k+c) )∈Γ(S);
[0269] Definition 7: If all the systems that do not request r u ∪Γ(S) workpieces can be processed continuously in a certain state, then this state is called the feasible state (FS) of S. If 1) when λ = 1, all workpieces can be processed continuously; 2) If κ∈ξ(q), then δ(q,κ) is FS; 3) When λ=0, all unrequested workpieces can be processed continuously; 4) If η∈ξ(q), then δ(q,η) is FS and the control strategy △ is said to be robust to S;
[0270] Step 3: Robust control strategy;
[0271] In order to propose a deadlock avoidance strategy that satisfies the characteristics in Definition 3, the present invention proposes two control strategies. They are both based on the modified banker algorithm. Although they do not satisfy the characteristics in Definition 3, their combination is a robust supervisory control strategy;
[0272] Both strategies attempt to find a sequence of events that can cause the workpieces in the system to move to the corresponding appropriate positions. Due to the existence of assembly operations, moving some workpieces to the appropriate positions may require some unprocessed workpieces. In order to calculate the number of requested unprocessed workpieces, the present invention first proposes an algorithm CNR (compute the number of required raw parts) for this calculation. Then, the first improved banker algorithm (MBA1), the second improved banker algorithm (MBA2) and the robust supervisory control strategy are proposed in turn;
[0273] Step 3.1: Branching strategy CNR algorithm
[0274] The input of the CNR algorithm includes the state q, the set D1 of stages where the workpiece is considered, the set D2 of the number of workpieces in these stages, the set D3 of target positions of these workpieces, and the system S under study. jk ,make represents the set of its remaining operations;
[0275] A workpiece may have multiple assembly stages. Some assembly stages may depend on other assembly stages to complete their assembly operations. The different assembly stages are categorized as follows;
[0276] Definition 8: Let P je is a virtual end stage of the system, P a (P je )=θ(P je )∩P a For P je The set of all previous assembly stages. An assembly operation P jk ∈P a (P je ) If satisfied It is called a first-order assembly operation. a1 (P je ) indicates that in P a (P je ) is a set of first-order assembly operations in . An assembly operation P jk ∈{P a (P je )\P a1 (P je )}If satisfied It is called a second-order assembly operation. a2 (P je ) indicates that in P a (P je ). Formally, an assembly operation P jk ∈{P a (P je )\P a1 (P je )\P a2 (P je )\...\P av (P je )}If satisfied It is called a (v+1)-order assembly operation. Assume that the largest assembly stage is c max Let P a1 = {P a1 (P je ):j=1,2,…,n},P a2 = {Pa2 (P je ):j=1,2,…,n},…,
[0277] An example of the classification of assembly stages is as follows;
[0278] Example 3: Consider an automated manufacturing system S, assuming R = {r1, r2, ..., r6}, P = {P1, P2, ..., P4}, l1 = l2 = l3 = l4 = 3. The operation of P1 is P 11 ,P 12 ,P 13 , the operation of P2 is P 21 ,P 22 (P 12 ),P 23 (P 13 ), the operation of P3 is P 31 ,P 32 ,P 33 (P 13 ), the operation of P4 is P 41 ,P 42 (P 32 ),P 43 (P 13 ).ρ(P 11 )=r1,ρ(P 12 )=r3,ρ(P 13 )=r6,ρ(P 21 )=r2,ρ(P 31 )=r2,ρ(P 32 )=r5,ρ(P 41 )=r4.ψ1=ψ2=ψ3=ψ4=ψ5=ψ6=4. Assume r6 is an unreliable resource. The system overview is as follows Figure 3 .P a = {P 12 ,P 32 ,P 13}. a (P 1e )=θ(P 1e )∩P a = {P 11 ,P 12 ,P 13}∩P a = {P 12 ,P 13}.because because Therefore, P a1 (P 1e )={P 12}.because, because So P 32 ∈P a1 (P 3e ).because So P a1 (P 3e )={P 32}. Similarly, we can get P a1 (P 2e )={P 12},P a1 (P 4e )={P 32},P a2 (P 2e )=P a2 (P 3e )=P a2 (P 4e )={P 13}. Therefore, P a1 =P a1 (P 1e )∪P a1 (P 2e )∪P a1 (P 3e )∪P a1 (P 4e )={P 12 ,P 32}, P a2 =P a2 (P 1e )∪P a2 (P 2e )∪P a2 (P 3e )∪P a2 (P 4e )={P 13};
[0279] An example to illustrate how to calculate the number of unprocessed workpieces required is as follows;
[0280] Example 4: Consider Figure 3 The automatic manufacturing system in . Assume that the current state of the system is q = 1 + x 11 +x 12 +x 31 ,D1={P 11 ,P 12 ,P 31},D2={1,1,1},D3={P 13 ,P 13 ,P 13}. Initially, Φ[1]=Φ[2]=Φ[3]=Φ[4]=0;
[0281] Given P 12 ∈P a1 ,Π(P 12 )={P 11 ,P 21},D1[1]=P 11 ∈Π(P 12 ), let z=max{q(x 11 )+q(y 11 ),q(x 21 )+q(y 21 )}=1. Then, Φ[1]=0+1–1=0, Φ[2]=0+1–0=1. Set q(x 21 )=1, we get q=1+x 11 +x 12 +x 21 +x 31 . Assembly at stage P 11 and P 21 The workpiece is processed once, and q = 1 + 2x 12 +x 31 Since there are no artifacts in stage P 32 So the assembly is obtained in stage P 12 Workpieces on P cannot be moved 13 Because P 12 ∈γ 12 And P 12 ∈Π a , the assembly obtained in stage P 12 The workpiece on the top has not been moved yet. Let D1[1] = P 12 ;
[0282] Given P 32 ∈P a1 ,Π(P 32 )={P 31 ,P 41},D1[3]=P 31 ∈Π(P 32 )}, let z=max{q(x 31 )+q(y 31 ),q(x 41 )+q(y 41 )}=1. Then, Φ[3]=0+1–1=0, Φ[4]=0+1–0=1. Set q(x 41 )=1, we get q=1+2x 12 +x 31 +x 41 . Assembly at stage P31 and P 41 The workpiece is processed once, and q = 1 + 2x 12 +x 32 Because D3[3]=P 13 , so the assembly is obtained in stage P 32 The workpiece on the P 13 . Move a workpiece from P 32 Move to P 13 , a workpiece from P 12 Move to P 13 , we get q = 1 + x 12 +x 13 . Set D1[3] = P 13 , D1[1]=P 13 ;
[0283] Given P 13 ∈P a2 ,Π(P 13 )={P 12 ,P 32},D1[2]=P 12 ∈{P 12 ,P 32}, let z=max{q(x 12 )+q(y 12 ),q(x 32 )+q(y 32 )}=1. Then, Φ[1]=0+1–1=0, Φ[2]=1+1–1=1. Then, Φ[3]=0+1–0=1, Φ[4]=1+1–0=2. Set q(x 32 )=1, we get q=1+x 12 +x 32 +y 13 . Assembly at stage P 12 and P 32 The workpiece is processed once, and q = 1 + 2x 13 Because D3[2]=P 13 , so the assembly is obtained in stage P 13 The workpiece on the P 13 . Set D1[2] = P 13 . Because all in P a2 All the workpieces in the table have been processed, so we finally get Φ[1]=0,Φ[2]=1,Φ[3]=1,Φ[4]=2;
[0284] Theorem 1: Given q∈Q R(q0), D1, D2, D3, S, let Φ min represents the minimum number of unprocessed workpieces required to move all workpieces at stage D1 to the target stage D3. Then, Φ=CNR(q,D1,D2,D3,S)=Φ min .
[0285] Proof: The following uses mathematical induction to prove that when c max For any natural number, Φ=Φ min .
[0286] When c max = 0, there is no assembly operation in the system. All workpieces in the D1 stage can be moved to the corresponding D3 stage without any unprocessed workpieces. Therefore, Φ[i]=Φ min [i]=0.
[0287] When c max = 1, after executing steps 3.1.1 to 3.1.9.3, the remaining workpieces in the system are all on the upper Π(P jk ), where P jk ∈P a1 In order to put all the vw ∈Π(P jk ) moves the workpiece to the target position, P jk Therefore, for stage P vw ∈Π(P jk ), at least z=max{q(x vw )+q(y vw ):P vw ∈Π(P jk )} workpieces. There is no vw )\P vb}, the missing workpiece intelligence comes from the unprocessed workpiece at the starting position. Φ[i]=Φ min [i].
[0288] Assume that when c max =h∈Z + hour, Φ[i]=Φ min [i]. The following proves that when c max =h+1, Φ[i]=Φ min[i] Note that CNR calculates the number of unprocessed workpieces from low-level assembly operations to high-level assembly operations. Workpieces obtained from assembly operations are either moved to the target location or moved to the next assembly stage. That is, when CNR is P jk ∈P a(h+1) Before calculating the required unprocessed workpiece, all workpieces in the system are in Π(P jk ). In order to put all vw ∈Π(P jk ) moves the workpiece to the target position, P jk Therefore, for stage P vw ∈Π(P jk ), at least z=max{q(x vw )+q(y vw ):P vw ∈Π(P jk )} workpieces. None of them exist in {θ(P vw )\P vb}, so the missing workpiece intelligence comes from the unprocessed workpiece at the starting position. Therefore, CNR is P a(h+1) The number of unprocessed workpieces required for calculation is the minimum. From the assumption, we can know that CNR to P ai The number of unprocessed workpieces required by calculation is the minimum. Therefore, when c max =h+1, Φ[i]=Φ min [i] Established.
[0289] Step 3.2: First Improved Banker's Algorithm
[0290] The first improved banker's algorithm (MBA1) is given below. Let P represent the set of all operations in the system, that is, Given P jk ∈P, let γ jk = <ρ(P jk ),..,ρ(P jlj )> indicates P jk The remaining path of . represents the set of operation locations that will not request resources in Γ(S) in the future. represents the set of future operation locations that request resources in Γ(S) but are not on Γ(S) resources. Let P 3 = {P jk :ρ(P jk )∈Γ(S)} represents the set of operation locations on Γ(S) resources. Let P 4 = {P ib|i∈{1,2,…,n}}.
[0291] MBA1 consists of two parts, namely and Try to put in stage P 1 ∪P 2 Move the workpiece to the target stage. Try to put in stage P jk ∈P 1 ∪P 2 ∪P 4 The workpiece moves to ρ(P j(k+v) ), where v∈Z + ,ρ(P j(k+v) )∈γ jk , P j(k+v) ∈Π a ,
[0292] Theorem 2: It has polynomial time complexity.
[0293] Proof: Step 3.2.2 loops each time and at least one 1 (q)∪P 2 (q) moves the artifact to the target stage. Each artifact occupies at least one resource, so |P 1 (q)∪P 2 (q)|≤ψ sum =Σ i∈{1,2,…,m} ψ i Therefore, step 3.2.2 loop executes at most ψ sum In each cycle of step 3.2.2, the cycles of step 3.2.2.2 and step 3.2.2.3 are executed once each. jk To P je The number of stages does not exceed l max =max{l j |j∈{1,2,…,n}}, so the complexity of removing a workpiece from the system is no more than l max Therefore, the complexity of the loop in step 3.2.2.2 is O(|P 1 (q)|×l max ). Because c∈{1,2,…,l j -k}≤l max , the complexity of step 3.2.2.3.1.1 or step 3.2.2.3.1.2 does not exceed l max Therefore, the complexity of the loop in step 3.2.2.3 is O(|P 2 (q)|×l max ). Because |P 2(q)|+|P 1 (q)|≤ψ sum ,so The complexity is O(ψ sum ×(|P 1 (q)|+|P 2 (q)|)×l max )=O(ψ sum 2 × max ).
[0294] Theorem 3: It has polynomial time complexity.
[0295] Proof: Since c∈{1,2,…,l j}≤l max , the complexity of step 3.2.5.1.1, step 3.2.5.1.2, and step 3.2.6.1.1.1 does not exceed l max Therefore, the complexity of the loop in step 3.2.5 is O(|P 1 ∪P 2 |×l max ), the complexity of the loop in step 3.2.6.1 is O(|P 4 |×l max ). Because |P 1 ∪P 2 |≤L and |P 4 |=n, so The complexity is O((L+n)×l max ).
[0296] Theorem 4: MBA1 has polynomial time complexity.
[0297] Proof: The complexity of the loop in step 3.2.9 is O(|P 1 |). Because c∈{1,2,…,l j -k}≤l max , so the complexity of 11 lines does not exceed l max Therefore, the complexity of the loop in step 3.2.10 is O(|P 2 |×l max ). Because one workpiece occupies one buffer space, the number of workpieces in the system does not exceed ψ sum =Σ i∈{1,2,m} ψ i Each workpiece requires at most n unprocessed workpieces to complete the assembly operation. Therefore, Φ[1]+Φ[2]+…+Φ[n]≤n×ψ sum Step 3.2.13 Each cycle consists of At least one jk ∈P1 (q)∪P 2 (q)∪P 4 The workpiece on (q) moves to ρ(P j(k+v) ), where v∈Z + ,ρ(P j(k+v) )∈γ jk , P j(k+v) ∈Π a , Because from P jb To P je The number of stages does not exceed l max , step 3.2.13 loop executes at most (n+1)×ψ sum × max times. Therefore, the complexity of MBA1 is O(|P 1 |)+O(|P 2 |×l max )+O(m+L 3 ×(L+ψ max ))+O((n+1)×ψ sum × max ×(((L+n)×l max )+ψ sum 2 × max ))+O(|P 1 |+|P 2 |). Because |P 1 |≤L,|P 2 |≤L,ψ max ≤ψ sum ,m≤ψ sum and n≤L,O(MBA1)=O(L 3 ×(L+ψ max )+n×ψ sum × max 2 ×(L+ψ sum 2 ))=O(L 3 ×(L+ψ max )+L 3 ×ψ sum ×(L+ψ sum 2 ))=O(L 3 ×ψ sum ×(L+ψ sum 2 )).
[0298] Step 3.3: Second Improved Banker's Algorithm
[0299] The second improved banker's algorithm (MBA2) is given below. MBA2 attempts to remove all the remaining workpieces in the system after executing MBA1, assuming λ = 1. Due to the existence of assembly operations in the system, removing the remaining workpieces in the system may require unprocessed workpieces. The number of workpieces required is calculated by CNR.
[0300] MBA2 consists of two parts: and Try to put in stage P 1 ∪P 2 ∪P 3 ∪P 4 The workpiece removal system on Trying to put a jk ∈P 1 ∪P 2 ∪P 3 ∪P 4 The workpiece moves to ρ(P j(k+v) ), where v∈{1,2,…,l j -k},ρ(P j(k+v) )∈γ jk ,P j(k+v) ∈Π a ,
[0301] Theorem 5: It has polynomial time complexity.
[0302] Proof: Step 3.3.2 loops each time a 1 (q)∪P 2 (q)∪P 3 (q)∪P 4 (q) is removed from the system. Because one workpiece occupies one buffer space, |P 1 (q)∪P 2 (q)∪P 3 (q)|≤ψ sum Each workpiece requires at most n unprocessed workpieces to complete the assembly operation. Therefore, in stage P 4 The number of workpieces on (q) does not exceed (n×ψ sum) Therefore, the loop in step 3.3.2 executes at most ((n+1)×ψ sum ) times. Because from P jk To P je The number of stages does not exceed l max =max{l j |j∈{1,2,…,n}}, a jkThe complexity of the workpiece removal system on the max Therefore, the complexity of the for loop in lines 3-11 is O((n+1)×ψ sum × max ).therefore, The complexity is O((n+1) 2 ×ψ sum 2 × max )=O(n 2 ×ψ sum 2 × max ).
[0303] Processing stage P 1 ∪P 2 ∪P 3 ∪P 4 The workpiece on Processing stage P 1 ∪P 2 ∪P 4 On the workpiece, in addition, and The effect is the same. Step 3.2.5 "If there is P jk ∈P 1 ∪P 2 " is replaced by "If there is P jk ∈P 1 ∪P 2 ∪P 3 ”, you can get To save space, the
[0304] Theorem 6: It has polynomial time complexity.
[0305] Proof: Because |P 1 ∪P 2 ∪P 3 |≤L, from Theorem 4, we can know that The complexity and The same, that is
[0306] Theorem 7: MBA2 has polynomial time complexity.
[0307] Proof: The complexity of the for loop in step 3.3.5 is O(|P 1 ∪P 2 ∪P 3|). Since one workpiece occupies one buffer space, the number of workpieces in the system does not exceed ψ sum =Σ i∈{1,2,m} ψ i Each workpiece requires at most n unprocessed workpieces to complete the assembly operation. Therefore, Φ[1]+Φ[2]+…+Φ[n]≤n×ψ sum .
[0308] Each iteration of step 3.3.8 consists of At least one jk ∈P 1 (q)∪P 2 (q)∪P 3 (q)∪P 4 The workpiece on (q) moves to ρ(P j(k+v) ), where v∈{1,2,…,l j -k},ρ(P j(k+v) )∈γ jk , P j(k+v) ∈Π a , Because from P jb To P je The number of stages does not exceed l max , the loop of step 3.3.8 executes at most (n+1)×ψ sum × max times. The complexity of the loop in step 3.3.8 is O((n+1)×ψ sum × max ×(n 2 ×ψ sum 2 × max +(L+n)×l max ))=O(n×ψ sum × max 2 ×(n 2 ×ψ sum 2 +L)). The complexity of the loop in step 3.3.9 is O(|P 1 ∪P 2 ∪P 3 |). Because |P 1 ∪P 2 ∪P 3 |≤L,ψ max ≤ψ sum ,m≤ψ sum , n≤L, so O(MBA2)=O(|P 1 ∪P 2 ∪P 3 |)+O(m+L3 ×(L+ψ max ))+O(n×ψ sum × max 2 ×(n 2 ×ψ sum 2 +L))+O(|P 1 ∪P 2 ∪P 3 |)=O(L 3 ×(L+ψ sum ))+O(ψ sum ×L 3 ×(L 2 ×ψ sum 2 + L)) = O(L 5 ×ψ sum 3 ).
[0309] Step 3.4: Robust Supervisory Control Strategy of the System
[0310] The robust supervisory control strategy proposed in this paper is LZZ :Q×∑→{0,1}, which is specifically defined as follows. Let q∈Q R (q0) is the state of the system π∈ξ(q) is the enabling event in state q, if π∈∑ u , then △ LZZ (q,π)=1; otherwise, let q1=δ(q,π), if and only if MBA1(q1)=(true,q2) and MBA2(q2)=true,△ LZZ (q,π)=1.
[0311] The following proves LXW Satisfies the characteristics in Definition 3.
[0312] Lemma 5: And q(λ)=1, assuming σ∈{∑ c ∪∑ u1}* is the sequence of events found by MBA1 at q, then executing σ from q does not violate MBA2.
[0313] Proof: Given i∈{1,2,…,|σ|}, let σ [i] represents the event sequence consisting of the first i events of σ. Assume And (true,q2)=MBA1(q1). Let π denote the (i+1)th event, q3=δ(q1,π). However, if π occurs in state q1, MBA2(q4)=false, where q4 is the state obtained by MBA1 in q3. If π=βjk ∈∑ u1 , then △ LZZ (q1,π)=1. Therefore, Let π = α j(k+1) ∈∑ c , p jk For stage P jk Consider the following three situations.
[0314] Case 1: P jk ∈P 1 MBA1 will be p jk Removed from the system. so And P j(k+1) ∈P 1 Therefore, MBA1 will p j(k+1) Remove from the system. Therefore, q2=q4, MBA2(q4)=MBA2(q2)=true.
[0315] Case 2: P jk ∈P 2 MBA1 will be p jk Move to ρ(P j(k+v) ), where v∈{1,2,…,l j -k},ρ(P j(k+v) )∈γ jk ,ρ(P j(k+v) )∈Γ(S), because and so If v = 1, then P j(k+1) ∈P 3 , so MBA1 will p j(k+1) Retained in ρ(p j(k+1) ). If v>1, then And P j(k+1) ∈P 2 MBA1 will be p j(k+1) Move to ρ(P j(k+v) ). Therefore, q2=q4 and MBA2(q4)=MBA2(q2)=true.
[0316] Case 3: P jk ∈P 3 MBA1 will not move p jk , so α j(k+1) will not appear in σ.
[0317] Therefore, q's execution of σ does not violate MBA2.
[0318] Lemma 6: and q(λ)=1, assuming MBA1(q)=(true,q1),σ∈{∑ c ∪∑ u1}* is the event sequence found by MBA2 in q1, then executing σ from q1 does not violate MBA1.
[0319] Proof: Given i∈{1,2,…,|σ|}, let σ [i] represents the event sequence consisting of the first i events of σ. Assume Let MBA1(q2)=(true,q3). Let π denote the (i+1)th event, q4=δ(q2,π). However, if π occurs in state q2, MBA1(q4)=(false,q5), where q5 is the state obtained by MBA1 in q4. If π=β jk ∈∑ u1 , then △ LZZ (q1,π)=1. Therefore, Let π = α j(k+1) ∈∑ c , p jk For stage P jk The moved workpiece on j(k+1) For this artifact in stage P j(k+1) Consider the following three scenarios.
[0320] Case 1: P j(k+1) ∈P 1 MBA1 will be p j(k+1) Remove from the system. Because q∈Q R (q0,△ LZZ ), MBA2 can convert p j(k+1) Removed from the system. Therefore, MBA1 does not prevent event π from occurring in state q2.
[0321] Case 2: P j(k+1) ∈P 2 MBA2 will either be p j(k+1) out of the system, or move it to ρ(P j(k+v) ), where v∈Z + ,ρ(P j(k+v) )∈γ jk ,P j(k+v) ∈Π a , MBA1 will be p j(k+1) Move to ρ(P j(k+z) ), where z∈{2,…,l j -k},ρ(P j(k+z) )∈γ jk ,ρ(P j(k+z))∈Γ(S),
[0322] if And P jw ∈Π a , then from 1 we know that ρ(P j(k+v) )∈Γ(S). In this case, v≥z. Since p j(k+1) Move to ρ(P j(k+v) ) or removed from the system, so j(k+1) Move to ρ(P j(k+z) ) can be completed.
[0323] If not present And P jw ∈Π a ,So Otherwise, before MBA1 jk will be removed from the system. Because ρ(P jw )=r u , from Definition 1 and Definition 2, we know that ρ(P j(k+v) )∈Γ(S). In this case, v≥z. Since p j(k+1) Move to ρ(P j(k+v) ) or removed from the system, so j(k+1) Move to ρ(P j(k+z) ) can be completed.
[0324] Case 3: P j(k+1) ∈P 3 MBA1 will not move p j(k+1) .
[0325] Therefore, executing σ from q1 does not violate MBA1.
[0326] Theorem 8: and q(λ)=1, δ(q,σ [i] )∈Q R (q0,△ LZZ ), and q0=δ(q,σ).
[0327] Proof: Note that when MBA1(q) = (true, q1) and MBA2(q1) = true, △ LZZ MBA1(q)=(true,q1) means that all jk ∈P 1 (q) The workpiece can be removed from the system; all jk ∈P 2 The workpiece on (q) can be moved to ρ(Pj(k+v) ), where v∈{1,…,l j -k},ρ(P j(k+v) )∈γ jk ,ρ(P j(k+v) )∈Γ(S), That is to say, MBA2(q1)=true means that if λ=1, then all workpieces in the system in state q1 can be removed from the system, that is, therefore, It only needs to be proved below δ(q,σ1σ 2[i] )∈Q R (q0,△ LZZ ). From Lemma 2, we know that executing σ1 from q does not violate MBA2, so δ(q,σ 1[i] )∈Q R (q0,△ LZZ ). Lemma 3 shows that executing σ2 from q1 does not violate MBA1. Therefore, δ(q1,σ 2[i] )∈Q R (q0,△ LZZ ).
[0328] Theorem 9: If κ∈ξ(q), then q1=δ(q,κ) is a FS.
[0329] Proof: Because q∈Q R (q0,△ LZZ ), so MBA1(q)=(true,q1). That is, all jk ∈P 1 (q) The workpiece can be removed from the system; all jk ∈P 2 The workpiece on (q) can be moved to ρ(P j(k+v) ), where v∈{1,…,l j -k},ρ(P j(k+v) )∈γ jk ,ρ(P j(k+v) )∈Γ(S), Let σ denote the sequence of events found by MBA1 in state q and δ(q,σ)=q2.
[0330] If P jk ∈P 1 (q), then If P jk ∈P 2 (q), then where v∈Z+ ,ρ(P j(k+v) )∈γ jk ,ρ(P j(k+v) )∈Γ(S). Therefore, the event sequence found by MBA1 is not contained in r u The completion event on q1. Therefore, σ is executable from q1. Let δ(q1,σ)=q2. Then, In state q2, r i Therefore, starting from state q2, the system can continue to process workpieces that do not request resources in Γ(S).
[0331] Corollary 2: And λ=0, all workpieces that do not request resources in Γ(S) can be processed continuously from q.
[0332] Theorem 10: If η∈ξ(q), then q1=δ(q,η) is FS.
[0333] Proof: Because q∈Q R (q0,△ LZZ ), so there exists a sequence of events σ executable from q such that all jk ∈P 1 (q) The workpiece can be removed from the system; all jk ∈P 2 The workpiece on (q) can be moved to ρ(P j(k+v) ), where v∈{1,…,l j -k},ρ(P j(k+v) )∈γ jk ,ρ(P j(k+v) )∈Γ(S), From Theorem 9, we know that σ is also executable from q1. Let δ(q1,σ)=q2∈Q R (q0,△ LZZ ). From Theorem 8, we know that δ(q,σ [i] )∈Q R (q0,△ LZZ ),q0=δ(q2,σ).
[0334] Theorem 6-2: △ LZZ It is the robust supervisory control strategy of the system.
[0335] Proof: From Theorem 8, we know that △ LZZ Satisfies the characteristic 1 in Definition 3. From Theorem 9, we know that △ LZZ Satisfies characteristic 2 in definition 3. From corollary 1, we know that △ LZZ Satisfies the characteristic 3 in Definition 3. From Theorem 10, we know that △ LZZSatisfies property 4 in definition 3.
[0336] Comparative Study
[0337] Many control strategies have been proposed in the literature for automated manufacturing systems with unreliable resources. 2006 (ChewSF, Lawley MA. Robust supervisory control for production systems with multiple resource failures [J]. IEEE Transactions on Automation Science and Engineering, 2006, 3(3): 309-323.), C 2009 (Chew SF, Wang SY, Lawley MA. Robust supervisory control for product routings with multiple unreliable resources [J]. IEEE Transactionson Automation Science and Engineering, 2009, 6 (1): 195-200.), C 2011 (Chew SF, WangS, Lawley MA. Resource failure and blockage control for production systems [J]. International Journal of Computer Integrated Manufacturing, 2011, 24(3): 229-241.), D 2019 (Du N, Hu HS. Robust deadlock avoidance control for AMSs with assembly operations embedded in flexible routes using Petri nets[J]. IETControl Theory Application, 2019, 13(11):1579-1590.), L1 2002(Lawley MA.Control ofdeadlock and blocking for production systems with unreliable workstations[J].International Journal of Production Research,2002,40(17):4563-4582.),L2 2002 (Lawley MA,Sulistyono W.Robust supervisory control policies for manufacturingsystems with unreliable resources[J].IEEE Transactions on Robotics andAutomation,2002,18(3):346-359.),L 2013 (Liu GY,Li ZW,Barkaoui K,et al.Robustnessof deadlock control for a class of Petri nets with unreliableresources.Information Sciences,2013,235(6):259-279.),L 2017 (Luo JC,Xing KY,WuYC.Robust supervisory control policy for automated manufacturing systems witha single unreliable resource.Transactions of the institute of measurement andcontrol,2017,39(6):793-806.),L 2019 (Luo JC,Liu ZQ,Zhou MC,et al.Robust deadlockcontrol of automated manufacturing systems with multiple unreliableresources.Information Sciences,2019,479:401-415.),W 2016(Wang F,Xing KY,ZhouMC,et al.A robust deadlock prevention control for automated manufacturingsystems with unreliable resources.Information Sciences,2016,345:243-256.),W 2008 (Wang SY,Chew SF,Lawley MA.Using shared-resource capacity for robustcontrol of failure-prone manufacturing systems[J].IEEE Transactions onSystems,Man and Cybernetics,Part A:Systems and Humans,2008,38(3):605-627.),W 2016 (Wu YC,Xing KY,Luo JC,et al.Robust deadlock control for automatedmanufacturing systems with an unreliable resource.Information Sciences,2016,346:17-28.),Y1 2014 (Yue H,Xing KY.Robust supervisory control for avoidingdeadlocks in automated manufacturing systems with one specified unreliableresource[J].Transactions of the Institute of Measurement and Control,2014,36:435-444.),Y2 2014(Yue H, 2018 (Yue H, Xing KY, Hu HS, et al. Resource failure and buffer space allocation control for automated manufacturing systems. Information Sciences, 2018, 450: 392-408.) The comparison between their control strategies and those in this paper is shown in Table 1.
[0338] Table 1 Comparison with existing control strategies
[0339]
[0340]
[0341] As shown in Table 1, among all the control strategies for automatic manufacturing systems with unreliable resources, only D 2019 , D 2020 , and △ LZZ Can handle automated manufacturing systems that include assembly operations. However, D 2019 and D 2020 The control goal of is to ensure that workpieces that do not request faulty resources continue to be processed. As shown in Example 2, such a goal is impossible to achieve for a system containing unreliable and assembly operations. Therefore, only △ LZZ Able to handle automated manufacturing systems with unreliable resources and assembly operations and satisfy the properties in Definition 3.
[0342] The innovation of the present invention is:
[0343] (1) For the first time, four properties that a robust monitoring strategy for a flexible assembly operation system with unreliable resources needs to satisfy are proposed; (2) Two improved banker algorithms are proposed, and it is proved that their combination is the only robust supervisory control strategy that can satisfy the four proposed properties.
[0344] In summary, the present invention has the following advantages:
[0345] (1) For the first time, four characteristics that a robust monitoring strategy for a flexible assembly operation system with unreliable resources must satisfy are proposed;
[0346] (2) Two improved banker algorithms are proposed and it is proved that their combination is the only robust supervisory control strategy that can satisfy the four proposed properties;
[0347] (3) The proposed robust supervisory control strategy is proven to have polynomial time complexity and can therefore be widely used in large-scale flexible manufacturing systems.
Claims
1. A robust control method for a flexible assembly system containing a single unreliable resource, characterized in that: The steps include: Step 1: Flexible assembly system modeling; Step 1-1: The flexible assembly system contains an unreliable resource and has the following three typical characteristics: First, each resource is a workstation, including a machine for processing workpieces and a number of buffer slots for storing work; second, only the machine of the unreliable resource can fail, and the failure occurs when the machine is working or idle; finally, each workpiece has only one processing path, and each operation only requires one resource; Step 1-2: Model the flexible assembly system using automata; The model is represented by an octet S = {R, ψ, P, ρ, Q, Σ, ξ, δ}, where R = {r1, r2, …, r m } is a collection of resources, m represents the number of resources in the system; let r u represents the unreliable resources in the system; let ψ i ∈Z + Represents r i ∈R, the capacity of the buffer space, Z + is a positive integer; P={P1,P2,…,P n } is a set of artifact types, where n represents the number of artifact types in the system, let l j Indicates P j The number of operations, P jk Indicates P j The kth operation; for each type of workpiece P j ∈P, let P jb and P je Respectively represent P j The beginning and end stages; let P b = {P 1b ,P 2b ,…,P nb } and P e = {P 1e ,P 2e ,…,P ne }, let ρ(P jk ) indicates P jk Each instance of p jk Requested resources; let Ω(r i )={P jk :ρ(P jk )=r i } indicates a request r i The set of operations ∈R; Since different artifacts may contain some of the same operations, let P i and P j Represents two types of workpieces, P i(k-1) and P ik YesP i Two consecutive operations, P j(o-1) and P jo YesP j If two consecutive operations of P i(k-1) and P j(o-1) are different operations, and P ik and P jo is the same operation, then P ik or P jo Is P i(k-1) An example of P j(o-1) An assembly operation to assemble an instance of a Denote the set of assembly operations in the system, let P jk ∈P a represents an assembly operation, Π(P jk ) represents the set of operations assembled by this assembly operation, expressed as: Π(P ik )=Π(P jo )={P i(k-1) ,P j(o-1) }; Q represents the set of system states. A state q=<λ,x jk ,y jk :j=1,…,n,k=1,…,l j >, where λ=0 or 1 means r u Is it a malfunction or normal operation; x jk ,y jk Respectively represent the stage P jk The number of completed or unfinished workpieces on the system; q0 is the initial state of the system, where x jk =y jk =0, k=1,…,l j , λ=1; given a state q, if q(λ)=1, q(x 11 )=1,q(y 21 )=2, and the other elements are all 0, then q can be expressed as q=1+x 11 +2y 21 ; ∑=∑ c ∪∑ u , where ∑ c ={α jk :j=1,2,…,n,k=1,…,l j +1} is the set of controllable events, α jk ,k≤l j Indicates that ρ(P jk ) is assigned to p jk , α j(lj+1) Represents a completed P j Leave the system; represents the set of assembly events in the system, ∑ u =∑ u1 ∪{κ,η} is the set of uncontrollable events in the system, where ∑ u1 ={β jk :j=1,…,n,k=1,…,l j }, β jk Indicates that in P jk The workpiece is processed, κ and η represent the failure or repair of uncontrollable resources respectively; Given a state q∈Q, ξ(q) is the set of events that can be enabled under q, defined as follows: a) P j1 ∈Ω(r i ),if Then α j1 ∈ξ(q); b) If r i =r u , then q(λ)=1 is necessary, If q(y jk )>0, then β jk ∈ξ(q); c) If λ = 1, then κ∈ξ(q); d) If q(λ) = 0, then η∈ξ(q); e) 1 of them <k≤|P j | and If q(x j(k-1 )>0 and λ i =0, then α jk ∈ξ(q); f) 1 of them <k≤|P j | and α jk ∈∑ a ,if and Then α jk ∈ξ(q); g) If q(x j|Wj| )>0, then α j(lj+1) ∈ξ(q); δ:Q×∑→Q is the state transition equation. For state q∈Q and enabling event π∈ξ(q), let δ(q,π) represent the state obtained from state q after enabling event π; Let σ=π1π2...π k ∈∑* represents an event string. Given q∈Q, if q2=δ(q1,π2)∈Q,…,and q k =δ(q k-1 ,π k )∈Q, then σ can occur from q, q 1- q k is a state reachable from q; Q R (q) represents the set of states reachable from q; Let δ(q,σ) represent the state obtained by enabling the events in σ in sequence from state q; given the control strategy △, let Q R (q,△) represents the set of states reachable from q under the supervision of △; Step 2: Characteristics of the robust control strategy; The robust supervisory control strategy for an automated manufacturing system with a single unreliable resource needs to ensure that: 1) when the unreliable resource fails, workpieces that do not request the failed resource continue to be processed; 2) when the unreliable resource is working properly, all workpieces continue to be processed; for an automated manufacturing system with a single unreliable resource and assembly operations, property 1) cannot be met; For virtual unreliable resources, the specific definitions are as follows; Definition 1: Given an operation P jk , let θ(P jk ) indicates that in P jk The previous set of operations containing virtual operations, Θ(P jk )=θ(P jk )∪{P jk }; Resource i ∈R is a virtual unreliable resource if and and Definition 2: Resource r i ∈R is a second-order virtual unreliable resource if and and It is a virtual unreliable resource; Lemma 1: P jk and P j(k+c) Indicates P j Two stages, where c∈Z + ; if P jk ∈Π a , P j(k+c) ∈Π a , and ρ(P jk )∈Γ(S), then ρ(P j(k+c) )∈Γ(S); According to the above process, when r u In case of failure, request r u or virtual unreliable resources cannot continue processing; therefore, a robust control strategy should ensure that those that do not request r u ∪Γ(S) continuous processing of workpieces; specifically, the robust control strategy needs to satisfy the following characteristics: Definition 3: If all the systems do not request r u ∪Γ(S) can be processed continuously in a certain state, then this state is called the suitable state of S, referred to as FS; if 1) when λ = 1, all workpieces can be processed continuously; 2) If κ∈ξ(q), then δ(q,κ) is FS; 3) When λ=0, all unrequested workpieces can be processed continuously; 4) If η∈ξ(q), then δ(q,η) is FS; then the control strategy △ is called robust to S; Step 3: Robust control strategy; Step 3-1: Branching strategy CNR algorithm; The input of the CNR algorithm includes the state q, the stage set D1 where the workpiece is located, the number set D2 of the workpieces in the stage set D1, the target position set D3 of the workpiece number set D2, and the system S under study; given the operation stage P jk ,make Represents the set of its remaining operations; CNR does not consider the capacity and status of resources during the calculation process; therefore, CNR first sets the resource capacity to infinity and the status of unreliable resources to running; artifacts on stages that are not in D1 are not considered, so CNR clears these artifacts to avoid interference; the subsequent state is assigned to q; then CNR moves all artifacts on D1 to their target positions sequentially, and updates D1 and D2 synchronously; and then assigns the state after the above operations to q; since the capacity of resources is assumed to be infinite, the remaining artifacts that cannot be moved to the target position can only be blocked because the artifacts that need to be assembled with them are not in the waiting assembly stage; then, CNR will be in stage P jk The workpiece ∈D1 moves to The position with the smallest subscript in is found, and D1 is updated synchronously, and the state after the above operation is assigned to q; then, CNR calculates the number of unprocessed workpieces required; in order to complete the calculation, the following definitions are required: A workpiece has multiple assembly stages, some of which depend on other assembly stages to complete their assembly operations; the classification of different assembly stages is as follows; Definition 4: Let P je is a virtual end stage of the system, P a (P je )=θ(P je )∩P a For P je The collection of all previous assembly stages; An assembly operation P jk ∈P a (P je ) If satisfied It is called a first-order assembly operation; Let P a1 (P je ) indicates that in P a (P je ) is a set of first-order assembly operations; an assembly operation P jk ∈{P a (P je )\P a1 (P je )}If satisfied It is called a second-order assembly operation; let P a2 (P je ) indicates that in P a (P je ) is the set of second-order assembly operations in ; formally, an assembly operation P jk ∈{P a (P je )\P a1 (P je )\P a2 (P je )\...\P av (P je )}If satisfied It is called a (v+1)-order assembly operation; assuming that the largest assembly stage is c max ;make Let Φ[j] store the required P jb ∈P b Unprocessed workpiece; Initially, for P jb ∈P b Let Φ[j] = 0, and start the CNR calculation from the first-order assembly operation. Given P jk ∈P a1 ,if Let z = max{q(x vw )+q(y vw ):P vw ∈Π(P jk )}; For each P vw ∈Π(P jk ),make Indicates that in P vw The set of previous virtual start stages, for each Let Φ[o]=Φ[o]+zq(x vw )-q(y vw ); let q(x vw )=z,q(y vw )=0; Then, assemble in stage Π(P jk ) for z times, update D1 and D2, and assign the resulting state to q; if the resulting workpieces can be moved to D3[i], then move them one by one to D3[i] until all workpieces are moved or can no longer be moved, update D1 and D2, and assign the resulting state to q; if the resulting workpieces cannot be moved to D3[i], move the z workpieces in P jk The workpiece moves to P j(k+v) , where v∈Z, P j(k+v) ∈Π a , Update D1 and D2, assign the obtained state to q; in all P jk ∈P a1 After the stage processing is completed, CNR starts the calculation of the second-order assembly operation; the calculation process of the second-order assembly operation is the same as the calculation process of the first-stage assembly operation; repeat this section until all All processed; Theorem 1: Given q∈Q R (q0), D1, D2, D3, S, let Φ min represents the minimum number of unprocessed workpieces required to move all workpieces in stage D1 to the target stage D3; then, Φ=CNR(q,D1,D2,D3,S)=Φ min ; Step 3-2: The first improved banker algorithm MBA1; make Represents the set of all operations in the system, that is, Given make Indicates P jk The remaining path of represents the set of operation locations that will not request resources in Γ(S) in the future; let and represents the set of operation locations that request resources in Γ(S) in the future but are not on Γ(S) resources; let represents the set of operation locations on Γ(S) resources; let Given a state q, MBA1 sets all the The workpiece removal system on the stage The workpiece moves to ρ(P j(k+v) ), where v∈Z + ,ρ(P j(k+v) )∈γ jk ,ρ(P j(k+v) )∈Γ(S), make Respectively represent the state q in the stage The set of stages with workpieces on it; due to the existence of assembly operations, it will be in the stage Moving the workpiece on the target position may require unprocessed workpieces; the number of required workpieces is calculated by CNR; let Φ represent the number of unprocessed workpieces required, And Φ[i]>0}; MBA1 consists of two parts, namely and Try to put in stage Move the workpiece to the target stage. Try to put in stage The workpiece moves to ρ(P j(k+v) ), where v∈Z + ,ρ(P j(k+v) )∈γ jk , P j(k+v) ∈Π a , Theorem 2: It has polynomial time complexity; Theorem 3: It has polynomial time complexity; MBA1Find an The order of the stages, in this order all The workpieces on the stage can be moved to the target position; If this sequence can be found, MBA1 returns (true, q1), indicating that q is accepted by MBA1 and the state obtained after moving all artifacts in this sequence is q1; otherwise, MBA1 returns (false, q1); MBA1 Alternate Execution and Until all in The workpieces on each stage are moved to the target position; let D1, D2, and D3 represent three sets used to store the considered stages, the number of workpieces on these stages, and the target positions of these considered stages respectively; Theorem 4: MBA1 has polynomial time complexity; Step 3-3: The second improved banker algorithm MBA2; MBA2 attempts to remove all the workpieces remaining in the system after executing MBA1, assuming that λ=1. Due to the existence of assembly operations in the system, removing the remaining workpieces from the system may require unprocessed workpieces. The number of workpieces required is calculated by CNR. MBA2 consists of two parts: and Try to put in stage The workpiece removal system on Trying to put a The workpiece moves to ρ(P j(k+v) ), where v∈{1,2,…,l j -k},ρ(P j(k+v) )∈γ jk ,P j(k+v) ∈Π a , Theorem 5: It has polynomial time complexity; Stages of processing The workpiece on Stages of processing On the workpiece, in addition, and The effect is the same; Theorem 6: It has polynomial time complexity; MBA2 Alternate Execution and Until all in The workpieces on the stage are removed from the system; let D1, D2, D3 represent three sets used to store the considered stages, the number of workpieces on these stages, and the target positions of these considered stages; Theorem 7: MBA2 has polynomial time complexity; Step 3-4: Robust supervisory control strategy of the system; The robust supervisory control strategy is LZZ :Q×∑→{0,1}, which is specifically defined as follows: Let q∈Q R (q0) is the state of the system π∈ξ(q) is the enabling event in state q, if π∈∑ u , then △ LZZ (q,π)=1; otherwise , let q1 = δ(q,π), if and only if MBA1(q1) = (true,q2) and MBA2(q2) = true, △ LZZ (q,π)=1; Lemma 2: And q(λ)=1, assuming σ∈{∑ c ∪∑ u1 }* is the event sequence found by MBA1 at q, then executing σ from q does not violate MBA2; Lemma 3: and q(λ)=1, assuming MBA1(q)=(true,q1),σ∈{∑ c ∪∑ u1 }* is the event sequence found by MBA2 in q1, then executing σ from q1 will not violate MBA1; Theorem 8: and q(λ)=1, δ(q,σ [i] )∈Q R (q0,△ LZZ ), and q0 = δ(q,σ); Theorem 9: If κ∈ξ(q), then q1=δ(q,κ) is a FS; Corollary 1: and λ = 0, all workpieces that do not request resources in Γ(S) can be processed continuously from q; Theorem 10: If η∈ξ(q), then q1=δ(q,η) is FS; Theorem 6-1: Finally, we get △ LZZ It is the robust supervisory control strategy of the system.
2. The robust control method for a flexible assembly system containing a single unreliable resource according to claim 1, characterized in that: Said The steps are as follows: Input: The state of the system q∈Q R (q0), system S; Output: state q1 after moving the workpiece; Step 3.3.1: flag = true; Step 3.3.2: If flag = true, then loop through steps 3.3.2.1 and 3.3.2.2, otherwise jump to step 3.3.3; Step 3.3.2.1: flag = false; Step 3.3.2.2: If it exists Then loop through steps 3.3.2.2.1 and 3.3.2.2.2, otherwise jump to step 3.3.3; Step 3.3.2.2.1: If q(x jk )+q(y jk )>0 and exists in stage P jk If the workpiece on the system can be removed from the system, let σ represent the sequence of events associated with this movement, q = δ(q,σ), and flag = true, otherwise jump to step 3.2.7; Step 3.3.2.2.2: From Delete P jk ; Step 3.3.3: Return to q.
3. The robust control method of a flexible assembly system containing a single unreliable resource according to claim 1, characterized in that: The steps of MBA2 are as follows: Input: The state of the system q∈Q R (q0); Output: flag, indicating whether q is rejected by MBA2; Step 3.3.4: Order Step 3.3.5: If it exists Then execute steps 3.3.5.1 to 3.3.5.5 in a loop, otherwise jump to step 3.3.6; Step 3.3.5.1: D1[i] = P jk ; Step 3.3.5.2: D2[i] = q(x jk )+q(y jk ); Step 3.3.5.3: D3[i] = P je ; Step 3.3.5.4: Let i increase by 1; Step 3.3.5.5: From Delete P jk ; Step 3.3.6: Φ = CNR(q, D1, D2, D3, S); Step 3.3.7: flag = true; Step 3.3.8: If flag = true, then loop through steps 3.3.8.1 to 3.3.8.3, otherwise jump to step 3.3.9; Step 3.3.8.1: Step 3.3.8.2: Step 3.3.8.3: q = q2; Step 3.3.9: If it exists Then loop through step 3.3.9.1, otherwise jump to step 3.3.10; Step 3.3.9.1: If q(x jk )+q(y jk )>0, then return false; Step 3.3.10: Return true.
Citation Information
Patent Citations
Singular-perturbation-based flexible mechanical arm time scale separation robust control method
CN109514558A
Throughput flexible intelligent assembly logistics path planning platform
CN110058573A
