Resource-oriented scheduling in the distributed production A. Bratukhin, B. A. Khan and A. Treytl

Abstract— Scheduling in distributed production is a challenging task and the design of a scheduling system is often a key issue for the efficiency of a plant automation system. This paper proposes a scheduling strategy for distributed production based on the MetaMorph clustering and cloning concept and applied to the PABADIS’PROMISE production control architecture.


oriented scheduling. Order Flow Order







CHEDULING is a key issue in development of control systems for plant automation. A particular scheduling strategy and an algorithm highly depend on the applied architecture and implementation area. The matters complicate more when the scheduling is applied to the distributed environment. Due to the lack of general overview of both, available resources and orders to fulfill, scheduling in the distributed control systems is challenging and often cannot provide global optimum. Therefore, developers of such systems concentrate on the fulfillment of the general driver of the distributed systems – provision of flexibility in the order flow (coming from the top layer systems such as Enterprise Resource Planning - ERP) and management of the shop floor represented by resources (Figure1). Although, optimization is not the main focus in distributed systems, they have to provide a certain level of optimization that would be able to cope with the highly dynamic order flow and the shop floor. Orders and resources are the kernel of every scheduling system, characterized by two main goals: • Optimization of order execution • Optimization of resource utilization The first one is to find the way to execute the orders in respect to the costs that can be time for instance. This type of scheduling focuses on the optimization of the order flow, where the optimization of resource utilization is often neglected. In opposite of the order-oriented, the resource-oriented scheduling attempts to optimize the utilization of resources, for example, to limit the time a resource is not in use. The focus of this paper is to present a solution for the resourceBasit Ahmed Khan, Aleksey Bratukhin and Albert Treytl are with the Austrian Academy of Sciences, Research Unit for Integrated Sensor Systems. [Basit.Khan, Aleksey.Bratukhin, Albert.Treytl,] (Corresponding author is Aleksey Brathukin, [email protected], phone +43-2622-23420-31)

Shop Floor Figure 1: Order Flow and Shop Flow

As it was mentioned before, lack of the global overview and dynamism of the shop floor make scheduling in the distributed systems challenging. Nevertheless, there are several concepts dealing with these issues. One of the most known and proved is MetaMorph that provides not only the architecture for distributed manufacturing systems but also a concept for resource scheduling. II. METAMORPH MetaMorph is an approach based on the Holonic Manufacturing Systems concept that was developed at the University of Calgary. The name MetaMorph derives from a primary characteristic of the concept – “changing form, structure, and activity as it dynamically adapts to emerging tasks and changing environment” [1]. The MetaMorph project (later recalled as MetaMorph I) and its follow-up MetaMorph II proposed an architecture based on so-called mediators as linking entities in a manufacturing system. The first concept primary deals with the basic definitions of entities of manufacturing system rather than provided architecture for real implementations. The second one is more application-oriented and aims to cover the whole plant automation pyramid from the Supply Chain Management down to the field control by combining existing manufacturing architectures and coupling them with the mediator approach. For the purpose of this paper only MetaMorph I is relevant and is addressed further in the paper. A. Resource and Mediator Agents MetaMorph I concept defines two general types of agents: resource and mediator agents. Resource agents provide manufacturing devices and

operations and can be described as a representation of a shop floor of the factory. Each agent provides a service to the system and performs its functionality independently from the other elements of the community. In order to perform its function, a resource agent communicates with other resource agents and mediators, but considers only its own interests. [1] points that each resource agent “pursues individual goals while satisfying both local and external constraints.” These constrains are the only factors influencing the global goals of the system. But the concurrent production management is the focus of the MetaMorph, because the developers of the systems believed that concurrent engineering is the way to meet the requirements of the modern manufacturing [1] and [2]. Mediator agents coordinate the interactions among agents, both, resource agents and also mediator agents. Each mediator encapsulates a certain functionality that provides knowledge and decision making of a specific problem and coordination between different agents to solve these goals. Therefore, mediators become the key elements in the MetaMorph approach gluing the system together. In particular, two basic functions of mediators can be distinguished: • Brokering and recruiting; mediators are used by the agents to find other agents in the community. Mediators establish communication links between different agents in the system by providing a direct link or by translating communication between agents if additional knowledge (that the agents themselves do not posses) is needed. • Supervision; mediators take over the role of system coordinators by implementing functions that require overview of the certain area of the system or even the whole system. Mediators combine parts of the functionalities and knowledge from the agents and provide services that require an overview of a certain area of the system functionality and environment. There are two methods of linking agents together used by the mediator: brokering and recruiting [3]. In the brokering mechanism, mediators receive messages from the agents, analyzing them and find appropriate recipients. Depending on the intelligence of the mediators and their goals, different strategies can be applied to assign an incoming message to an agent (or agents) that should receive it. In the recruiting mechanism, mediators work use brokering mechanisms for matching agents, but do not interfere into agent-to-agent communication. As long as a link between a message-sender-agent and one or a set of receiving agents is established, mediator’s work is finished. In both cases, to efficiently use these mechanisms, mediators require knowledge to match agent requests with

needed resources, which is crucial for the system success. [1] points that in MetaMorph, organizational knowledge at the mediator level is basically a list of agent-to-agent relationships that is dynamically enlarged. B. Clustering and Cloning The MetaMorph architecture is based on two main principles that guaranty the flexibility and scalability of the implementations, essential factors in the emerging manufacturing: clustering and cloning (Figure2).

Figure 2: Clustering and Cloning mechanism

Clustering is a key element in the concept. The idea behind it is grouping agents in respect to certain functionalities or so-called “decision groups”. In order to implement that multilevel negotiations and cooperation mechanisms that can provide the stability of the decision groups are required. Mediators take responsibility for grouping agents into clusters and providing communication mechanisms mentioned before (brokering and recruiting). Grouping the clusters based on the task decomposition. The top layer tasks are initially composed by mediators, which are grouping the resource agents into clusters to solve smaller more concrete problems. Dynamism of such grouping guaranties the flexibility of the system. Decomposition of tasks is not limited only to the single clusters. In case of the situations when agents in the cluster cannot solve the problem themselves (due to the insufficient knowledge), they try to find the solution outside of the cluster by establishing communication links with other clusters. This process is repeated by creating sub-clusters. This kind of aggregation is an instantiation of the Holonic Manufacturing Systems concept [5], where aggregation of the agents is the way to solve complex problems. Cloning of agents is a mechanism used in MetaMorph to guaranty the concurrent information processing. Instead of being a part of a cluster, Resource agents delegate the decision-making and processing functionality to its clone that acts on behave of an agent and represents it in a virtual cluster which solves a certain problem. The mechanisms such as clustering and cloning provide

flexibility in solving problems in a distributed way. Within this paper, MetaMorph concept of clustering and partly the concept of cloning are applied to the PABADIS’PROMISE architecture to implement scheduling in such highly distributed architecture as PABADIS’PROMISE. III. PABADIS’PROMISE ARCHITECTURE The PABADIS’PROMISE architecture [4] is offering a complete vertical integration solution for distributed plant automation, providing an agent based system for all three levels of the automation pyramid (ERP, MES, and field level). The concept also guaranties horizontal integration of the system, by providing a flexible and adaptive solution on the shop floor. New resources and orders are dynamically added to the plant and the system is able to adapt to the changes.The DCS of PABADIS’PROMISE architecture is based on the paradigm of software agents, that already fulfills similar requirements of flexibility and scalability in other domains. This properties well fit the needs of DCS. A. Plant Automation Pyramid PABADIS’PROMISE consists of three main levels reflecting the automation pyramid structure: ERP – MES – Field level (Figure 3). ERP ERP

Communication via Web Services MES

Product Data Repository

Order Agent Supervisor

Order Agent

Order Agent

Order Agent

Order Agent

Information Collector

Resource Agent Supervisor

Ability Broker

Communication via ACL Resource Agent

Resource Agent



Field control

Figure 3: PABADIS’ PROMISE Automation Pyramid

ERP in PABADIS’PROMISE is a conventional ERP system that provides the production orders given by the users to the MES system and represents customers of the system. In order to provide vertical integration of production, PABADIS’PROMISE ERP is extended with an interface to the multi-agent system (MAS) to “translate” the production orders to the agent-based MES level. At the middle level, the ERP system is represented by the Order Agent Supervisor, which is an interface, responsible for communication between the ERP and the MAS. MES in PABADIS’PROMISE is represented by the MAS performs the MES functionalities and consists of two main types of agents: Order Agents (PA), representing the

customers (orders) and the Resource Agents (RA) providing production abilities. The abilities of the RAs are maintained by the Ability Broker that manages a database of abilities and provides brokering functionality to the OAs. And finally, the field level is a distributed environment, controlled by the RAs and offered to the MAS as a set of “abilities” provided by the field level to the customers of the system and represented by resources. A resource can be a robot, a conveyer line or even the whole plant. That depends on a definition of an ability it provides. A RA resides on a resource it represents to the MAS. Implementation dependent this can be directly on the resource, e.g., a PLC, or in an attached embedded system. This three-level architecture is fully compatible with conventional systems, but the decision-making process is shifted to the lower levels of the MES and field level, making the systems more flexible in adjusting to both, changing environment (Field layer) and frequently changing demand (ERP layer). B. Multi-Agent System The main focus of PABADIS’PROMISE is the Manufacturing Execution System. It is distributed via a Multi-agent system, which provides links to the upper and lower levels of the system and is playing the key role in distributing the MES and, therefore, providing flexibility to the production control. The distribution of the MES functionality is realized by equipping software agents with respective mechanisms, such as scheduling and resource allocation. Moreover, using these mechanisms the agents are able to perform their tasks rather autonomous and independent from any centralized (planning) component. Of course, the agents need to negotiate with each other, and to communicate with other components of the PABADIS’PROMISE system to provide vertical integration and flexibility to the production. The general architecture of Multi-Agent System (MAS) consists of seven components: •

Order Agent Supervisor (OAS); is an interface between the ERP and MES layers and provides supervision of orders coming from the ERP and their execution by the Order Agents.

Resource Agent Supervisor (RAS); the primary task of the RAS is access provision for a legacy system (SCADA, HMI).

Order Agent (OA); is a key component of the MES layer that manage orders and implements such crucial MES functions as scheduling and resource allocation. Depending on the order, it can be decompose that the initial OA with OAs assigned to each of the suborders.

Resource Agent (RA); is a counterpart of the OA. It manages a resource and represents it to the agent community.

Ability Broker (AB); is an entity that instantiates a role of the same name by managing a database with abilities that resources provide.

Product Data Repository (PDR); provides product relevant data to the OAs and the OAS, including Process Segments, Bills of Operations and Bills of Materials. Updates of the PDR are performed by the ERP system, which is allowed to add or remove product specifications depending on the general strategy of the company.

steps 4-6. Although, the RAs implement scheduling algorithms of finding a solution for resource reservation, the OA is responsible for decision-making. That is opposite of the MetaMorph original concept where the cluster leader’s decision is final. The reason to shift the decision-making to the OA is the fact that resource-oriented scheduling mechanism presented in this paper is only a part of the algorithm applied in PABADIS’PROMISE.

Information Collector (IC); provides history data of orders execution and resource utilization. This data can be used by the ERP system, the OAS or the RAS, and provided by OAs, RAs and the AB. As shown in Figure 3, there is a logical connection throughout the entire pyramid linking customers that issue orders and control devices that execute the operations. The above mentioned components map the functionality required connecting the two worlds in a distributed way. and the agents cover all major requirements of the production control and planning.. The main entities of the MES layer are Order and Resource Agents that are responsible for the scheduling. In case of the resource-oriented scheduling, an OA is initiating the scheduling process, but finding an actual solution is the task of the RAs. Nevertheless, the final decision of what resource to use is up to an OA, which can accept or reject the proposals made by the RAs. The following chapter is dedicated to the description of the mechanism of scheduling negotiations and processes in choosing a particular resource. IV. RESOURCE-ORIENTED SCHEDULING IN PABADIS’PROMISE The scheduling mechanism in PABADIS’PROMISE can be divided into the following steps (Figure4): 1. OA receives the order and retrieves the Bill of Materials (BOM) and Bill of Operations (BOO) from the PDR; 2. OA requests the AB for an ability; 3. OA requests an RA for allocation; 4. RA forms a cluster for scheduling; 5. RAs perform scheduling and find a solution; 6. RA sends a proposal to the OA; 7. OA accepts or rejects the proposal; Within steps 1 and 2, the initial processes of the OA parsing an order and discovering resources are executed. Steps 4 and 7 are negotiations between an OA and a RA. And the actual scheduling algorithm is applied within the

Figure 4: Resource-oriented scheduling mechanism

1) OA receives the Bill of Materials (BOM) and Bill of Operations (BOO) When an Order Agent is created it is provided with an order that it is responsible for, considering that one order agent is responsible for producing one product, in such a case there is an order that says "Produce Product "ABC" DueDate="XYZ" Quantity=50"; such type of order will result in the creation of 50 Order Agents. After its creation Order Agent contacts a special agent in the system that keeps the information of the tasks that are required to be carried out to produce a product. This agent is called as the Product Data Repository; this agent has all the information about how to produce a product. In particular, Bill of Materials (BOM) and Bill of Operations (BOO) are required to start production. Afterwards, an OA parses the order (BOM and BOO) in order to find the abilities that it requires to fulfill the order. 2) OA requests the Ability Broker for resources During the next step, the OA requests the Ability Broker that maintains the actual list of abilities and resources that provide then for the abilities it requires to perform the order. In PABADIS’PROMISE, ability is a certain function that a resource provides. It can be a physical operation, computation function or an action of a human. It reflects the definition of a resource in the concept that varies from a robot to the entire production line or a plant, and can be even a human personal.

3) OA requests an RA for allocation After receiving the list of resources that can perform the requested ability, the OA requests all the RA, that provides the ability, to act as the leader for their resources with same abilities for the purpose of scheduling order. In order to minimize the network load, an OA can request any RA from the list, making the cluster leader election transparent. 4) RA forms a cluster for scheduling Once a cluster leader is chosen, it is its task to communicate to other identical resources and form a resource cluster. This communication can follow the sequence of actions as it is proposed in MetaMorph. That is the leader can first broadcast a message to all the similar Resource Agents, then in reply the Resource Agents can join in the cluster, this cluster then participate in the process of scheduling under the leadership of this leader. However the difference from the classical MetaMorph concept is that in PABADIS’PROMISE the leader does not have the pointers through which other identical resources can be accessed, therefore it needs at o find out those pointers first. In order to find the similar abilities and respected resources, the cluster leader RA contacts the Ability Broker and receives the pointers. Then the leader broadcasts the request for clustering to the RAs with the same ability. As a response, all the requested RAs evaluate the request message and reply to the leader about their decision, the request will either be accepted or dropped. The decision is based on the availability of a resource meaning that if a resource is already allocated for a certain period then it will not participate in the cluster. After that leader receives the responses, it forms a virtual cluster from the positively responded resources. The important feature of the virtual clusters is their dynamism, meaning that they are created on demand and not permanent. A cluster is created for an order and then it is broken after completing the scheduling activity of the order. Moreover it is also possible that an agent that is participating as a leader in one cluster is also acting as a participant in another cluster. 5) RAs perform scheduling and find a solution When the cluster is formed, the mechanism of finding a quasi-optimal solution starts. Within this mechanism a task leader requests the agents in the cluster for the proposals for requested task execution and evaluates the results. There is also a process of the internal evaluation locally at the RAs. a)

Contract-Net Protocol

The communication with in the cluster follows the pattern of Contract-Net Protocol (CNP). However this protocol is adopted to fit the PABADIS’PROMISE demand in benevolence. CNP net protocol is long being consider as a scheduling algorithm, this protocol adopts a greedy approach, it selects the best possible contract, CNP only considers the optimal contract for initiator, it does not

consider possibility of better outcome for the over all good of the system, this type of protocol can work best for the open systems where agents are self interested, however such protocols dose not fit in collaborative environments where agents work for the over all outcome of the system. Therefore, CNP is used for the general communication purposes only, but the decision making is done based on so-called evaluation of optimality. b)

Task evaluation function

Evaluating the optimality of a task is extremely important function, more manufacturing parameter that can be considered while developing this function the better it will be. However, there more parameters are included into evaluation the more computation resources are needed to perform the solution finding that can dramatically decrease the system performance. Furthermore, an exact set of parameters strongly depends on the actual implementation and the chosen strategy. Therefore, this chapter focuses on the designing process of the optimization evaluation function, rather than on specification of criteria parameters. Nevertheless, there are some basic parameters that are general for the evaluation function. These parameters are related to the evaluation of the single task and its position in the schedule of a resource: 1. Start time of the task; 2. Preferred End time of the task; 3. The time it takes for a resource to perform a task, this is because there can be resources that can perform a task much faster than the other resources in the system, the class diagram below shows the class diagram for P2Resource, and as can be seen the variable; 4. End time of pre-scheduled task that is immediately before the start time of new task; 5. Start time of pre-scheduled task that is immediately after the end time of new task; 6. Actual end time of a task is dependent on the time it takes for a resources to perform a task, therefore the actual end time of the resource will be the sum of the “start time” of the task and time it takes by a resource to perform a unit task. Apart from the parameters, the evaluation constrains have to be considered. The most obvious ones are that 1) the start time of the new task does not overlap with the duration of any other task that is committed to the resource, and 2) that the end time of scheduled task does not overlap with any other previously scheduled task. Avoiding overlapping has the highest priority over any other optimality parameter if there is a conflict the evaluation should quit with the optimality set to "zero" since this task is not a useful work that can be done. The only possibility to avoid conflict is to assign the priorities to each of the

task or even OAs that would overtake the overlapping satiation. Another important aspect to consider is the time for tooling then a resource needs to change a tool that implies additional costs (e.g. time). Management of tooling can seriously impact the optimization of the resource utilization. One more issue to conceder is the gap in the resource time schedule between two tasks. This aspect is one of the main focuses of the resource-oriented scheduling, because it does not directly influence the order fulfillment, but rather minimizing the idle state of the resources. The above mentioned set of constrains and parameters only defines the base for the evaluation function c)

Assigning the optimality percentage

The result of the evaluation function of each resource is so-called “optimality percentage” that shows the suitability of a resource for a particular OA request that is the focus of the cluster. The value of the optimality is a combination of the evaluation of each of the parameters and constrains with respect to the priority of each parameter. For instance, such constrains as overlapping the task of another task is has the highest priority due to the fact that a resource is already allocated for the requested period of time. Even in the case of assigned priorities for OAs or their tasks (that allows taking over the already allocated time slot), the overlapping would have the highest priority, because the consequences of the decision concerning the overlapping can cause rescheduling of the entire system. 6) RA sends a proposal to the OA After the cluster leader RA receives all the bids from the cluster members, it verifies the proposals and based on additional parameters, that are given by the OA or general for the shop floor, choose the best solution. The general parameters for the shop floor are the ones that concern the optimization of the whole field layer and not focused on the local optimization of a single resource. Finally, the RA sends a proposal to the requested OA. 7) OA accepts or rejects the proposal Then it is up to the OA to evaluate the proposal and to accept or reject it. It case of accepting, the OA allocates the resource on the proposed conditions. If the proposal is not suitable then the OA has two possibilities to proceed: • Starting the process from the beginning, meaning requesting the AB for the ability, requesting the RA to form a new cluster and so on. Due to the dynamism of the shop floor and of the order flow the result of the new evaluation can be different. • Requests the cluster for other solutions that can fit the OA in a better way, but less optimal for the resources. This mechanism depends of the

configuration of the system that has to position the importance of the shop floor optimization compare to the order flow optimization. Eventually, if the solution within the resource-oriented scheduling cannot be found then the OA has to negotiate with OAs or OAS to find a solution. V. CONCLUSION The MetaMorph-based approach discussed in this paper is only a part of the PABADIS’PROMISE scheduling mechanism. Although, it is based on the HMS paradigm in general and MetaMorph in particular, PABADIS’PROMISE solution has significant differences: • There is no central Scheduler, common in the HMS. Instead, scheduling is distributed among agents. • HMS focuses on the resource-oriented scheduling, PABADIS’PROMISE covers both, resource- and order-oriented, scheduling mechanisms. That allows PABADIS’PROMISE to be used not only in applications within a dynamic shop floor, but also apply the concept to dynamic order flow such as “late order freeze”. Due to the fact that the OAs are involved in the scheduling, the proposed solution is flexible to both, changes in the shop floor and in the order flow. In the highly dynamic environment, such as the application area of the PABADIS’PROMISE architecture, this feature is often more important than providing the optimal solution. In particular, the PABADIS’PROMISE architecture is applicable to mass customized productions, where the “distance” between customers and resources is decreased compared to conventional systems. That makes the MES layer responsible to cope with the dynamism of the order flow. Car production is an application example for the PABADIS’PROMISE approach, due to high costs of final products with the broad variety of customization. PABADIS’PROMISE architecture offers flexibility required by such production control systems. REFERENCES [1] [2] [3] [4] [5]

F. Maturana, D. Norrie, “Multi-Agent Mediator Architecture for Distributed Manufacturing,” in Journal of Intelligent Manufacturing, No. 7, 1999. G. Teunis, P. Leitao, M. Madden, “A New Architecture for Flexible Shop Control Systems,” in Proceedings of Integration in Manufacturing Conference IiM, 1998. K. Decker, “Environment Centered Analysis and Design of Coordination Mechanisms,” in PhD. Thesis, University of Massachusetts, 1995. A. Lüder, J. Peschke, A. Bratukhin, A. Treytl, A. Kalogeras, J. Gialelis, “The PABADIS’PROMISE Architecture”, in Proceedings of the International Congress ANIPLA, 2006. L. Bongaerts, "Integration of Scheduling and Control in Holonic Manufacturing Systems", Ph.D. Thesis PMA/K.U.Leuven, Chapter 3, 1998

Resource-oriented scheduling in the distributed ...

challenging task and the design of a scheduling system is often ... flow (coming from the top layer systems such as Enterprise ... phone +43-2622-23420-31).

221KB Sizes 1 Downloads 41 Views

Recommend Documents

A Distributed Scheduling with Interference-Aware ...
(BSs) and each BS selects the users having the highest effective channel ... Many wireless tech- ... was shown that IA achieves the optimal degrees-of-freedom.

A New Scheduling Algorithm for Distributed Streaming ...
Department of Computer Science and Technology, Tsinghua University, Beijing 100084 China. 1 This paper is ... Tel: +86 10 62782530; fax:+86 10 62771138; Email: [email protected] Abstract ... In patching algorithm, users receive at.

Distributed Microarchitectural Protocols in the TRIPS Prototype ...
microarchitecture that supports dynamic execution. It de- tails each ... processor, the control and data networks that connect them, and the ... 2 ISA Support for Distributed Execution ..... formed the cycle before the operation will complete execu-.

Predictive Resource Scheduling in Computational ... - Semantic Scholar
Department of Computer Science ... started to adopt Grid computing techniques and infrastruc- ..... dependently and with minimal input from site providers is.

Scheduling Mixed Workloads in Multi-grids: The Grid ...
pools (which we call grids) that vary significantly in their ... tion level for a task is dictated by the task's complexity. .... in any way. ...... In 16th Conference on Un-.

Deadlock in Distributed Operating System
Examples are given to illustrate these methods for avoiding file .... of files, such communications are never required to handle processes using only local files.

Fault Tolerance in Distributed System - IJRIT
Fault Tolerance is an important issue in Distributed Computing. ... The partial failure is the key problem of the distributed system, .... architecture and design.