27.01.2014 Views

Multiagent Systems

Multiagent Systems

Multiagent Systems

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

of. Dr. Jürgen Dix · Department of Informatics, TUC <strong>Multiagent</strong> <strong>Systems</strong>, WS 06/07 673/731<br />

9. Agents based on FOL 4. (Con-)Golog<br />

The following procedure wspdf(n) finds plans of<br />

length at most n by forward search (Reiter et al.<br />

2000):<br />

proc wspdf(n)<br />

goal? | [n > 0?] ; (πa)(primitive_action(a)?; a);<br />

¬badSituation? ; wspdf(n − 1)<br />

badSituation(s) is a domain dependent predicate used to<br />

define when a situation s should be discarded from further<br />

consideration (important for pruning the search space).<br />

For simple definitions of badSituation, this can solve<br />

problems with plans of length around 20.

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

Saved successfully!

Ooh no, something went wrong!