Handling Non-local Dead-ends in Agent Planning Programs

Luk´aˇs Chrpa1 1 Czech

Sebastian Sardina3

Technical University in Prague & Charles University in Prague

2 University 3 RMIT

Nir Lipovetzky2

of Melbourne

University

Agent Planning Programs (APPs)

[AAMAS’10, AIJ’16]

A novel approach to represent and synthesize complex behaviors: 1. Can encode some know-how information available. 2. Supports automatic decision making for filling the “details.” • depends on underlying infrastructure; too complex by hand.

3. Allows continuous operation & repeated tasks. 4. Accommodates external decision (e.g., human expert).

1

Definition of APPs

APPs are a state transition system consisting of: • Program states • Transitions, directed edges between program states consisting of: • a guard, a precondition for “taking” the transition, • a maintenance formula, an invariant to be maintained during “transiting”, • a goal to be achieved after completing the transition

A decision which transition to take from a current program state is done externally by user (only transtions whose guard holds can be chosen)

2

An example of an APP: The life of an academic 1. An academic travels between home, uni, and pub in his/her life. • Can go to places in many ways (drive, bus, walk). • Modeled via an underlying theory of action (e.g., PDDL).

2. At each point, the academic has several next goal options. • S/he chooses at run-time which goal to purse next.

3. System then provides a plan for the chosen goal. (at agent work)

p1

p2 (at agent home)

(at agent home)

p3

(at agent pub)

(had agent drinks) 3

Solving APPs Offline via Planning

[ICAPS’11, AIJ’16]

A realization solution is a policy that maps pairs hworld state, transitioni to plans achieving transition goal. • There will always be a plan for any run of the APP...

4

Solving APPs Offline via Planning

[ICAPS’11, AIJ’16]

A realization solution is a policy that maps pairs hworld state, transitioni to plans achieving transition goal. • There will always be a plan for any run of the APP... Domain-independent planning engines are used to generate plans (starting in the initial world and program states). • Preferred states – world states that are known for corresponding program states. • Tabu states – world states from which some future goals cannot be achieved.

4

Dead-ends in APPs Definition (Dead-end) A dead-end is a world state from where the goal cannot be achieved. Lipovetzky et al. (2016) introduced dead-end traps: • k-DNF formula representing dead-ends for a planning problem.

5

Dead-ends in APPs Definition (Dead-end) A dead-end is a world state from where the goal cannot be achieved. Lipovetzky et al. (2016) introduced dead-end traps: • k-DNF formula representing dead-ends for a planning problem.

But, in APPs, dead-ends can be non-local (or global)! • i.e., some potentially “future” goal becomes unachievable. Existing offline solver does not reason these “global” dead-ends: • ... it only backtracks when a current goal becomes unachievable. 5

A modified example of an APP Constraints • Academic can use a car or public transport for moving around. • At the end of the day, the academic’s car must be at home. • When the academic is intoxicated (after drinking), s/he cannot drive: must not drink if car is not at home. (at agent work)

home

work (at agent home) (at car home)

(at agent home)

pub

(at agent pub)

(at car home) (had agent drinks) 6

Reasoning about non-local dead-ends in APPs

Prior to each planning episode for a pair hworld state, transitioni: 1. Compute set Gf of all future goals (i.e., reachable in APP). 2. Compute a dead-end trap for each goal in Gf . 3. Incorporate the dead-end traps (by negating them) into the maintenance formula of the current transition. Finally, generate a plan with new amended maintenance formula.

7

Online realization of APPs Online execution of APP: solve only selected transitions. APP Online Execution Cycle 1. APP user selects an enabled outgoing transition. 2. Amend the maintenance formula by reasoning about non-local dead-ends (as in the previous slide). 3. Generate a plan. • if goal is unachievable, then fail.

4. Execute the plan: • evolve world state; • evolve program state.

5. Go to step 1. 8

Experimental Evaluation Purpose: test usefulness of non-local dead-ends reasoning. Benchmark: 6 domains from the IPC benchmarks used: • Airport, Floortile, “Glued” BlocksWorld (modified BlocksWorld), Matching BlocksWorld, Logistics, Woodworking. • 20 APPs were generated for each domain. Systems: 3 planners were used: • LPG (not used for dead-ends reasoning). • Lm-Cut. • DFS+. Dead-end traps: 2-DNF dead-end traps were considered. (Time limit of 3 hours per APP was enforced.) 9





Floortile

Logistics

Glued-Bw

Match-Bw

Airport

Woodwork

Total

Online

Plain (LPG) Plain (DFS+) Plain (LmCut) Traps (DFS+) Traps (LmCut)

4 8 8 16 18

0 1 16 4 19

0 1 0 20 20

0 1 0 20 18

15 17 17 13 13

0 3 2 20 20

19 31 43 93 108

Offline

Results

Plain (LPG) Plain (DFS+) Plain (LmCut) Traps (DFS+) Traps (LmCut)

10 8 9 17 19

7 1 15 4 19

1 1 1 20 20

3 1 2 12 11

16 17 16 13 13

14 8 11 13 9

51 36 54 79 91

Non-local dead-end reasoning provides general improvement! - In Airport, more complex APPs 100000s of atoms were used to describe world states introducing huge overheads for the dead-end reasoning tool.

The “plain” offline approach outperformed the “naive” online approach when LPG was used (quick to generate plans), and in Woodworking (no “far” backtracks) √ The “dead-end” online approach outperforms the “dead-end” offline one in APPs with branching (e.g. Woodworking)

10

Summary of the contributions

We have: 1. Adapted the local dead-ends reasoning tool [Lipovetzky et al., 2016] for reasoning about non-local dead-end in Agent Planning Programs. 2. Introduced an online approach for realizing Agent Planning Programs. 3. Provided theoretical results on unsolvability of APPs under global dead-ends. 4. Empirically evaluated benefits (and drawbacks) of non-local dead-end reasoning and the online approach for realizing APPs

11

Thank you !

12

References Giuseppe De Giacomo, Fabio Patrizi, and Sebastian Sardina. Agent programming via planning programs. In Proc. of AAMAS, pages 491–498, 2010. Giuseppe De Giacomo, Alfonso Gerevini, Fabio Patrizi, Alessandro Saetti, and Sebastian Sardina. Agent planning programs. Artificial Intelligence, 231:64–106, 2016. Alfonso Gerevini, Fabio Patrizi, and Alessandro Saetti. An effective approach to realizing planning programs. In Proc. of ICAPS, pages 323–326, 2011. Nir Lipovetzky, Christian J. Muise, and Hector Geffner. Traps, invariants, and dead-ends. In Proc. of ICAPS, pages 211–215, 2016. 13

Handling Non-local Dead-ends in Agent Planning ...

S/he chooses at run-time which goal to purse next. 3. System then provides a plan for the chosen goal. p1 p2 p3. (at agent work). (at agent home). (at agent pub).

202KB Sizes 0 Downloads 148 Views

Recommend Documents

Hierarchical Planning in BDI Agent Programming ...
BDI agent systems have emerged as one of the most widely used approaches to implementing intelligent behaviour in complex dynamic domains, in addition to ...

Handling Exceptions in Haskell
Jan 19, 1999 - ... less idealistic programmers can write in C, Java, Ada and other useful .... since the Prelude is not just ordinary Haskell code, requires a lot of ...

Handling Exceptions in Haskell
Jan 19, 1999 - Handling Exceptions in Haskell. Alastair Reid. Yale University. Department of Computer Science. New Haven, CT 06520 [email protected].

Agent Programming via Planning Programs
May 12, 2009 - Possibly non-terminating. • Atomic instructions: requests to “achieve goal φ while maintaining goal ψ”. • Meant to run in a dynamic domain: the ...

Agent Programming via Planning Progam Realization
Abstract. This work proposes a novel high-level paradigm, agent planning programs, for modeling agents behavior, which suitably mixes automated planning ...

Nonlocal effects in effective-medium response of ...
Received 5 March 2007; accepted 17 April 2007; published online 8 May 2007. The authors analyze electromagnetic ... 2007 American Institute of Physics.

Training workshop in Handling School Discipline Cases.pdf ...
Department of Education. National Capital Region. SCHOOLS DIVISION OFFICE. Nueva Ecija St., Bago Bantay, Quezon City. LIST OF NEWLY APPOINTED SENIOR HIGH SCHOOL TEACHERS. 'ffi,. Name of Teacher School Assigned. SAN FRANCISCO HS. 2. CABIAO, JOYCE PUGA

Event handling in Java - NCSU COE People
that paint/update method calls are serialized properly with other events. Now, let's list ... by calling processEvent on the button. • the button's .... quits the app. */.

Data File Handling In C.pdf
Retrying... Data File Handling In C.pdf. Data File Handling In C.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Data File Handling In C.pdf.

A NONLOCAL CONVECTION-DIFFUSION EQUATION ...
R. S(t, x − y)u0(y)dy. Proof. Applying the Fourier transform to (2.1) we obtain that. ̂wt(ξ,t) = ̂w(ξ,t)( ̂J(ξ) − 1). Hence, as the initial datum verifies ̂u0 = ̂δ0 = 1,.

ASYMPTOTIC BEHAVIOUR FOR A NONLOCAL ...
In this paper we study the asymptotic behaviour as t → ∞ of solutions to a .... r(t)≤|ξ|≤R. (e−Atpα(ξ) + e−t|ξ|α/2)dξ. ≤ td/α ϕL1(Zd). ∫ r(t)≤|ξ|≤R e−Bt|ξ|α dξ. =.

[1603-7C1509] Air Handling Unit & Modular Air Handling UnitA4.pdf ...
iOS Version Android Version. Midea CAC After-service Application. iOS Version ... 2001 Cooperated with Copeland to develop the digital scroll VRF system.

ASYMPTOTIC EXPANSIONS FOR NONLOCAL ...
where Kt is the regular part of the fundamental solution and the exponent A depends on J, q, k and the dimension d. Moreover, we can obtain bounds for the difference between the terms in this expansion and the corresponding ones for the expansion of

Experimental test of nonlocal realism using a fiber ...
Mar 25, 2008 - 1Optical Technology Division, National Institute of Standards and ... Maryland 20899-8441, USA and Joint Quantum Institute, University of Maryland, College Park, ... the polarization of photon 1, the polarization information of.

Accurately Handling the Word
The evidence is much stronger in support of another figurative meaning: “to put into practice” or “to make what is theoretical a practical reality.” Interestingly, the ...

Manual Handling
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means (electronic, ..... Movement of a load. □ Avoid loads in containers shifting unexpectedly. Using packing mat

Handling pedigrees - GitHub
A 3-column data.frame or matrix with the codes for each individual and its parents. • A family effect is easily translated into a pedigree: – use the family code as ...

Decay estimates for nonlocal problems via energy ...
Mar 10, 2009 - The assumption on the initial data, u0 ∈ L1(Rd)∩L∞(Rd), ..... as Corollary 2.1, but it is obtained using Fourier analysis tools and has the.

handling packet loss in webrtc - Research at Google
real-time applications such as video conferencing. These applications are limited by the ... configured to wait for all necessary packets. Video quality is therefore ...

Engel - Handling Memory in the Henriad.pdf
Page 1 of 21. Page 1 of 21. Page 2 of 21. Page 2 of 21. Page 3 of 21. Page 3 of 21. Engel - Handling Memory in the Henriad.pdf. Engel - Handling Memory in the Henriad.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Engel - Handling Memo

Hire Experienced Lawyers in Frankston for Handling Difficult Situation ...
... lawyers are the best. They know how to. settle the case that you get most of the benefit. So, for such situation,. having an expert by your side is advisable. Lawyers in Preston give you. proper suggestion for any kind of tough situation. Page 1