MultiAgent Systems

21
MultiAgent Systems

description

MultiAgent Systems. MultiAgent Systems. Distributed Artificial Intelligence MultiAgent Systems Characteristics of MAS Challenges of MAS Networking Remote Method Invocation Uniform Resource Location. Distributed Problem Solving. - PowerPoint PPT Presentation

Transcript of MultiAgent Systems

Page 1: MultiAgent Systems

MultiAgent Systems

Page 2: MultiAgent Systems

MultiAgent Systems

• Distributed Artificial Intelligence

• MultiAgent Systems

• Characteristics of MAS

• Challenges of MAS

• Networking

• Remote Method Invocation

• Uniform Resource Location

Page 3: MultiAgent Systems

Distributed Problem Solving

• How a particular problem can be solved by a number of modules, which cooperate in dividing and sharing knowledge about the problem and its evolving solutions.

• All iteraction strategies are incoporated as an integral part of the system.

Page 4: MultiAgent Systems

Distributed Problem Solving

Page 5: MultiAgent Systems

MultiAgent Systems

• Concerned with the behavior of a collection of possibly pre-existing autonomous agents aiming at solving a given problem.

• a loosely coupled network of problem solvers that work together to solve problems that are beyond the individual capabilities or knowledge of each problem solver

Page 6: MultiAgent Systems

MultiAgent Systems

Us erD atab as e

D atab as e

D atab as e

Us er

S to c k Br o k er

I n f o r m atio n

An aly zer

M ail

S to c kM ar k et

S to c k Ag en t

S elle r

Bu y er

Page 7: MultiAgent Systems

Characteristics

• each agent has incomplete information, or capabilities for solving the problem, thus each agent has a limited viewpoint

• there is no global system control;

• data is decentralized; and

• computation is asynchronous.

Page 8: MultiAgent Systems

Why MAS?

• the ability to provide robustness and efficiency;

• the ability to allow inter-operation of existing legacy systems; and

• the ability to solve problems in which data, expertise, or control is distributed.

Page 9: MultiAgent Systems

Challenges

• How to formulate, describe, decompose, and allocate problems and synthesize results among a group of intelligent agents?

• How to enable agents to communicate and interact? What communication languages and protocols to use? What and when to communicate?

Page 10: MultiAgent Systems

Challenges

• How to ensure that agents act coherently in making decisions or taking action, accommodating the non-local effects of local decisions and avoiding harmful interactions?

• How to enable individual agents to represent and reason about the actions, plans, and knowledge of other agents in order to coordinate with them? How to reason about the state of their coordinated process (e.g., initiation and completion)?

Page 11: MultiAgent Systems

Challenges

• How to recognize and reconcile disparate viewpoints and conflicting intentions among a collection of agents trying to coordinate their actions?

• How to effectively balance local computation and communication? More generally, how to manage allocation of limited resources?

Page 12: MultiAgent Systems

Challenges

• How to avoid or mitigate harmful overall system behavior, such as chaotic or oscillatory behavior?

• How to engineer and constrain practical MAS systems? How to design technology platforms and development methodologies for MAS?

Page 13: MultiAgent Systems

Networking

• Open System Interconnection

• Socket– IP Address– Port

• ServerSocket

• RMI

• URL

Page 14: MultiAgent Systems

OSI Model

Applic at io n

P re s e ntat io n

Se s s io n

Trans po r t

N e two rk

D ata L ink

P hys ic al P hys ic al

D ata L ink

N e two rk

P hys ic al P hys ic al

D ata L ink

N e two rk

D ata L ink

N e two rk

Trans po r t

Se s s io n

P re s e ntat io n

Applic at io n

Page 15: MultiAgent Systems

Socket

• ConstructionSocket s = new Socket(hostName, port);• Read from SocketBufferedReader r = new BufferedReader( new InputSreamReader(s.getInputStream());• Write to SocketPrintWriter o = new PrintWriter( s.getOutpuStream(), true);o.println(”message”);

Page 16: MultiAgent Systems

ServerSocket

C lie nt Se rve r

C lie nt

Page 17: MultiAgent Systems

ServerSocket

• ServerSocket server = new

ServerSocket(port);

while (true) {

Socket client = server.accept();

< handle the client>

}

Page 18: MultiAgent Systems

Remote Method Invocation

Remote

RMIClientRMIServer

<<Interface>>

RMIServerImpl

Page 19: MultiAgent Systems

RMI

• Rmiregistry finds registry-name• Server:

Registry r = LocateRegistry.getRegistry();

r.rebind(Registry_Name, server);• Client:

Registry reg = LocateRegistry().getRegistry();

server = (RMIServer) reg.lookup(Registry_Name);

Page 20: MultiAgent Systems

URL

• Make a URL

URL s = new URL(”http://...”);

• Read the source– Get object content: Object o = s.getContent();– Convert o to InputStream: is = (InputStram)o;– Read each line from BufferedReader

Page 21: MultiAgent Systems

URL

• Display a URL– LinkListener:Class LinkListener implements HyperlinkListener{ public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)

showPage(e.getURL).toString()); }}– showPageJEditorPane content;void showPage(String location) {

try {content.setPage(location);

} catch() {}}