heuristic planning with time and resources

37
Heuristic Planning with Time and Resources --Sapa, TP4, and others

Upload: sian

Post on 05-Jan-2016

41 views

Category:

Documents


1 download

DESCRIPTION

Heuristic Planning with Time and Resources. --Sapa, TP4, and others. t s. t s. t s. t e. t e. t e. Quiz1: Expressiveness of Temporal Action. precondition. ZENO TGP TP4 Sapa. effect. Sapa and TP4. Forward chaining. Backward chaining. Sapa and TP4. Forward chaining. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Heuristic Planning  with Time and Resources

Heuristic Planning with Time and Resources

--Sapa, TP4, and others

Page 2: Heuristic Planning  with Time and Resources

Quiz1: Expressiveness of Temporal Action

• ZENO

• TGP

• TP4

• Sapa

ts te

ts te

ts te

effectprecondition

Page 3: Heuristic Planning  with Time and Resources

Sapa and TP4Sapa TP4

Search Direction

Search Space

Branching Rule

Extension

Concurrency

Path Cost

Heuristic

Integrating resource

Forward chaining Backward chaining

Page 4: Heuristic Planning  with Time and Resources

Sapa and TP4Sapa TP4

Search Direction

Search Space

Branching Rule

Extension

Concurrency

Path Cost

Heuristic

Integrating resource

Forward chaining Backward chaining

Page 5: Heuristic Planning  with Time and Resources

Sapa: search space

S = ( P, M, II, Q, t)

P: set of predicates that are true

M: set of functions representing metric-resources

II: set of persistent conditions that need to be protected for a while

Q: queue containing scheduled future events

t: time stamp

P= {(pi, ti)|ti<t}: set of predicates that are true at t and achieved at ti

Page 6: Heuristic Planning  with Time and Resources

Sapa: Search Space

The initial state S0=(P,M,II,Q,t)P= {(pi, ti)|ti<t}: p is true at t and achieved at ti

M: metric-resources

II: persistent conditions

Q: scheduled future events

t: time stamp

--P= (pi, to), piIp

--M given resource constraints--Q empty, II empty

Page 7: Heuristic Planning  with Time and Resources

Sapa: Search Space

The state S=(P,M,II,Q,t)entails the goal G if

P= {(pi, ti)|ti<t}: p is true at t and achieved at ti

M: metric-resources

II: persistent conditions

Q: scheduled future events

t: time stamp

--(pi, ti)G, (pi, tj)P, tj<=ti, no event in deletes pi

-- eQ adds pi at tj, tj<=ti

Page 8: Heuristic Planning  with Time and Resources

Sapa: Action Application

Giving S=(P,M,II,Q,t), an action A is applicable in S if:

P= {(pi, ti)|ti<t}: p is true at t and achieved at ti

M: metric-resources

II: persistent conditions

Q: scheduled future events

t: time stamp

-- All instant-pre(A) |= P,M

-- eff(A) not interfere with

II and Q

-- no eQ interferes with

persistent-pre(A)

Page 9: Heuristic Planning  with Time and Resources

Sapa: branching rule

Choose an action A applicable in S,if A != no-op

S’ = ApplyInstantaneousUpdates ( S, A )Q’ = AddDelayedEvents ( Q, S, A)

Else S’ = SS’.t = eventTime( Front(Q) )While eventTime(Front(Q)) == S’.t

e = Dequeue(Q);S’ = ApplyEffect(S’, e );

Page 10: Heuristic Planning  with Time and Resources

TP4: search space

S = ( E, F, t)

E: set of predicates that are required to be true

t: time stamp

F= {(ai, i)}: action ai is planned to start at t- i

Page 11: Heuristic Planning  with Time and Resources

TP4: Search Space

The initial state S0=?• E={pi}: pi is required to be true at t

• F= {(ai, i)}: action ai is planned to start at t- i

• t: time stamp

S0= (G, NULL)

The final state S ?

{S= (E, NULL)|EIp}

Page 12: Heuristic Planning  with Time and Resources

TP4: Action Application

S=(E,{(aj,j)},t)

A set of actions SE is applicable in S if

• E={pi}: pi is required to be true at t

• F= {(ai, i)}: action ai is planned to start at t- i

• t: time stamp -- every action is compatible with each other;

--pE, aSE, padd(a), a is compatible with bF

Page 13: Heuristic Planning  with Time and Resources

TP4: branching rule

Choose a set of actions SE applicable in S,

define: Fnew = { (a, dur(a)| aSE }

adv = min{, a!=no-op}

then’ = {pre(a) | (a,)FFnew}

F’ = { (a, adv)| (a,)FFnew, adv}

S’ = (E’, F’)

Page 14: Heuristic Planning  with Time and Resources

Sapa and TP4Sapa TP4

Search Direction

Search Space State world & state of search so far

Branching Rule Sound & complete Sound & incomplete

Extension

Concurrency

Path Cost

Heuristic

Integrating resource

Forward chaining Backward chaining

Page 15: Heuristic Planning  with Time and Resources

Quiz 2: Concurrency

qpre(a)

!qdelayed-effect(b)

Page 16: Heuristic Planning  with Time and Resources

Quiz 2: Concurrency

qpre(a)

!qdelayed-effect(b)

Page 17: Heuristic Planning  with Time and Resources

Quiz 2: Concurrency

qinstant-effect(a)

!qdelayed-effect(b)

Page 18: Heuristic Planning  with Time and Resources

Quiz 2: Concurrency

qinstant-effect(a)

!qdelayed-effect(b)

Page 19: Heuristic Planning  with Time and Resources

Sapa and TP4Sapa TP4

Search Direction

Search Space State world & state of search so far

Branching Rule Sound & complete Sound & incomplete

Concurrency

(temporal)Proposition lock (“holding”)

Proposition lock

Extension Easy? Limited?

Path Cost

Heuristic

Integrating resource

Forward chaining Backward chaining

Page 20: Heuristic Planning  with Time and Resources

Sapa and TP4Sapa TP4

Search Direction

Search Space State world & state of search so far

Branching Rule Sound & complete Sound & incomplete

Concurrency

(temporal)Proposition lock (“holding”)

Proposition lock

Extension

Heuristic

Path Cost

Integrating resource

Forward chaining Backward chaining

Page 21: Heuristic Planning  with Time and Resources

Sapa: Extension?

P= {(pi, ti)|ti<t}: p is true at t and achieved at ti

M: metric-resources

II: persistent conditions

Q: scheduled future events

t: time stamp

an action A is applicable in S=(P,M,II,Q,t) if:

-- All instant-pre(A) |= P,M

-- eff(A) not interfere with II and Q

-- no eQ interferes with persistent-pre(A)

II = { (prea, t2 ) }

All (pre(a), -t1) |= P, M

Page 22: Heuristic Planning  with Time and Resources

TP4: Extension?

A set of actions SE is applicable in S=(E, F, t) if:

-- every action is compatible with each other;

--pE, aSE, padd(a), a is compatible with bF

E={ p| p is true during [t1, t2] }

• E={pi}: pi is required to be true at t

• F= {(ai, i)}: action ai is planned to start at t- i

• t: time stamp

Page 23: Heuristic Planning  with Time and Resources

Sapa and TP4Sapa TP4

Search Direction

Search Space State world & state of search so far

Branching Rule Sound & complete Sound & incomplete

Concurrency

(temporal)Proposition lock (“holding”)

Proposition lock

Extension Easy? Limited?

Path Cost

Heuristic

Integrating resource

Forward chaining Backward chaining

Page 24: Heuristic Planning  with Time and Resources

Sapa and TP4Sapa TP4

Search Direction

Search Space State world & state of search so far

Branching Rule Sound & complete Sound & incomplete

Extension Easy? Limited?Concurrency

(temporal)Proposition lock (“holding”)

Proposition lock

Heuristic

Path Cost

Integrating resource

Forward chaining Backward chaining

Page 25: Heuristic Planning  with Time and Resources

Sapa: Heuristic Function

Relaxed temporal planning graph(RTPG)

-- no delete list

-- no resource consumption

Max-span?

Min-slack?

Max-slack?

Sum-slack?

Sum-action?

Sum-duration?

Page 26: Heuristic Planning  with Time and Resources

Sapa: Heuristic Function

Max-span? Min-slack? Max-slack? Sum-slack?

Sum-action? Sum-duration?

Page 27: Heuristic Planning  with Time and Resources

TP4: Heuristic Functions

kFa

iFa

kiiikk

apreHFEH

,)(max),(,),(

*

),(

*

,)(),(),(

** Fa

i

ii

apreEHFEH

,max),( *

||,

* EHEHmEEE

Page 28: Heuristic Planning  with Time and Resources

Sapa and TP4Sapa TP4

Search Direction

Search Space State world & state of search so far

Branching Rule Sound & complete Sound & incomplete

Extension Easy? Limited?Concurrency

(temporal)Proposition lock (“holding”)

Proposition lock

Heuristic RTGP DP

Path Cost depends c(S, S’)=adv

Integrating resource

Forward chaining Backward chaining

Page 29: Heuristic Planning  with Time and Resources

TP4: Incremental Branching

• Estimating the cost of Partial States– Estimate lower bounds on p

• Ordering predicates in a state-- decreasing order of “difficulty”

• Right-shift equivalence-- if an action was applicable but was not used, then it

won’t be used

Page 30: Heuristic Planning  with Time and Resources

Sapa and TP4Sapa TP4

Search Direction

Search Space State world & state of search so far

Branching Rule Sound & complete Sound & incomplete

Extension Easy? Limited?Concurrency

(temporal)Proposition lock (“holding”)

Proposition lock

Heuristic RTGP DP

Path Cost depends c(S, S’)=adv

Integrating resource

Forward chaining Backward chaining

Page 31: Heuristic Planning  with Time and Resources

Resource Management

• Producible

• Consumable

• Reusable

• Shareable

• Non-shareable

• Limited-capacity

Page 32: Heuristic Planning  with Time and Resources

Sapa: resource management

• Producable, consumable, non-shareable

Sum-duration

Sum-action

• Shareable ?

Page 33: Heuristic Planning  with Time and Resources

TP4: resource management

• Reusable & Non-shareable?

• Reusable & Limited-capacity?

• Consumable & non-producible?

Page 34: Heuristic Planning  with Time and Resources

Sapa and TP4Sapa TP4

Search Direction Forward chaining Backward chaining

Search Space S=(P,M,II,Q,t) S=(E,{(aj,j)},t)

Branching Rule Sound complete Sound, incomplete

Extension Easy? Limited?

ConcurrencyProposition lock

Non-shareable resourcesProposition lock (“holding”)

Path Cost depends c(S, S’)=adv

Heuristic RTGP DP

Integrating resource

Easy if inadmissible hard

Page 35: Heuristic Planning  with Time and Resources

Quiz3: Continuous Change

• ZENO?

• Sapa?

• TGP & TP4?

Page 36: Heuristic Planning  with Time and Resources

Experiments

TGP

ZENO

TP4 Sapa

expressiveness

perf

orm

ance

Page 37: Heuristic Planning  with Time and Resources

Comments?