scieee AI-readable full text Open interactive document viewer

Non-centralised control strategies for energy-efficient and flexible manufacturing systems

Diaz Castañeda, Jenny Lorena,Ocampo-Martínez, Carlos

Abstract

The manufacturing industry is transforming towards smart, energy-efficient, and flexible manufacturing systems. In this regard, this work deals with the design of non-centralised control architectures to improve the energy eciency of such systems and to promote their flexibility. Based on both the configuration of manufacturing systems and their coupling dynamics, these systems are divided into sub-systems, from which smaller control problems can be stated. Thus, control/management strategies can also be modularised to confer more flexibility to manufacturing systems. Then, by using suitable distributed optimisation techniques, and properly defining the consensus stages among the local controllers, the outputs from such controllers are optimally coordinated to minimise the total energy consumption of the whole system. The proposed control strategies are tested in simulation for a typical process line of automotive parts manufacturing industry, in which the main processing units are machine tools. Based on the obtained results, manufacturing systems and their control strategies could be suitably modularised using non-centralised control schemes, from which a closed-loop performance similar to its centralised counterpart can be achieved.

Full text

Non-centralised Control Strategies for Energy-efficient and Flexible Manufacturing Systems Jenny L. Diaz C.a, Carlos Ocampo-Martineza aAutomatic Control Department, Universitat Polit`ecnica de Catalunya, Institut de Rob`otica i Inform`atica Industrial (CSIC-UPC), Llorens i Artigas 4-6, Planta 2, 08028 Barcelona, Spain (e-mail: {jenny.lorena.diaz, carlos.ocampo}@upc.edu). Abstract The manufacturing industry is transforming towards smart, energy-efficient, and flexible manufacturing systems. In this regard, this work deals with the design of non-centralised control architectures to improve the energy efficiency of such systems and to promote their flexibility. Based on both the configuration of manufacturing systems and their coupling dynamics, these systems are divided into sub-systems, from which smaller control problems can be stated. Thus, control/management strategies can also be modularised to confer more flexibility to manufacturing systems. Then, by using suitable distributed optimisation techniques, and properly defining the consensus stages among the local controllers, the outputs from such controllers are optimally coordinated to minimise the total energy consumption of the whole system. The proposed control strategies are tested in simulation for a typical process line of automotive parts manufacturing industry, in which the main processing units are machine tools. Based on the obtained results, manufacturing systems and their control strategies could be suitably modularised using non-centralised control schemes, from which a closed-loop performance similar to its centralised counterpart can be achieved. Keywords: Flexible manufacturing systems, Energy efficiency, Real-time energy management,Model predictive control, Non-centralised control, Distributed optimisation. 1. Introduction The manufacturing industry is transforming towards Smart Manufacturing Systems (SMS) taking advantage of recent advances in sensing technology, connectivity, computer science, and data management. This transformation is known as Industry 4.0 and demands for smart, efficient, and flexible manufacturing systems. Besides, due to the changing demand and high customisation level of parts produced by the manufacturing industry, flexibility has become into one of the main goals of such transformation. Into the context of manufacturing industry, flexibility refers to the ability to respond quickly and efficiently to changing products design, production requirements, and market demands [1]. Although there is an increasing interest in SMS, few research works have focussed on the design of control strategies to improve the energy efficiency of such systems in real time while satisfying their flexibility and productivity requirements [2]. Regarding flexibility, researches have focused on designing modularised plants, process modelling, and process planning and scheduling to ensure the effectiveness of fulfilling the due dates and the optimal use of resources [1, 3]. However, the energy consumption has not been generally considered as a critical factor for the management of manufacturing systems and, most of the proposed approaches focus on maximising the production of parts that directly represent the revenue of a manufacturing plant. Besides, the few policies that focus directly on energy consumption are limited to an initial optimisation concerning production scheduling of existing plant devices [4, 5] or the use of rule-based controllers [6] designed according to the knowledge of the production processes. The primary units of the discrete manufacturing industry are the machine tools, which refer to a set of machining devices that work sequentially to process a piece. However, in a real industry, machines are not isolated and interact with other machine tools and peripheral devices, which are responsible for supplying the required resources by the machines for their machining processes (e.g., milling, cutting, turning, grinding, drilling). It means, at high aggregation levels of manufacturing systems, its size and the complexity of the operational relationships among their constitutive elements increase. Thus, such complex and large-scale systems can be difficult to control/manage in order to minimise their energy consumption while satisfying their operational relationships and maintaining system productivity. Therefore, to improve the energy efficiency of manufacturing systems by reducing energy consumption, large-scale manufacturing systems could be addressed as a set of many subsystems that interact with each other according to their process dynamics. Thus, the original control problem can be divided into smaller control problems, which could be solved separately and with a lower computational load [7]. Although the energy consumption dynamics can be easily separated for each sub-system, some process dynamics could involve several sub-systems resulting in coupled operational relationships. In this regard, the exchange of information between systems with coupled process dynamics is required to design control/management strategies that ensure the proper operation of manufacturing systems. Preprint submitted to a Journal April 16, 2021 Optimisation-based control techniques have been useful for improving the energy efficiency of manufacturing systems, since from them the controller makes decisions to minimise the energy consumption of these systems, while the process dynamics related to the main functions of manufacturing systems (e.g. cutting or machining operations) can be added to the set of constraints of the optimisation problem to ensure the production of the parts. Thus, centralised control approaches based on optimisation can address coupling interactions by adding them into the set of constraints of the optimisation problem behind the controller design. In [6], a centralised control strategy based on Model Predictive Control (MPC) is proposed to minimise the energy consumption of a machine tool and its peripheral devices. However, such control schemes may require a high computational burden to achieve a solution when the size of manufacturing systems increases. Besides, centralised control approaches do not offer a high level of flexibility since the controller design should be fully updated if there is any change in operating conditions. To overcome such issues, the noncentralised control schemes have emerged as an alternative to control large-scale systems by dividing the whole system into sub-systems and the corresponding centralised control problem into smaller problems. These approaches can also contribute to the modularisation of the control systems allowing higher flexibility of manufacturing systems. In the related literature, different non-centralised control schemes have been proposed based on the communication among the controllers and their control objectives [7]. Among them, there exist the completely decentralised structures, distributed control systems with exchanging of information, and hierarchical structures [8, 9, 10]. During the last decade, the design of non-centralized control strategies based on Multi-Agent Systems (MAS), Game Theory, and dynamic system partitioning have gained acceptance into the new era of smart systems [11, 12, 13, 14, 15]. Among them, MAS have been widely used in the field of manufacturing systems due to its inherent features of agility and adaptability that promote flexibility. However, due to the complexity and high computational burden required by these strategies, most of the proposed approaches in manufacturing industry are related to process planning and scheduling and production control and making-decision rather than energy efficiency of SMS [11]. In [16], an MAS approach is proposed to control the production of a process line in the automotive industry. In addition, a dynamic decision support framework based on a genetic algorithm and MAS is proposed to simulate and optimize the production scheduling of complex real production environments by taking into account different types of uncertainty factors in [17]. In the same way as MAS, the application of game theory into manufacturing systems is focused on automated process planning and scheduling. In [13] and [18], game theory-based strategies for cooperative and data-driven process planning and scheduling are proposed (e.g., Pareto strategy, Nash strategy and Stackelberg strategy), and different optimization algorithms such as particle swarm optimization (PSO), simulated annealing (SA) and genetic algorithm (GA) are implemented to solve the optimization problem behind the proposed strategy. Then, although these tools have demonstrated suitable results towards flexible and smart systems, allowing the design of control strategies in an autonomous and adaptive way, their performance quite depends on the data-driven and communication technologies available in industry environments [16, 11]. Thus, the main contribution of this work refers to a methodology for the design of modularised control strategies that satisfy the energy-efficient, production, and flexibility requirements for the new manufacturing industry. In this regard, non-centralised control architectures are proposed to minimise the energy consumption of manufacturing systems without affecting their productivity. The latter means, to manage manufacturing systems without affecting the processing times of machines while assuring the proper operation of machining processes. Therefore, manufacturing systems are divided into sub-systems taking into account their configuration and the coupled dynamics among them. Then, MPC-based controllers are designed for each subsystem to minimise their total energy consumption based on a prediction of their energy consumption dynamics and including their process dynamics as constraints. However, due to the coupled dynamics among sub-systems, a methodology for decoupling such subsystems by adding a new consensus variable and by redefining the coupled dynamics is proposed. Next, by using suitable methods to solve optimisation problems in a distributed manner, such as the Alternating Direction Method of Multipliers (ADMM), a way to determine the consensus among the local controllers with coupled dynamics is proposed. In this regard, local controllers are coordinated to satisfy operational constraints while minimising energy consumption of sub-systems involved. To this end, both cooperative and noncooperative control architectures are considered. Finally, the proposed approaches are compared with their centralised counterpart regarding their closed-loop performance and the computational burden, with the aim to check the viability of the modularisation of control systems using non-centralised control architectures. The remainder of the paper is organised as follows. The problem statement, which have been focused on discrete manufacturing industry, is presented in Section 2. Next, the proposed approach to minimise the energy consumption of discrete manufacturing systems by using non-centralised control architectures is introduced in Section 3. In the last section, the manner to get the consensus among local controllers and the stopping criteria for the proposed algorithm are also explained. Then, in Section 4, the case study to be analysed is presented, including a detail description of the operational constraints for a manufacturing process line. Afterwards, the simulation results obtained from the proposed approach are presented and discussed in Section 5. Finally, in Section 6, conclusions and future works based on the obtained results are drawn. 2. Problem Formulation In the context of discrete manufacturing industry, a process line is a complex system including several machines Miand peripheral devices Pjthat work synchronously and logically up to getting a finished part, as shown in Figure 1. Machines in a process line correspond to a set of machining devices that are 2 directly related to machining processes, while the peripheral devices are those devices that provide the resources required to machines for their proper operation [19]. It should be noted that when a peripheral device is shared among two or more machines of the process line is called global peripheral device, and when the device work only for the i-th machine in the line is known as local peripheral device of the machine. Machines in a process line are characterised by a periodic behaviour according to the sequence of machining operations and the total time required to process a piece, which is called operation cycle and denoted by TMi. Since peripheral devices supply resources to machines in the process line, there exist several functional relationships between machines and such devices that determine the productivity of the process line. Ideally, machines in a process line should operate without interruptions. Thus, the required resources for machining operations performed at every machine should be supplied at the proper instants and in the appropriate quantity to guarantee their continuous operation. In this regard, the activation instant and activation level of peripheral devices should be determined to satisfy the operational relationships while minimising the energy consumption of the whole process line. Due to the operational relationships among machines and peripheral devices, manufacturing systems exhibit strong coupling dynamics that must be satisfied to guarantee the proper operation of the machine. According to Figure 1, coupling dynamics refer to the cases in which there exist multiple providers to one machine or when the resources should be shared among different machines. In both cases, it must be guaranteed that the required resource is supplied at the proper time instants and quantity according to the machining sequence of each machine. Besides, it is necessary to ensure that peripheral systems have the capacity enough to provide resources during the operation of the machines. Then, considering a fixed number of machines and peripheral devices in the process line, their activation sequences can be defined as ΛMi(k)={uMi,1(k),uMi,2(k),...,uMi,m(k)},(1a) ΛP(k)={uP1(k),uP2(k),· · · ,uPn(k)},(1b) ∀i=1,2,· · · ,p, being k∈Z≥0the discrete-time index and, m=|ΛMi|and n=|ΛP|the total number of machining devices of the i-th machine and the number of peripheral devices in the process line, respectively. Usually, the activation signals of both machining devices and peripheral devices are constrained to uMi,d(k)∈ {0,1},d∈D,{1,2,· · · ,m}, and uPj(k)∈ {0,1}, j∈J,{1,2,· · · ,n}. However, for the cases in which the activation load of devices can be modulated, the activation signal will be constrained to uMi,d,uPj∈Z≥0. It is worth noting that ΛMialong TMicorresponds to the machining sequence of the i-th machine, which refers to all machining operations performed in such machine to process a piece. Since these operations are repeated every time a new piece arrives at the machine, every machine in the process line has a periodic behaviour that will be constant over time. Conversely, ΛPcould or could not exhibit a periodic behaviour that matches or not with some TMifor the machines in the process line. Then, the control objective is defined as the minimisation of the integral of the total energy consumption profile along a fixed period T, i.e., J(k)= T X k=1         p X i=1 SMi(k)      +        n X j=1 SPj(k)        | {z } S(k)  ∆k,(2) being S∈Rthe total energy consumption for the whole process line, ∆k=(tk−tk−1), and SMi∈Rand SPj∈Rthe energy consumption of the machines and peripheral devices, respectively. Due to the periodic behaviour that characterises machine tools, Tcan be defined according to the values of TMifor the different machines in the process lines. According to (2), energy consumption models for both the machines and peripheral devices are required to compute S. Then, the control problem consists of determining the activation/deactivation sequences of peripheral devices uPjthat minimises (2) without affecting the processing times and the machining operations performed by the machines. 3. Non-centralised Control Architectures for SMS As mentioned in Section 1, non-centralised control architectures can be designed as completely decentralised structures or distributed control systems according to the communication among local controllers. Decentralised control architectures refer to those controllers that are designed to operate in a completely independent fashion. It means that there is no communication among the local controllers designed for each subsystem. Such approaches are based on the assumption that the interactions among sub-systems are weak [20, 21]. However, due to the limited closed-loop performance of decentralised control systems given the lack of communication or information exchange among the local controllers, distributed control architectures have been deeply studied since they allow communication among the controllers to coordinate their actions [20]. Thus, in order to face the flexibility and modularity challenges of the new era of the manufacturing industry, and to design control strategies that can be suitable for their implementation in real time, a distributed control architecture based on MPC is proposed in this section assuming that the sub-systems have strong coupling dynamics between them. It is worth noting that the control strategy presented in this section is based on the non-cooperative case because it generally involves a lower computational burden. However, the modifications required to consider the cooperative case are presented and explained in Section 5. First, taking advantage of the classification of manufacturing systems as machining and peripheral devices, the following assumption is established to avoid affecting the system productivity of the such systems. Assumption 1. The machining sequence of each machine, i.e., ΛMialong TMi, is known and, hence, its associated apparent 3 Figure 1: n-stage serial process line with its corresponding peripheral devices. power consumption, βi,PTMi k=1SMi(ΛMi(k)), will be also known and periodic over time.  It should be noted that in the case Assumption 1 is not considered, the activation sequence for the machining devices could also be considered as a decision variable and, then, the time to process a piece by a machine and its productivity could be modified. Thus, taking into account that in a real manufacturing plant the sequence of machining devices is usually designed and optimised offline, if ΛMialong TMiremains fixed and constant over time and only uPjis modified, the processing time of each machine remains the same and the machine can process the same number of pieces as when the control strategy is not implemented. Besides, including operational relationships between machines and peripheral devices into the controller design, the optimal operation of such machines could be guaranteed. In this regard, the activation of uPjwill depend on the current energy consumption of the whole process line, the operational relationships between machines and peripheral devices, and the physical constraints of peripheral systems. In a process line level, the functional relationships between machines and peripheral devices could be quite complex due to some peripheral devices can be shared among two or more machines or supply the same resource provided by another global peripheral device to a particular machine. In these cases, a consensus for the management of such devices should be established to guarantee the satisfaction of the operating constraints among the constitutive elements of the process line. Thus, according to the process line configuration and the coupled dynamics among machines and peripheral devices, manufacturing systems are divided into sub-systems, and the control problem is also split into smaller control problems, one for each subsystem. It means (2) is now given by J(k)= L X l=1 Jl(k),(3) being Jlthe local cost function for the l-th sub-system defined as in (2) but considering only the energy consumption of the machines and devices related to such a sub-system. Then, local controllers are designed for each sub-system using Jl. Thus, considering a prediction horizon Hp, the activation sequence of peripheral devices for each local controller is given by1 ΓPl(k),{ΛPl(k|k),...,ΛPl(k+Hp−1|k)},(4) 1Here, z(k+r|k) denotes the prediction of the variable zat time instant k+r performed at k. The index rwill cover the finite prediction window of length Hp. and each local controller lis based on the following open-loop optimisation problem min ΓPl(k) Jl(k) (5a) subject to ξl h(k+1+r|k)=fl hξl h(k+r|k),ΛMi l(k+r|k),ul j(k+r|k),(5b) Sl h(k+r|k)=gl hξl h(k+r|k),(5c) Ql j(k+1+r|k)=ql jQl j(k+r|k),ul j(k+r|k),ΛMi l(k+r|k),(5d) mMi(k+r|k)=εuPjul Pj(k+r|k)+εuPsub Ps(k+r|k),(5e) ul j(k+r|k)∈ {n1,n2,· · · ,nl p},(5f) Ql j(k+r|k)∈Ql j,Ql j,(5g) ∀r=0,1,...,Hp−1, with iand jthe indices for the machines and peripheral devices involved in the l-th sub-system, respectively. Moreover, brefers to the index for the other sub-systems with coupled dynamics to the l-th sub-system and the index s refers to the index of the peripheral devices involved in the b-th sub-system. It should be noted that (5b) and (5c) correspond to the energy consumption model of the h-th element (either Mi or Pj) in the l-th sub-system. Besides, (5d) refers to the operational relationships among the machines and devices involved in the l-th sub-system, while (5e) is related to the coupled dynamics among the l-th and b-th sub-systems. Thus, (5e) refers to the mass flow balance for a particular resource required by the i-th machine mMiduring the machining operations. In (5e), values for εuPjrefer to the flow provided by each uPjwhen is turned on. In addition, expressions (5f) and (5g) refer to the range constraints for the decision variables and the operating ranges for the processes variables Ql jrelated to the operation of peripheral devices. Then, to make the sub-systems with coupling dynamics separable and to use suitable algorithms for solving the problems in a distributed way, a new consensus variable zjis introduced, (5e) is removed from the optimisation problem in (5), and a new balance constraint is defined as follows: ul Pj(k+r|k)=zj(k+r|k).(6) Replacing (5e) by (6), constraints in (5) are only related to the l-th sub-system and do not explicitly consider the interactions with the other sub-systems. Nonetheless, the variable zj should contain the information about the real balance constraint in (5e) taking into account the amount of flow provided by the other sub-systems related to the same resource and machine. 4 Thereby, zjshould be suitably determined since it accounts for the compliment of (5e). The main advantage of this transformation is that since zjcould be considered as an external variable for every sub-system, the local control problem can be solved separately if zjis known. In Section 3.1, a way to determine the values of zjis presented. Once the sub-systems and the related local control problems have been set, suitable optimisation algorithms should be selected to handle MPC problems in (5) distributively. Most of the algorithms proposed in the literature are iterative and require that some specific conditions are satisfied to converge to an optimal solution [22]. Some of the most used algorithms of this type are those based on the Lagrangian approach such as dual decomposition [23, 24], ADMM [22, 25], and the Accelerated Distributed Augmented Lagrangian (ADAL) [26, 27]. All these algorithms are based on the Lagrange dual theory, and the main difference among them concerns to the way they are used to decompose the augmented Lagrangian. Regarding systems with coupled cost functions and constraints, the underlying idea behind the algorithms based on Lagrangian multipliers is to relax the coupled restrictions to make separable the optimisation problem. Thus, a Lagrange multiplier is added per each coupled constraint. In this work, the ADMM algorithm is employed to solve the optimisation problems in (5) in a distributed way. These algorithms were selected because they have the advantages of the dual decomposition algorithm, but do not require that the cost function was strictly convex due to the fact they define the augmented Lagrangian. Then, according to the ADMM algorithm [22], (6) is relaxed into the cost function by using of the Lagrange multipliers and, the augmented Lagrangian for each sub-problem (5) is defined as follows: Ll ρΓPl,z, λ=Jl(·)+gv(z)+(λ)T(ul Pj−zj)+ρ 2kul Pj−zjk2 2,(7) with Jlthe local cost function, gv(·) a regularisation term for z=[z1,z2,· · · ,zj], and λ=[λ1,· · · λj] the Lagrange multipliers for all the coupled constraints in the l-th sub-system. Then, (7) is the new cost function of the optimisation problem with two sets of decision variables, i.e., ΛPland z, and with separable cost functions. To solve (5), first, variables ΛPlare updated for each subsystem lconsidering an initial condition for zand λ. This step can be performed in parallel or in sequential way. Next, based on the updated values for ΛPl, the consensus variable zis also updated. Finally, the Lagrange multipliers λare updated by using the Gauss-Seidel method [22], and the procedure is repeated up to reach the convergence. These steps can be summarised as follows: ΓPl k+1=min ΓPlJl(·)+λT k(ul Pj−zjk)+ρ 2kul Pj−zjkk2 2,(8a) zk+1=min zgv(z)+ b X l=1 λT k(ul Pjk+1−zj)+ρ 2kul Pjk+1−zjk2 2,(8b) λk+1=λk+ρul Pjk+1−zjk+1,(8c) Figure 2: Proposed control scheme to minimise the energy consumption of a manufacturing process line. with the subscript kindicating the current time step and k+ 1 the update at the next step. Thus, the local controllers for coupled sub-systems will be solved in a distributed way using the ADMM algorithm, while for the case of sub-systems with no coupled constraints will be solved in a decentralised way without information exchange with the other controllers. Once convergence is achieved for the procedure in 8, there will be an optimal solution for the activation sequence of all peripheral devices in the process line defined by ΓP∗(k),{ΛP∗(k|k),...,ΛP∗(k+Hp−1|k)}, and, according to the receding horizon philosophy, ΛP∗(k|k) is sent to the machine and peripheral devices discarding the rest of the optimal sequence from (k+1|k) to (k+Hp−1|k). Then, the whole procedure is repeated for the next instant k, after measuring/estimating the information from the process line required by the controller. In Figure 2, the proposed closed-loop control scheme to determine ΓP∗(k) along Hpis shown. It should be noted that the optimisation problem in (8a) could be infeasible only if some of the constraints related to the process dynamics of peripheral devices are not satisfied. Therefore, due to the periodic behaviour of these systems, the length selected for Hp, and the execution time of the controller in a receding manner, it is possible to guarantee that the controller will be feasible at least for its next step of execution. In the next time step, the controller is run again and so on along the simulation horizon. 3.1. Consensus stage Usually, the consensus problem based on the ADMM algorithms (i.e., (8b)) considers the regularisation term gv(·) as averaging of the variable zconcerning the number of sub-systems [22]. However, in this case, in addition to the balance constraint in (5e), the consensus stage should also penalise the energy consumption associated with the operation of peripheral devices. In this regard, gv(·) in (8) should consider: Balance constraint: The first term in gv(·) penalises the error related to the balance constraint. Thus, at each instant k, such error is defined as eMi(k)=εuPjzj(k)+εuPszs(k)−mMi(k),(9) 5 with jand sthe indices related to the peripheral devices of the sub-systems land b, which can supply the same resource to Mi. Thus, EMi=[eMi(1),eMi(2),· · · ,eMi(Hp)]Tis the error vector for (9) along Hp. In this case, the real constraint in (5e) is expressed in function of the consensus variable z, which is sent to the local controllers to guarantee the flow required by the machine. Then, g1(·) is defined as follows: g1(z)=EMi TIeEMi,(10) being Iethe weighting matrix for (9) along Hp. Energy consumption: According to the control objective in (2), the second term in gv(·) accounts for the energy consumption associated to the operation of uPjbut in terms of z, i.e., Sz(k)= w X j=1 Szj(k),(11) being wthe number of peripheral devices involved in (5e). Thus, the second term along Hpis defined as follows: g2(z)=SzTISzSz.(12) Finally, the whole regularisation term is given by gv(z)=EMi TIeEMi | {z } g1 +SzTISzSz | {z } g2 .(13) 3.2. Stopping criteria Based on the coupling constraints among the different subsystems, to determine the convergence of ADMM algorithm in (8), the following stopping criteria are defined: Balance equation: It is defined to guarantee that the difference between the sum of the flows provided by all possible suppliers for Miand the real flow required by the machine mMiwill be less or equal to a tolerance value 1, i.e.,         p X j=1 εuPjuPj(k)       −mMi(k)≤1.(14) Consensus constraint: It is defined to guarantee that each local controller takes into account the decisions made in the consensus stage. It is defined as follows: uPj(k)−zj(k)≤2,(15) being 2a value significantly small with respect to the magnitude of variables uPjand zj. It should be noted that the stopping criteria are checked at each time instant k, for each time step along Hp. 4. Benchmark System Consider a process line as shown in Figure 3, for which is assumed that all machine tools in the process line have different cycle time TMi. In addition, three global peripheral devices and one local device for M1are included to supply the resources required by the machines. In this case, it is assumed that devices PG1and PL1provide the flows of compressed air required by some of the machines in the line to clamp/unclamp of pieces during the operation of machines. Besides, PG2and PG3are responsible to supply the coolant flows required for all machines in the process line during machining operations. It is worth noting that both PG1and PL1can supply the airflow to M1, while the rest of machines can only take the air from PG1. In the same way, both PG2and PG3can provide the coolant required by M3 while PG2must also supply the coolant flows required by M1 and M2while, in turn, PG3is responsible for the coolant demand of M4. In this case it is supposed that M4does not require compressed air for its operation. It should be noted that the case study presented in Figure 3 has been designed based on a real case in a manufacturing plant. According to Figure 3, in addition to the management of peripheral devices, the aperture of the valves related to machines with multiple suppliers, i.e., v1-v3and v2-v4, should also be manipulated to ensure the supply of resources to machines. The other valves in the process line are not directly manipulated since it is assumed that they are opened/closed when required. Thus, the activation instants of peripheral devices and the aperture of valves refer to the decision variables, and their activation sequences are defined as ΛP(k)={uG1(k),uG2(k),uG3(k),uL1(k)},(16a) ΛV(k)={v1(k),v2(k),v3(k),v4(k)}.(16b) Based on both (5b) and (5d), energy consumption models and the operational relationships among machines and peripheral devices should be added into the optimisation problem in (5) to determine the optimal sequences of ΛPand ΛV. In the following sections, it is presented how energy consumption models and operational relationships were determined. 4.1. Energy consumption models Different approaches have been proposed for modelling manufacturing systems, such as phenomenological-based models, the Markov chains (MC), Petri Nets (PN), among others [28]. However, these approaches have been focused on modelling the production states of the machine rather than to model the energy consumption behaviour of such systems. Besides, they require a high computational load for control applications as well as the knowledge of a lot of variables/parameters that usually are difficult to measure/estimate in a manufacturing plant. Thus, since the complexity of manufacturing systems and their size, data-driven models, such as those obtained from the Subspace Identification (SI) methods, have gained attention into the manufacturing industry to model the specific energy consumption [29, 19]. The SI methods allow identifying the matrices of a statespace realisation of linear time-invariant (LTI) systems based on input-output data sets, which are convenient for estimation, control and prediction tasks [30]. These methods start from the idea that a set of measurements of nuinput signals (nu≥1) and nsoutput signals (ns≥1) are related through an N-order 6 Figure 3: Four-stage serial process line with four peripheral devices. Table 1: Model order and fitting percentage for the energy consumption models identified by SI methods. Component M1M2M3M4PG1PL1PG2PG3 N56456633 %fitting 96.27 96.76 96.85 95.32 98.82 97.83 94.22 94.22 state-space (unknown) realisation as follows: ξh(k+1) =Aξh(k)+BΛh(k),(17a) Sh(k)=Cξh(k)+DΛh(k),(17b) being hthe index for any machine or peripheral device, Λhthe vector of input signals as in (16), Shthe instantaneous power consumption, and A,B,Cand Dthe model matrices of suitable dimensions. Then, to identify energy consumption models of machines in Figure 3, different sequences of ΛMiwere designed, i.e., one sequence per each machine. Next, these sequences and different sequences of ΛPwere tested in a test bench that emulate the energy consumption of machine tools and their peripheral devices to obtain a rich range of their corresponding outputs SPjand SMi. Subsequently, the energy consumption models for the machines and the peripheral devices were identified by using the n4sid routine of the System Identification Toolbox™provided by Matlab®. In this regard, different values of Nwere tested to identify the suitable matrices A,B,C, and D, which allow the highest fitting degree between the real and modelled outputs. In Table 1, the obtained results regarding the model order and the fitting percentage between the modelled and real outputs are presented for each one of the machines and peripheral devices. From these results, it can be concluded that the identified energy consumption models suitably represent the real energy consumption dynamics of both machines and peripheral devices. In addition to the energy consumption of peripheral devices and machines, it was assumed that the valves related to the subsystem with coupled dynamics also imply an associated energy consumption. Thus, the energy consumption concerning valves is computed according to Svj(k)=αvjvj(k),(18) being αvjthe constant energy consumption of the valve vj. 4.2. Operational relationships According to Figure 3, both PG1and PL1are associated to the supply system of compressed air, which will be used for clamping pieces during the whole machining sequence. Besides, it is assumed that both PG1and PL1have a nominal energy consumption whenever the device is turned on. In this regard, the process dynamics related to the operation of both PG1and PL1 correspond to the mass and pressure dynamics inside the respective tanks, which are defined as follows: MT1(k+1) =MT1(k)+τsσT1(k),(19a) σT1(k)=min,G1uG1(k)−mG1→M1(k)− 3 X i=2 ma,Mi(k),(19b) PT1(k)=MT1(k)R T VT1Wa ,(19c) being uG1∈ {0,1}the activation signal for PG1,ma,Mithe air consumption from machine Mi,min,G1the air flow pumped by PG1towards the tank T1, and, R,T,VT1and Wathe gas constant, air temperature, volume of T1, and the molecular weight, respectively. A set of equations similar to (19) can be defined for PL1regards Tank 4 taking into account their inputs and outlets. In this regard, uL1∈ {0,1}refer to the activation signal for PL1, min,L1is the air flow pumped by PL1towards the tank T4, and, σT4(k)=min,L1uL1(k)−mL1→M1(k). Since both PG1and PL1 can provide the airflow required by M1, the following equation should be satisfied: ma,M1(k)=mG1→M1(k)+mL1→M1(k),(20) with mG1→M1(k)=εv1v1(k), mL1→M1(k)=εv3v3(k), and being v1and v3the valve aperture to allow the flow from PG1and PL1, respectively. Moreover, the pressure PT1and PT4must remain inside an operational range to avoid damage in the peripheral systems and to ensure that there will be enough capacity to provide the resources during the operation of machines. Thus, PT1≤PT1(k)≤PT1(and PT4≤PT4(k)≤PT4) should be satisfied, with PTiand PTithe lower and upper bounds for each tank. 7 On the other hand, both PG2and PG3are related to a coolant supply systems in the process line, for which their activations could be modulated to different energy consumption levels. In these cases, the dynamics of interest refer to the level changes in the tanks related to both PG2and PG3, which are given by L2(k+1) =L2(k)+τsγT2(k) 1 ρcAT2!,(21a) γT2(k)=mc,G2(k)− 2 X i=1 mcc,Mi(k)−mcc,G2→M3(k),(21b) L3(k+1) =L3(k)+τsθT3(k) 1 ρcAT3!,(21c) θT3(k)= 3 X i=1 mdc,Mi(k)−mc,G2(k),(21d) with mc,G2given by mc,G2(k)=η ρcuG2(k) Pin,G2(k)+ρchfG2,1→2(k)−Pout,G2(k),(22) being uG2∈ {0,100,120,140}the activation signal of PG2. Similarly, level dynamics can be defined for Tanks 5 and 6 regarding the operations of PG3taking into account the inputs and outputs for each tank. Besides, it should be noted that for PG3, the activation signal is constrained to uG3∈ {0,70,140}. In (21), mcc,j→Mirefers to the coolant flow supplied by the j-device to Mi, and mdcMiis the flow of dirty coolant recovered from machines. In addition, Pin,jand Pout,jcorrespond to the input and output pressure in the pipe system that connects the clean and dirty coolant tanks, while, ρc, η, ω and hfj,1→2are the coolant density, the pump efficiency, the specific work per time unit and the energy losses by friction, respectively. Then, to satisfy the demand of coolant required by M3, the following constraint should be satisfied: mcc,M3(k)=mcc,G2→M3(k)+mcc,G3→M3(k),(23) with mcc,G2→M3(k)=εv2v2(k), mcc,G4→M3(k)=εv4v4(k), and being v2and v4the valve aperture related to each coolant supply system. Besides, the operational ranges for LTimust also be considered (5), i.e., LTi≤LTi(k)≤LTi. Based on the real operation of machine tools, in Figures 4 and 5 are presented the sequences for the resources consumption of both compressed air ma,Miand coolant mcc,Mifrom each machine according to their cycle times TMi. Such sequences represent the demand for resources from machines to process a piece. Thus, these sequences are also periodic over time and repeated when a new piece arrives the machine. Moreover, it is worth noting that (20) and (23) refer to the coupled dynamics for the machines M1and M3, respectively. 4.3. System partitioning According to Figure 3, both M1and M3have multiple providers, while PG1and PG2must supply resources to two or more machines in the process line. In these cases, the controller should decide which peripheral device is more suitable to supply this demand taking into account the consumption from 0 10 20 0 0.5 1 1.5 2 2.5 3 mair,M1 [kg/s] 10-3 0 10 20 30 0 0.5 1 1.5 2 mair,M2 [kg/s] 10-3 0 20 40 t [s] 0 0.5 1 1.5 2 mair,M3 [kg/s] 10-3 Figure 4: Sequences for the air consumption from machines in the four-stage process line along TMi. 0 5 10 15 20 0 0.005 0.01 0.015 0.02 mcc,M1 [kg/s] 0 10 20 30 0 0.01 0.02 0.03 0.04 mcc,M2 [kg/s] 0 10 20 30 40 t [s] 0 0.01 0.02 0.03 mcc,M2 [kg/s] 0 5 10 15 20 25 t [s] 0 0.02 0.04 0.06 mcc,M4 [kg/s] Figure 5: Sequences for the coolant consumption from machines in the fourstage process line along TMi. Figure 6: Proposed sub-systems division for the four-stage serial process line in Figure 3. the other machines and the current levels in the supply systems. Besides, the maximum flow that can be provided when the valves are entirely opened must be considered to get a consensus among the values when more than one device is needed to supply resources to one machine. Based on the process line configuration and coupled dynamics among the different machines and peripheral devices, the process line is divided into four sub-systems, as shown in Figure 6. Such a system partitioning is proposed with the aim to increase the system flexibility by reducing the number of coupled sub-system and, therefore, the communication among controllers. However, other sub-systems could be defined depending on the information exchange among the local controllers, the optimisation algorithm to be used, and the computational capacity to solve such algorithms. Sub-system 1 (S S 1) is formed by the machines M1,M2,M3, 8 the device PG1, and the valve v1. This sub-system deals with the supply of compressed air to most of the machines in the process line. However, M1has also as a local supplier, i.e., L1. Thus, the second sub-system (S S 2) is formed by PL1,v3 and only M1. From these two sub-systems, communication is required to supply the exact flow of compressed air required by M1as in (20). The third (S S 3) and fourth (S S 4) sub-systems were defined concerning the supply system of coolant to machines in the process line. Thus, S S 3consists of the machines M1,M2, and M3,PG2and v2. This sub-system represents the main coolantsupply system of the process line. Then, the sub-system S S 4 concerns to machines M3and M4, the device PG3and v4. This sub-system is responsible for satisfying the requirements of M4 and should also coordinate with S S 3to supply the coolant demand of M3. Although there exists clear operational relationships among S S 1and S S 2, and S S 3and S S 4, there is not coupling dynamics among the supply systems of compressed air and coolant. That means, it is not necessary to establish communication among the supply systems of different resources to machines. 5. Simulation results In this section, a comparison among the proposed noncentralised control strategies (cooperative and non-cooperative cases) and its centralised counterpart is presented. Simulations were performed using an Intel Core i7-55000U 2.4 GHz processor with 8G RAM, and the simulation results were obtained in Matlab by using the software IBM ILOG CPLEX Optimisation Studio [31] integrated to YALMIP toolbox [32]. In the top of Table 2, the physical dimensions of supply systems, the energy consumption of valves, and the operating range for process variables related to the operation of peripheral devices are presented. Such parameters were set based on the real operation of peripheral devices in the process line. Due to different cycles times of machines in the process line, simulations were performed considering Hp=22 s, which corresponds to the shorter machine cycle for machines in the process line. The latter means that if the controller is executed every second, such a controller makes 22 decisions along Hp, and each decision is remained during 1 second. It is worth noting that Hp=22 s was selected to reduce the number of decision variables in the optimisation problem and, therefore, the computational burden. Besides, no significant improvements were observed when the length of Hpwas equal to the longer cycle time for the machines in the process line. Then, based on the proposed approach, in Algorithm 1 the steps to solve the non-cooperative control architecture for the particular case study in Figure 3 are presented. Besides, the convergence parameters (ρl), the initial condition for the Lagrangian multipliers (λl 0), and the tolerance values established to run the ADMM algorithm are presented at the bottom of Table 2. These parameters were defined by a trial-and-error procedure up to find the parameters that allow reaching an optimal solution with the minor number of iterations. For the cooperative case, the local cost function was the same for all local con- Table 2: Physical dimensions and parameters for the supply systems of compressed air and coolant. Parameter Value Units Parameter Value Units Physical dimensions for the supply systems TM122 s TM236 s TM344 s TM428 s VT10.015 m3VT40.01 m3 AT20.015 m2AT30.015 m2 AT50.015 m2AT60.015 m2 Tair 25 ◦CR8.1314 J Kmol Wair 28.966 g mol ∆Pf ilter 10000 Pa Patm 101325 Pa η0.95 – ρc1042.5kg m3h1→20.12 m2 s2 min,10.006 kg smin,30.004 kg s αv12.5 VA αv32.5 VA αv22.25 VA αv42.75 VA εv11.5×10−5–εv33.0×10−5– εv22.5×10−4–εv42.5×10−4– PT1300 kPa PT1750 kPa PT4300 kPa PT4750 kPa LT20.3 m LT20.6 m LT30.4 m LT30.7 m LT50.3 m LT50.6 m LT60.4 m LT60.7 m ADMM algorithm ρ10.1 – ρ20.01 – λ1 0[1,1,· · · ,1] ∈RHp–λ2 0[1,1,· · · ,1] ∈RHp– z0 j[0,0,· · · ,0] ∈RHp–11×10−4– 20.5 – J1×102– troller, including the energy consumption of all elements of the process line. In addition, a new stopping criteria was added in Algorithm (1) to ensure that all local controllers converge to the same (approximate) value of the global cost function J(·), i.e., |Jl(k)−Jr(k)| ≤ J,∀j,rwith Ja small-enough tolerance value. Based on the coupled dynamics in (20) and (23) for subsystems 1−2 and 3−4, respectively, four new variables zjwere added and constrained to be equal to the corresponding valve aperture vj. It means that for each local controller, vj=zjwas added as a constraint, and (20) and (23) were removed from the optimisation problem. Then, taking into account that S S 1and S S 2have coupled dynamics but do not share operational relationships with S S 3and S S 4, which are coupled among them, two consensus stages are required, one for S S 1and S S 2re- garding M1and another for S S 3and S S 4regarding M3. Thus, for each set of coupled subsystems, gv(·) was defined according to (9) and (11) taking into account the number of peripheral devices involved. Besides, the weighting matrices, i.e., Ieand ISv, were set as Ie=1×104IHpfor both consensus stages, and I1−2 Sv=10 IHpand I3−4 Sv=5×103IHpfor the consensus among sub-systems 1 −2 and 3 −4, respectively. It should be noted that these weighting matrices were adjusted by using a trial- and-error procedure taking as reference the obtained results for the centralised control architecture. Differences among I1−2 Svand I3−4 Svrefer to the fact v1and v3have the same energy consumption (i.e., αv1=αv3), while in the second coupled sub-systems v4has higher energy consumption than v2. Thus, for the case of S S 3and S S 4, the energy consumption term in (13) is quite relevant to determine the trade-offbetween peripheral devices that satisfy the balance constraint while minimising energy consumption. For S S 1and S S 2, the energy consumption will be 9