Linear Programming in Optimal Classical Planning
Blai Bonet
Universidad Sim´
- n Bol´
ıvar, Venezuela
- UC3M. June 2019
Linear Programming in Optimal Classical Planning Blai Bonet - - PowerPoint PPT Presentation
Linear Programming in Optimal Classical Planning Blai Bonet Universidad Sim on Bol var, Venezuela UC3M. June 2019 Model for classical planning Simplest model: full information and deterministic operators (actions): (finite) state
0≤i<n c(oi) is minimum
2 of 46
3 of 46
4 of 46
5 of 46
6 of 46
6 of 46
(define (domain gripper) (:predicates (room ?r) (ball ?b) (gripper ?g) (at-robby ?r) (at ?b ?r) (free ?g) (carry ?o ?g)) (:action move :parameters (?from ?to) :precondition (and (room ?from) (room ?to) (at-robby ?from)) :effect (and (at-robby ?to) (not (at-robby ?from)))) (:action pick :parameters (?b ?r ?g) :precondition (and (ball ?b) (room ?r) (gripper ?g) (at ?b ?r) (at-robby ?r) (free ?g)) :effect (and (carry ?b ?g) (not (at ?b ?r)) (not (free ?g)))) (:action drop :parameters (?b ?r ?g) :precondition (and (ball ?b) (room ?r) (gripper ?g) (carry ?b ?g) (at-robby ?r)) :effect (and (at ?b ?r) (free ?g) (not (carry ?b ?g)))) ) (define (problem p1) (:domain gripper) (:objects A B left right b1 b2 b3) (:init (room A) (room B) (gripper left) (gripper right) (ball b1) (ball b2) (ball b3) (at-robby A) (at b1 B) (at b2 B) (at b3 B) (free left) (free right)) (:goal (and (at b1 A) (at b2 A) (at b3 A))))
7 of 46
8 of 46
9 of 46
10 of 46
P ′(s) of reaching goal in P ′ from s
P ′(s)
P ′(s) are stored in a table.
11 of 46
H (s) = max{h1(s), h2(s), . . . , hn(s)}
H (s) = h1(s) + h2(s) + · · · + hn(s)
H
H
H
12 of 46
c
c, change cost function from c to c′
c′ of original task Pc
P ′′(s) ≤ h∗ P ′(s) ≤ h∗ P (s) for P ′′ = P ′ c′ when c′ ≤ c
13 of 46
H (s) = max{h1(s), h2(s), . . . , hn(s)} ≤ h∗(s)
H (s) = h1(s) + h2(s) + · · · + hn(s) ≤ h∗(s)
H (s) (it depends on s)
14 of 46
15 of 46
H (s) or hOCP C
16 of 46
17 of 46
H (I) = max{hL1(I), hL2(I), hL3(I), hL4(I)} = max{3, 3, 4, 0} = 4
H (I) = 3 + 3 + 4 + 0 = 10
H
18 of 46
L
19 of 46
L
19 of 46
u∈H c(u)
20 of 46
21 of 46
22 of 46
23 of 46
23 of 46
24 of 46
24 of 46
24 of 46
24 of 46
24 of 46
25 of 46
26 of 46
I , sα G):
I = α(sI)
G = {α(s) : s ∈ G}. If TNF, G = {s⋆} and sα G = {α(s⋆)}
27 of 46
→v
28 of 46
Atom
Atom(s) ≤ hSEQ(s)
29 of 46
{f αV :V }(s) ≤ hSEQ(s) (but may bridge gap with simple transf.)
30 of 46
C1 ∪ C2 ∪ ··· ∪ Cn = hOCP H
C1, hLP C2, . . . , hLP Cn}
SEQ∪L = hOCP
{hSEQ,hLP
L } = hOCP
{hSEQ,hOCP
L
}
31 of 46
Atom(s) becomes hSEQ(s). The
V ∈V T[V, s[V ]]. Observe h(s) ≤ h∗(s) (why?)
32 of 46
33 of 46
34 of 46
35 of 46
36 of 46
37 of 46
f∈F wf [
k
f∈F wf [
38 of 46
V (new auxiliary vars)
V
V
f∈Find wf∆o(f), F = F irr ∪ F ind ∪ F ctx
39 of 46
40 of 46
41 of 46
42 of 46
43 of 46
44 of 46
45 of 46
46 of 46