[IEEE 2011 2nd International Conference on Intelligent Systems, Modelling and Simulation (ISMS) -...

4
Method for Verification Of A Multi agents System AbstractIn this paper, we present a new formal Method for the Verification of a Multi agents Systems (MAS). We explain and applied a new method based on agents called Agents Petri Nets (APN). Our model describes each entity to model the system and verify the state of the agent and its behavior. This method use, mainly, the property of Petri Nets as deadline, state home, conflict, etc.. Therefore we use a formalism having a mathematical definition in order to verify some property of the interactive systems. To validate our contribution, we will deal with real example of a Multi agents System. Keywords-component; Method, Multi agents Systems, Agent Petri Nets , Verification, Architecture I. INTRODUCTION The verification of MAS requires toll to check first characteristics and properties of agents, then, those of the system itself. The increasingly intense of technologies and due to the explosive growth of Internet, developers are forced to find ways to lower the building system costs, create products in shorter times with higher quality, and deliver them on time [1]. In this context, the Multi agents paradigm has attracted much attention during the recent years [2]. In order to describe the behavior and the interactions of the entities of the system or the constraints on the variable characteristics of the system, we should make a dynamic modeling. This type of system has grown into what is now one of the most active areas of research and development activity in computing. Many researchers have applied Petri nets (PN) to specify the multi-agent domain [3]. Others presented different approaches for modeling and verifying multi-agents behaviors using State/Transition [4]. Others, [5] and [6] presented a formal approach for modeling and verifying multi-agent plans using model checking and Petri Nets. Others researches use recursive Petri Nets to model multi-agent plans [7]. There are other works and approaches for multi-agent modeling and verification using formal approaches [8]. This paper builds a Petri nets model based interaction between agents, and analyzes the multi agents behaviors. In fact Petri Net is a mathematical method [9] which has stronger ability to describe the dynamic property of system perfectly, and its graphic favorite it to be more easily to be understood and accepted. The remaining of this paper is organized as follows. The second section invokes the Multi agents system and its characteristics. Besides, the third section we explains the formal methods. The section fourth presents our formalism Agent Petri Nets. In fifth section, when we present an example of verification using the new Architecture of Agent. Finally, this document will be concluded, giving some perspectives. II. MULTI AGENTS SYSTEM A multi agent system permits to coordinate the behavior of agents, interacting and communicating in an environment. A multi agents system is a system composed of multiple interacting agents, used to solve problems which are difficult or impossible for an individual agent to solve [5] and [10]. Agents are entities within an environment that they can sense and act. Several works have attempted to provide the attributes that agents might has. In a MAS, interaction, communication, negotiation are required in order to achieve the goal. A simple agent is ready for collaboration [12]. No agent has a full global view of the system [13]. The quality of software is evaluated to the satisfaction of requirements recommended by both the user and the environment; a good system should maintain a consistent and correct behavior. Indeed, the shift to the realization may be possible only if the specification is well validated by comparison with the expected features of the system, hence the need for development of tools, formalisms to perform verification and validation of the model. In this paper, we propose a formal framework for verification of agent-based applications. This ensures that each agent fulfills the role required. We are interested by agent within his group. The resulting system can be checked against requirement expressed in an APN Model. Like most complex systems, the general issues of software engineering must be taken into account. For modeling multi agent systems, particularly, must take into account the ease of design and the validity of the model to ensure effective implementation. Borhen Marzougui ISET Mednine B.P. : w – 231 Gabès 6000 TUNISIA [email protected] Khaled Hassine Faculty of science, Gabès Erriadh City, Zrig 6072 Gabès Tunisia [email protected] Kamel Barkaoui CNAM, 292 Rue Saint-Martin Paris 75 141, Cedex 03 Paris, France [email protected] 2011 Second International Conference on Intelligent Systems, Modelling and Simulation 978-0-7695-4336-9/11 $26.00 © 2011 IEEE DOI 10.1109/ISMS.2011.21 62 2011 Second International Conference on Intelligent Systems, Modelling and Simulation 978-0-7695-4336-9/11 $26.00 © 2011 IEEE DOI 10.1109/ISMS.2011.21 62

Transcript of [IEEE 2011 2nd International Conference on Intelligent Systems, Modelling and Simulation (ISMS) -...

Page 1: [IEEE 2011 2nd International Conference on Intelligent Systems, Modelling and Simulation (ISMS) - Phnom Penh, Cambodia (2011.01.25-2011.01.27)] 2011 Second International Conference

Method for Verification Of A Multi agents System

Abstract— In this paper, we present a new formal Method for the Verification of a Multi agents Systems (MAS). We explain and applied a new method based on agents called Agents Petri Nets (APN). Our model describes each entity to model the system and verify the state of the agent and its behavior. This method use, mainly, the property of Petri Nets as deadline, state home, conflict, etc.. Therefore we use a formalism having a mathematical definition in order to verify some property of the interactive systems. To validate our contribution, we will deal with real example of a Multi agents System.

Keywords-component; Method, Multi agents Systems, Agent Petri Nets , Verification, Architecture

I. INTRODUCTION

The verification of MAS requires toll to check first characteristics and properties of agents, then, those of the system itself.

The increasingly intense of technologies and due to the explosive growth of Internet, developers are forced to find ways to lower the building system costs, create products in shorter times with higher quality, and deliver them on time [1]. In this context, the Multi agents paradigm has attracted much attention during the recent years [2].

In order to describe the behavior and the interactions of the entities of the system or the constraints on the variable characteristics of the system, we should make a dynamic modeling.

This type of system has grown into what is now one of the most active areas of research and development activity in computing. Many researchers have applied Petri nets (PN) to specify the multi-agent domain [3].

Others presented different approaches for modeling and verifying multi-agents behaviors using State/Transition [4]. Others, [5] and [6] presented a formal approach for modeling and verifying multi-agent plans using model checking and Petri Nets. Others researches use recursive Petri Nets to model multi-agent plans [7].

There are other works and approaches for multi-agent modeling and verification using formal approaches [8]. This paper builds a Petri nets model based interaction between agents, and analyzes the multi agents behaviors.

In fact Petri Net is a mathematical method [9] which has stronger ability to describe the dynamic property of

system perfectly, and its graphic favorite it to be more easily to be understood and accepted.

The remaining of this paper is organized as follows. The second section invokes the Multi agents system and its characteristics. Besides, the third section we explains the formal methods. The section fourth presents our formalism Agent Petri Nets. In fifth section, when we present an example of verification using the new Architecture of Agent. Finally, this document will be concluded, giving some perspectives.

II. MULTI AGENTS SYSTEM

A multi agent system permits to coordinate the behavior of agents, interacting and communicating in an environment.

A multi agents system is a system composed of multiple interacting agents, used to solve problems which are difficult or impossible for an individual agent to solve [5] and [10].

Agents are entities within an environment that they can sense and act. Several works have attempted to provide the attributes that agents might has.

In a MAS, interaction, communication, negotiation are required in order to achieve the goal. A simple agent is ready for collaboration [12]. No agent has a full global view of the system [13].

The quality of software is evaluated to the satisfaction of requirements recommended by both the user and the environment; a good system should maintain a consistent and correct behavior. Indeed, the shift to the realization may be possible only if the specification is well validated by comparison with the expected features of the system, hence the need for development of tools, formalisms to perform verification and validation of the model.

In this paper, we propose a formal framework for verification of agent-based applications. This ensures that each agent fulfills the role required. We are interested by agent within his group. The resulting system can be checked against requirement expressed in an APN Model.

Like most complex systems, the general issues of software engineering must be taken into account. For modeling multi agent systems, particularly, must take into account the ease of design and the validity of the model to ensure effective implementation.

Borhen MarzouguiISET Mednine

B.P. : w – 231 Gabès 6000 TUNISIA

[email protected]

Khaled Hassine Faculty of science, Gabès

Erriadh City, Zrig 6072 Gabès Tunisia

[email protected]

Kamel Barkaoui CNAM, 292 Rue Saint-Martin

Paris 75 141, Cedex 03 Paris, France

[email protected]

2011 Second International Conference on Intelligent Systems, Modelling and Simulation

978-0-7695-4336-9/11 $26.00 © 2011 IEEE

DOI 10.1109/ISMS.2011.21

62

2011 Second International Conference on Intelligent Systems, Modelling and Simulation

978-0-7695-4336-9/11 $26.00 © 2011 IEEE

DOI 10.1109/ISMS.2011.21

62

Page 2: [IEEE 2011 2nd International Conference on Intelligent Systems, Modelling and Simulation (ISMS) - Phnom Penh, Cambodia (2011.01.25-2011.01.27)] 2011 Second International Conference

The existing verification methods, is developed for simple programs or systems for classical rules are not implicitly apply to multi-agent systems whose entities interact in a particular way.

Verification of the consistency model and its compatibility is very important, it remains an area of research attracting increasing attention from researchers who are trying to identify the basic standards of verification which means that the system should be conform to its specification[22]. Validation means that the system must do what the user really requires [14]. According to [15], there are two ways to examine and evaluate MAS: see society of agents for global overview or individual view based on the characteristics of a single agent whose properties affect the system behavior. [16], [17] approve that verify a model system returns to ensure the following factors:

• Sinfulness of the model: having functional results in translating,

• Accuracy: the structure model and the expected results should be similar,

• Simple: having the least complicated model that is able to reflect the complexity of reality,

• Quickness: ensuring that the best properties remain true,

• Stability: the model is insensitive to secondary factors,

Therefore, we say that a MAS model is consistent and coherent if the communication and interaction between agents results in a non-blocking system and do not lead to the deadlock when two agents. For example, A1 and A2 are found simultaneously in a state where A1 is awaiting a resource or a message sent by A2 and vice versa, also agent shouldn’t remain in a forged state.

III. FORMAL METHODS

The formal methods have been used to assure a level of precision, consistency and quite elevated accurateness. They are based on mathematical foundations to decrease the risks of uncertainty and vagueness. In the phase of the software conception, the formal methods help a particular language to express the properties descended of the problem specifications very rigorously [8].

However, these methods use specific notations and concepts which often generate a weak legibility and a difficulty of integration in the development processes and certification [9]. The formal specifications are expressed in languages using syntaxes and quite precise and strict semantics. The automatic validations result from a solid theoretical base, thus the integration of several formal methods is indeed difficult [10].

A formal specification can bring many advantages. Actually, the methods are richer and permit a better representation of the static and dynamic aspects of the system [10]. It is possible to classify the methods of formal specification into two groups. Firstly, approaches based on

the states as Z [11], object - Z [12], B [13], VDM [14], etc. Such approaches represent the system by two parts: the first is static, which permits the description of constituent and their states, while the second is dynamic, which describes the changes of states.

Secondly, approaches based on the events and they describe the system by processes or communicating independent entities. Among these approaches we can mention: the Petri Nets [1], LOTOS [15], CSP [16], CCS [17], etc.

IV. FORMALISM AGENT PETRI NETS:APN

The usual Petri Nets as those of Object (OPN), Place/Transition (PT) and Colored suffer from a lack of expression to describe a system of large size characterized by the interactivity of the elements that they compose such as the multi agents system.

The aim of our work is to use a combination of joint multi-agent paradigm and Petri nets as defined in [21]. An agent is defined as an autonomous entity able to communicate with other agents [22].

A. Definition In a formal manner, Agent Petri Net [20] is defined by the 9-uplet: Q = <P, T, A, Meadow, Post, Prj, F, Ft, Envk>Where:

• P is a non-empty finished whole of places; • T a non-empty finished whole of of transitions; • A is a non-empty finished whole of agents; • Meadow: PxT N an application of front

incidence; • Post: PxT N a back application of incidence

corresponds to the arcs; • Prj: pre condition of firing; • F (Ai, Aj): agent relation function presenting the

condition of firing; • Ft: function agent that uses three variables :

Ft (tk) = <Per, value, Inter>; • Envk: Environment of work that describes multi

agents system.

B. Modeling rules At an instant t, an agent should be engaged in only one

environment Env. The agent should respect the precondition of crossing a transition Ti.

The relationship between the agents that they are already engaged in an environment Envj are described by a function witch described the criterion for adherence, and the number of times that this agent has been engaged in Envj.

The relationship between two agents that communicate is defined by a function (Ft) that described the data interchange and the behavior of each of them: Ft (tk) = <Per, Inter, Value>.

6363

Page 3: [IEEE 2011 2nd International Conference on Intelligent Systems, Modelling and Simulation (ISMS) - Phnom Penh, Cambodia (2011.01.25-2011.01.27)] 2011 Second International Conference

C. Architecture of Agent Petri Nets In general, we define the Architecture of Agent in APN

by the following model:

Figure 1: Architecture of Agent in APN

Where:

ident: Index of the agent in question, Envj: name of the environment, d: degree of membership of the agent Ai in its environment Envj, df: number of times crossing the agent Ai, this value will be incremented after each crossing, Pk: current position of the agent, Pp: set of places already visited by the agent Ai, Ar: set of agents that are outstanding communication with Ai, F: value returned by agent relationship, Tt: Number of transition that is being crossed, Per: Value Per Service Agent, Value: value contained function agent, and describes the action performed, Inter: Inter value of the function agent.

The definitions we have made in previous sections lead us to define a new architecture of an Agent. In APN, each token (Agent) must have a number of properties and characteristics. While respecting the autonomy, intelligence, responsiveness, heterogeneity and sociability, in proposing a model form of new agent architecture. This model not only presents the internal structure of agent but also the location in an environment, its behavior, its relationship with other agents, its history of actions, its membership degree.

The operation of this model allows us to easily describe and analyze the functioning of multi-agent systems.

V. EXAMPLE OF VERIFICATION

To better understand the tasks of verifying APN, we take the example of a simple application that represents an

editor at APN. This application allows the user to draw graphical shapes in space that are drawing the square, arc and transition. The editor is composed of two elements: the palette to select object graph and create the space which will be positioned on drawing objects created. This application includes five agents:

• A1: Agent graphical editor, • A2: Agent palette, • A3: Agent canvas, • A4: Agent dialogue1 box, • A5: Agent dialogue2 box.

In this example, we will have the division of responsibilities of these five agents for carrying out different tasks. Links between agents are not necessarily channels. They can also translate relations of decomposition, that is to say that software design operations are encapsulation and refinement.

In Figure2, we present the Architecture of Agent “A1”

after firing T9.

A1

Env1 d=1 df1=6

P9 P1, P2, P3, P4, P6

A5 F=1

T9 Per=1 A5.IndexAgent [1] Inter=1

T2 : A2.TElement[1]

T3 : A1.TElement[1]

T5 : A4.NbreJeton

T6 : A1.NbreJeton

T8 : A1.TElement[2]

Figure 2: Architecture of Agent “A1” in APN

VI. CONCLUSION

We defined the framework of our work by expressing our position compared to works which treated the formal methods for verification of the multi agent systems.

In this paper we proposed a Method for specifying and verifying multi agents applications. Our contribution consists in defining a formal method to describe static and behavioral aspects of agents as well as collective aspects of multi agent systems. This method is based on Petri Nets Agents. Indeed, the modeling of MAS requires toll to check first characteristics and properties of agents, then, those of the system itself. Moreover, we defined an approach that helps to specify multi agents applications in a constructive way.

ident

Envj d df

Pk Pp

Ar F

Tt Per Value Inter

History

6464

Page 4: [IEEE 2011 2nd International Conference on Intelligent Systems, Modelling and Simulation (ISMS) - Phnom Penh, Cambodia (2011.01.25-2011.01.27)] 2011 Second International Conference

In addition, Agent Petri Nets can verify two processes precisely and reveal internal structure of system. Therefore, via this method, the efficiency and exclude of comportment can be analyzed clearly.

REFERENCES

[1] G. Sirigineedi, A. Tsourdos,R. Zbikowski and A. Brian, “White Modelling and Verification of Multiple UAV Mission Using SMV” , EPTCS 20, 2010, pp. 22-33.

[2] C. Bernon, V. Chevrier, V. Hilaire and P. Marrow, “Applications of Self-Organising Multi-Agent Systems: An Initial Framework for Comparison”, Informatica Slovenia, 2006, 30(1): 73-82.

[3] Q. Bai, M. Zhang and H. Zhang, “A Coloured Petri Net Based Strategy for Multi-agent Scheduling”, Proceedings of the Rational, Robust, and Secure Negotiation Mechanisms in Multi-Agent Systems (RRS'05), IEEE 2005, 25 July 2005, 3-10.

[4] H. Lacey and A. Scott, “DeLoach, Automatic Verification of Multiagent Conversations”, the Eleventh Annual Midwest Artificial Intelligence and Cognitive Science Conference, April 15 - 16, 2000.

[5] D. Xu, R. Volz, T. Ioerger, J. Yen, “Modeling and Verifying Multi-Agent Behaviors Using Predicate/Transition Nets”, Proceedings of the 14th international conference on Software engineering and knowledge engineering, 2000, pp.193-200.

[6] J. Fix1, D. Moldt and C. vonScheve, “Modeling Emotionsi n Multi-Agent Systems based on Petri-Net Modeling Technique”, Lecture Notes in Computer Science, 2009, Volume 5774/2009, 189-194.

[7] B. BlaSkovic, “Petri Net Modeling for Reactive System Verification”, ConTEL 2003. Proceedings of the 7th International of Telecommunications, 2003, pp. 254-267.

[8] R .Bordini, L. Dennis, B. Farwer and M. Fisher, “Automated Verification of Multi-Agent Programs”, Automated Software Engineering, (ASE’08), 23rd IEEE/ACM International Conference on Systems, 2008, pp.69-78.

[9] D. Marijan and B. Marina Bagic , “Verification and validation of multiagent system specified by Agent UML”, Information and Communication Technologies: From Theory to Applications, 2004, pp. 30-37.

[10] J. Ferber, “The multi-agent systems, towards a collective intelligence” , Inter Edition , 1995, pp. 23-25.

[11] M. Tannizi and A. Selamat, “Multi-Agent Verification and Validation for RFID”, the Eleventh International Conference on Electronic Design, Penang, 1-3 December 2008, pp. 1-5.

[12] F. Barthélemy, “Rule Base Systems Verification Using High-Level PetriNets”, 8 IEEE Transactions On Knowledg, 2003, pp.123-130.

[13] F. Ahmed and H. Huang, “Verification of Petri Net Models Based on transition Vectors”, Proceedings of the Seventh International Conference on Machine Learning and Cybernetics, Kunming, 2008, pp 45-53.

[14] A. Pouyan and S. Reeves, “Behavioral Modeling for Mobile Agent Systems Using Petri Nets”, IEEE International Conference on Systems, Man and Cybernetics Petri Nets, 2004.

[15] M. Steven. Manson, “Validation and verification of multi-agent models for ecosystem management. In Complexity and Ecosystem Management: The Theory and Practice of Multi-Agent Approaches. M. Janssen (ed). Northampton, Massachusetts: Edward Elgar Publishers, 2003, pp. 63-74.

[16] F. Amblard, J. Rouchier and P. Bommel, Evaluation and validation of multi agents model”, Londres, Hermes-Sciences & Lavoisier, 2006.

[17] F. Gervais, “Towards a combined method of formal specification of information systems presented”, thesis, Juin 2004.

[18] A. Kacem and N. Kacem, “From Formal Specification to Model Checking of MAS Using CSP-Z and SPIN”, IJCIS, April 2007, pp.4-12.

[19] H. Shiung, “Fault Tolerant Analysis of Multi-agent Manufacturing Systems Based on Petri nets”. International symposium on industrial electronics IEEE-ISIE, Ajaccio , FRANCE, 4 May 2004.

[20] B. Marzougui, “Toword A New Formalism of Petri Nets: Agents Petri Nets”, 9th International conférence, StA2008, Sousse, December 2008.

[21] M. Wooldridge and N. Jennings, “Agent Theories, Architectures, and Languages: a Survey”, in Wooldridge and Jennings Eds., Intelligent Agents, Berlin: Springer-Verlag, 1995, pp. 95-104.

[22] M. Bouali, “Contributions to the formal analysis and diagnosis using colored Petri nets with rear access”. Thesis of doctorat, Compiegne University of Technologies, Decembe 2009.

6565