24.06.2015 Views

LECTURE 4: PRACTICAL REASONING 1 Practical ... - Sorry

LECTURE 4: PRACTICAL REASONING 1 Practical ... - Sorry

LECTURE 4: PRACTICAL REASONING 1 Practical ... - Sorry

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Lecture 4<br />

An Introduction to Multiagent Systems<br />

Lecture 4<br />

An Introduction to Multiagent Systems<br />

Agent Control Loop Version 6<br />

1.<br />

2. BB¼;<br />

3. II¼;<br />

4. while true do<br />

5. get next percept;<br />

6. Bbrf´Bµ;<br />

7. Doptions´BIµ;<br />

8. Ifilter´BDIµ;<br />

9. plan´BIµ;<br />

10. while not (empty´µ<br />

or succeeded´IBµ<br />

or impossible´IBµ) do<br />

11. «hd´µ;<br />

12. execute´«µ;<br />

13. tail´µ;<br />

14. get next percept;<br />

15. Bbrf´Bµ;<br />

16. Doptions´BIµ;<br />

17. Ifilter´BDIµ;<br />

18. if not sound´IBµthen<br />

19. plan´BIµ<br />

20. end-if<br />

21. end-while<br />

22. end-while<br />

¯But intention reconsideration is costly!<br />

A dilemma:<br />

– an agent that does not stop to reconsider its intentions<br />

sufficiently often will continue attempting to achieve its<br />

intentions even after it is clear that they cannot be achieved,<br />

or that there is no longer any reason for achieving them;<br />

– an agent that constantly reconsiders its attentions may spend<br />

insufficient time actually working to achieve them, and hence<br />

runs the risk of never actually achieving them.<br />

¯Solution: incorporate an explicit meta-level control component,<br />

that decides whether or not to reconsider.<br />

http://www.csc.liv.ac.uk/˜mjw/pubs/imas/ 36<br />

http://www.csc.liv.ac.uk/˜mjw/pubs/imas/ 37<br />

Lecture 4<br />

An Introduction to Multiagent Systems<br />

Lecture 4<br />

An Introduction to Multiagent Systems<br />

Agent Control Loop Version 7<br />

1.<br />

2. BB¼;<br />

3. II¼;<br />

4. while true do<br />

5. get next percept;<br />

6. Bbrf´Bµ;<br />

7. Doptions´BIµ;<br />

8. Ifilter´BDIµ;<br />

9. plan´BIµ;<br />

10. while not (empty´µ<br />

or succeeded´IBµ<br />

or impossible´IBµ) do<br />

11. «hd´µ;<br />

12. execute´«µ;<br />

13. tail´µ;<br />

14. get next percept;<br />

15. Bbrf´Bµ;<br />

16. if reconsider´IBµthen<br />

17. Doptions´BIµ;<br />

18. Ifilter´BDIµ;<br />

19. end-if<br />

20. if not sound´IBµthen<br />

21. plan´BIµ<br />

22. end-if<br />

23. end-while<br />

24. end-while<br />

¯The possible interactions between meta-level control and<br />

deliberation are:<br />

Situation Chose to Changed Would have reconsider´µ<br />

number deliberate? intentions? changed intentions? optimal?<br />

1 No — No Yes<br />

2 No — Yes No<br />

3 Yes No — No<br />

4 Yes Yes — Yes<br />

http://www.csc.liv.ac.uk/˜mjw/pubs/imas/ 38<br />

http://www.csc.liv.ac.uk/˜mjw/pubs/imas/ 39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!