<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Action description language - Page 7 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Action_description_language&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Action_description_language&amp;p=8">3.Next</a>
</p>
<p>symbols that are different from the variables z<sub>1</sub>, ..., z<sub>n</sub> and do not appear in ?<sub>1</sub>, ..., ?<sub>n</sub>, ?, or the parameter list of the action schema</p>

<p>The Update groups are used to specify the update conditions to change the values of function symbols. An Update group consists of a set of clauses of the forms shown in the left column of the figure 2:</p>

<p><big>Semantics of ADL</big></p>
<p>The formal semantic of ADL is defined by four constraints.</p>

<p><big>> Actions may not change the set of objects that exist in the world; this means that for every action ? and every current-state/next-state pair , it must be the case that the domain of t should be equal to the domain of ''s''.<p><big>> Actions in ADL must be deterministic. If  and  are current-state/next-state pairs of action ?, then it must be the case that .<p><big>> The functions introduced above must be representable as first-order formulas. For every n-ary relation symbol R, there must exist a formula  with free variables x<sub>2</sub>, ..., x<sub>n</sub> such that  is given by:: Consequently, F(n<sub>1</sub>, ..., x<sub>n</sub>) </big></p>
 y will be true after performing action |</big></p>
 if and only if  was true beforehand. Note that this representability requirement relies on the first constraint (domain of f should be equal to domain of ''s'').<p><big>> The set of states in which an action is executable must also be representable as a formula. For every action ? that can be represented in ADL, there must exist a formula  with the property that  if and only if there is some state t for which  (i.e. action ? is executable in state ''s'')<p><big>Complexity of planning</big></p>
In terms of computational efficiency, ADL can be located between STRIPS and the <a href="page.php?w=Situation_calculus">Situation Calculus</a>. Any ADL problem can be translated into a STRIPS instance - however, existing compilation techniques are worst-case exponential. This worst case cannot be improved if we are willing to preserve the length of plans polynomially, and thus ADL is strictly more brief than STRIPS.ADL planning is still a PSPACE-complete problem. Most of the algorithms polynomial space even if the preconditions and effects are complex formulae.Most of the top-performing approaches to classical planning internally utilize a STRIPS like representation. In fact most of the planners (FF, LPG, Fast-Downward, SGPLAN5 and LAMA) first translate the ADL instance into one that is essentially a STRIPS one (without conditional or quantified effects or goals).<p><big> Comparison between STRIPS and ADL </big></p>
# The STRIPS language only allows positive literals in the states, while ADL can support both positive and negative literals. For example, a valid sentence in STRIPS could be Rich&nbsp;?&nbsp;Beautiful. The same sentence could be expressed in ADL as ¬Poor&nbsp;?&nbsp;¬Ugly# In STRIPS the unmentioned literals are false. This is called the <a href="page.php?w=closed-world_assumption">closed-world assumption</a>. In ADL the unmentioned literals are unknown. This is known as the Open World Assumption.# In STRIPS we only can find ground literals in goals. For instance, Rich ? Beautiful. In ADL we can find quantified variables in goals. For example, ?x At (P1, x) ? At(P2, x) is the goal of having P1 and P2 in the same place in the example of the blocks# In STRIPS the goals are conjunctions, e.g., (Rich ? Beautiful). In ADL, goals may involve conjunctions and disjunctions (Rich ? (Beautiful ? Smart)).# In STRIPS the effects are conjunctions, but in ADL conditional effects are allowed: when P:E means E is an effect only if P is satisfied# The STRIPS language does not support equality. In ADL, the equality predicate (x </big></p>
 y) is built in.# STRIPS does not have support for types, while in ADL it is supported (for example, the variable p : Person).The expressiveness of the STRIPS language is constrained by the types of transformations on sets of formulas that can be described in the language. Transformations on sets of formulas using STRIPS operators are accomplished by removing some formulas from the set to be transformed and adding new additional formulas. For a given STRIPS operator the formulas to be added and deleted are fixed for all sets of formulas to be transformed. Consequently, STRIPS operators cannot adequately model actions whose effects depend on the situations in which they are performed. Consider a rocket which is going to be fired for a certain amount of time. The trajectory may vary not only because of the burn duration but also because of the velocity, mass and orientation of the rocket. It cannot be modelled by means of a STRIPS operator because the formulas that would have to be added and deleted would depend on the set of formulas to be transformed.Although an efficient reasoning is possible when the STRIPS language is being used it is generally recognized that the expressiveness of STRIPS is not suitable for modeling actions in many real world applications. This inadequacy motivated the development of the ADL language. ADL expressiveness and complexity lies between the STRIPS language and the situation calculus. Its expressive power is sufficient to allow the rocket example described above to be represented yet, at the same time, it is restrictive enough to allow efficient reasoning algorithms to be developed.As an example in a more complex version of the <a href="page.php?w=blocks_world">blocks world</a>: It could be that block A is twice as big as blocks B and C, so the action xMoveOnto(B,A) might only have the effect of negating Clear(A) if On(A,C) is already true, or creating the conditional effect depending on the size of the blocks. This kind of conditional effects would be hard to express in STRIPS notation without the conditional effects.<p><big> Example </big></p>
Consider the problem of air freight transport, where certain goods must be transported from an airport to another airport by plane and where airplanes need to be loaded and unloaded.The necessary actions would be loading, unloading and flying; over the descriptors one could express  and  whether a freight c is in an airplane p and whether an object x is at an airport A.The actions could be defined then as follows:<syntaxhighlight lang</big></p>
"adl"><p>Action (  Load (c: Freight, p: Airplane, A: Airport)  Precondition: At(c, A) ^ At(p, A)  Effect: ¬At(c, A) ^ In(c, p))</p>

<p>Action (  Unload (c: Freight, p: Airplane, A: Airport)  Precondition: In(c, p) ^ At(p, A)   Effect: At(c, A) ^ ¬In(c, p))</p>

<p>Action (  Fly (p: Airplane, from: Airport, to: Airport)  Precondition: At(p, from)  Effect: ¬At(p, from) ^ At(p, to))</p></syntaxhighlight>

<p><big>See also</big></p>
<p>
* <a href="page.php?w=Action_language">Action language</a><br/>
* <a href="page.php?w=Action_selection">Action selection</a><br/>
* <a href="page.php?w=Hierarchical_task_network">Hierarchical task network</a><br/>
* <a href="page.php?w=Planning_Domain_Definition_Language">Planning Domain Definition Language</a> (PDDL)</p>

<p><big>References</big></p>
<p></p>
<p>
<a accesskey="1" href="page.php?w=Action_description_language&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Action_description_language&amp;p=8">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
