Anytime Planning for Web Service Composition via Alternative Plan Merging
George Markou & Ioannis Refanidis
- Dept. of Applied Informatics, University of Macedonia, Greece
ICTAI 2014 - Session A23. Planning
Anytime Planning for Web Service Composition via Alternative Plan - - PowerPoint PPT Presentation
Anytime Planning for Web Service Composition via Alternative Plan Merging George Markou & Ioannis Refanidis Dept. of Applied Informatics, University of Macedonia, Greece ICTAI 2014 - Session A23. Planning Introduction Background
ICTAI 2014 - Session A23. Planning
ICTAI 2014 - Session A23. Planning 2/49
required to produce enterprise applications
information is EXP-hard (Nam, Kil, and Lee 2011)
attached to it
ICTAI 2014 - Session A23. Planning 3/49
automatic non- deterministic fully
probabilistic problem
Alternative Plan Merging) planner
consideration while generating the contingent plan
ICTAI 2014 - Session A23. Planning 4/49
ICTAI 2014 - Session A23. Planning 5/49
the service profile part of OWL-S)
ICTAI 2014 - Session A23. Planning 6/49
ICTAI 2014 - Session A23. Planning 7/49
ICTAI 2014 - Session A23. Planning 8/49
ICTAI 2014 - Session A23. Planning 9/49
e.g., Chen, Xu, and Reiff-Marganiec (2009)
ICTAI 2014 - Session A23. Planning 10/49
utility gained
ICTAI 2014 - Session A23. Planning 11/49
ICTAI 2014 - Session A23. Planning 12/49
rest of the particular branch it cannot be executed again with a different outcome
time.
solutions do not contain infinite branches or cycles ICTAI 2014 - Session A23. Planning 13/49
action due to its high probability of failing or its high cost in case it succeeds
deterministic plans
planning, or as a sorting metric of the plans afterwards
ICTAI 2014 - Session A23. Planning 14/49
ICTAI 2014 - Session A23. Planning 15/49 States represented by a circle
ICTAI 2014 - Session A23. Planning 16/49 Deterministic actions denoted by a straight line (𝑏2 and 𝑏7)
ICTAI 2014 - Session A23. Planning 17/49 Probabilistic actions denoted by a dotted line
ICTAI 2014 - Session A23. Planning 18/49 Some probabilistic actions have a single effect executed with a probability 𝑞𝑠𝑝𝑐𝛽𝑗𝑘& with a probability of 1 − 𝑞𝑠𝑝𝑐𝛽𝑗𝑘 they fail
ICTAI 2014 - Session A23. Planning 19/49 Other probabilistic actions have two different effects, each having a different probability of being produced
ICTAI 2014 - Session A23. Planning 20/49 Cost associated with each action is shown opposite it, e.g., 𝑑𝑝𝑡𝑢𝛽11 = 4,𝑑𝑝𝑡𝑢𝛽7 = 2
ICTAI 2014 - Session A23. Planning 21/49 For this example, we use as an aversion metric, = 𝑑𝑝𝑡𝑢𝑏𝑗𝑘 +
1 𝑞𝑠𝑝𝑐𝛽𝑗𝑘+1
ICTAI 2014 - Session A23. Planning 22/49 For this example, we use as an aversion metric, = 𝑑𝑝𝑡𝑢𝑏𝑗𝑘 +
1 𝑞𝑠𝑝𝑐𝛽𝑗𝑘+1
Original probabilistic actions All-outcomes determinization a1 a2
*
a3 a4 a5 a6 a7
* *(deterministic)
ICTAI 2014 - Session A23. Planning 22/49 For this example, we use as an aversion metric, = 𝑑𝑝𝑡𝑢𝑏𝑗𝑘 +
1 𝑞𝑠𝑝𝑐𝛽𝑗𝑘+1
Original probabilistic actions All-outcomes determinization a1 a2
*
a3 a4 a5 a6 a7
* *(deterministic)
a11 a12 a2 a31 a32 a41 a42 a51 a52 a61 a62 a7
ICTAI 2014 - Session A23. Planning 22/49 For this example, we use as an aversion metric, = 𝑑𝑝𝑡𝑢𝑏𝑗𝑘 +
1 𝑞𝑠𝑝𝑐𝛽𝑗𝑘+1
Original probabilistic actions All-outcomes determinization a1 a2
*
a3 a4 a5 a6 a7
* *(deterministic)
a11 a12 a2 a31 a32 a41 a42 a51 a52 a61 a62 a7
ICTAI 2014 - Session A23. Planning 22/49 For this example, we use as an aversion metric, = 𝑑𝑝𝑡𝑢𝑏𝑗𝑘 +
1 𝑞𝑠𝑝𝑐𝛽𝑗𝑘+1
Original probabilistic actions All-outcomes determinization a1 a2
*
a3 a4 a5 a6 a7
* *(deterministic)
a11 a12 a2 a31 a32 a41 a42 a51 a52 a61 a62 a7
ICTAI 2014 - Session A23. Planning 22/49 For this example, we use as an aversion metric, = 𝑑𝑝𝑡𝑢𝑏𝑗𝑘 +
1 𝑞𝑠𝑝𝑐𝛽𝑗𝑘+1
Original probabilistic actions All-outcomes determinization a1 a2
*
a3 a4 a5 a6 a7
* *(deterministic)
a11 a12 a2 a31 a32 a41 a42 a51 a52 a61 a62 a7
ICTAI 2014 - Session A23. Planning 23/49 Prob Cost Aversion 4.55 4 Plan 𝑏11 0.8
ICTAI 2014 - Session A23. Planning 23/49 Prob Cost Aversion 4.55 4 Plan 𝑏11 0.8 = 4 + 1 0.8 + 1 = 𝑑𝑝𝑡𝑢𝑏𝑗𝑘 +
1 𝑞𝑠𝑝𝑐𝛽𝑗𝑘+1
ICTAI 2014 - Session A23. Planning 23/49 Prob Cost Aversion 4.55 4 Plan 𝑏11 0.8 = 4 + 1 0.8 + 1 𝑏2,𝑏31 0.8 5 6.05
ICTAI 2014 - Session A23. Planning 23/49 Prob Cost Aversion 4.55 4 Plan 𝑏11 0.8 = 1 ∗ 0.8 = 0.8
= 2 + 1 1 + 1 + 3 + 1 0.8 + 1
𝑏2,𝑏31 0.8 5 6.05
ICTAI 2014 - Session A23. Planning 23/49 Prob Cost Aversion 4.55 4 Plan 𝑏11 0.8 = 1 ∗ 0.8 = 0.8
= 2 + 1 1 + 1 + 3 + 1 0.8 + 1
𝑏2,𝑏31 0.8 5 6.05
ICTAI 2014 - Session A23. Planning 24/49 Aversion 4.55 6.05 13.13 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 # 1 2 3
ICTAI 2014 - Session A23. Planning 25/49 Aversion 4.55 6.05 13.13 17.96 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 # 1 2 3 4
ICTAI 2014 - Session A23. Planning 26/49 Aversion 4.55 6.05 13.13 17.96 19.91 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 # 1 2 3 4 5
ICTAI 2014 - Session A23. Planning 27/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 28/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Circular nodes = Chance nodes # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 28/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Circular nodes = Chance nodes # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 29/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Grey nodes potentially lead to the goal # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 30/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 White nodes don’t lead to the goal # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 31/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Triangular nodes = end nodes # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 32/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Goal node # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 33/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Dead-end node # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 34/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = a11 First action = a11 Deterministic = a11 Probabilistic = a1 # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 34/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = a11 First action = a11 Deterministic = a11 Probabilistic = a1 # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 34/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = a11 First action = a11 Deterministic = a11 Probabilistic = a1 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 34/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = a11 First action = a11 Deterministic = a11 Probabilistic = a1 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝑔𝑏𝑗𝑚𝑓𝑒 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 34/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = a11 First action = a11 Deterministic = a11 Probabilistic = a1 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝑔𝑏𝑗𝑚𝑓𝑒 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝐻𝑝𝑏𝑚! # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 34/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = a11 First action = a11 Deterministic = a11 Probabilistic = a1 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝑔𝑏𝑗𝑚𝑓𝑒 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝐻𝑝𝑏𝑚! 𝑂𝑓𝑦𝑢? # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 34/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = a11 First action = a11 Deterministic = a11 Probabilistic = a1 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝑔𝑏𝑗𝑚𝑓𝑒 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝐻𝑝𝑏𝑚! 𝑂𝑓𝑦𝑢? Current plan = a11 does not contain any more actions Compute possible valid plans # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 35/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans If a plan in the set of valid plans contains at any point actions that have already been executed in the current branch is the only one contained in the current branch
has already been inserted # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 35/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans If a plan in the set of valid plans contains at any point actions that have already been executed in the current branch 1) If executed action had the same outcome as the one in the plan insert plan into branch without the particular action Remember assumption:
particular result it has this result for its entire branch.
preconditions output effects still hold; no need for re- execution is the only one contained in the current branch
has already been inserted # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 35/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans If a plan in the set of valid plans contains at any point actions that have already been executed in the current branch 1) If executed action had the same outcome as the one in the plan insert plan into branch without the particular action 2) If executed action had a different outcome as the one in the plan the entire plan is rejected for this particular branch Remember assumption:
particular result it has this result for its entire branch.
preconditions output effects still hold; no need for re- execution is the only one contained in the current branch
has already been inserted # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 35/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans If a plan in the set of valid plans contains at any point actions that have already been executed in the current branch 1) If executed action had the same outcome as the one in the plan insert plan into branch without the particular action 2) If executed action had a different outcome as the one in the plan the entire plan is rejected for this particular branch Set of valid plans may not be the same as the original one
is the only one contained in the current branch
has already been inserted # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 35/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans If a plan in the set of valid plans contains at any point actions that have already been executed in the current branch 1) If executed action had the same outcome as the one in the plan insert plan into branch without the particular action 2) If executed action had a different outcome as the one in the plan the entire plan is rejected for this particular branch Set of valid plans may not be the same as the original one
the current branch
contained in the current branch
has already been inserted # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 35/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans If a plan in the set of valid plans contains at any point actions that have already been executed in the current branch 1) If executed action had the same outcome as the one in the plan insert plan into branch without the particular action 2) If executed action had a different outcome as the one in the plan the entire plan is rejected for this particular branch Set of valid plans may not be the same as the original one
the current branch
tha t has already been inserted
has already been inserted # 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 35/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans If a plan in the set of valid plans contains at any point actions that have already been executed in the current branch 1) If executed action had the same outcome as the one in the plan insert plan into branch without the particular action 2) If executed action had a different outcome as the one in the plan the entire plan is rejected for this particular branch Set of valid plans may not be the same as the original one
the current branch
tha t has already been inserted
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 36/49 Aversion 6.05 13.13 17.96 19.91 31.74 Plan 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = 𝑏2,𝑏31 First action = a2 # 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 36/49 Aversion 6.05 13.13 17.96 19.91 31.74 Plan 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = 𝑏2,𝑏31 First action = a2 # 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 36/49 Aversion 6.05 13.13 17.96 19.91 31.74 Plan 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = 𝑏2,𝑏31 First action = a2 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 # 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 36/49 Aversion 6.05 13.13 17.96 19.91 31.74 Plan 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = 𝑏2,𝑏31 First action = a2 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝐸𝑓𝑢𝑓𝑠𝑛𝑗𝑜𝑗𝑡𝑢𝑗𝑑 𝑑𝑏𝑜𝑜𝑝𝑢 𝑔𝑏𝑗𝑚 # 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 36/49 Aversion 6.05 13.13 17.96 19.91 31.74 Plan 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Best plan = 𝑏2,𝑏31 First action = a2 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝐸𝑓𝑢𝑓𝑠𝑛𝑗𝑜𝑗𝑡𝑢𝑗𝑑 𝑑𝑏𝑜𝑜𝑝𝑢 𝑔𝑏𝑗𝑚 Next action in plan = a31 Deterministic = a31 Probabilistic = a3 # 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 37/49 Aversion 6.05 13.13 17.96 19.91 31.74 Plan 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 # 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 37/49 Aversion 6.05 13.13 17.96 19.91 31.74 Plan 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 # 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 37/49 Aversion 6.05 13.13 17.96 19.91 31.74 Plan 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑔𝑏𝑗𝑚𝑓𝑒 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 # 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 37/49 Aversion 6.05 13.13 17.96 19.91 31.74 Plan 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑔𝑏𝑗𝑚𝑓𝑒 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝐻𝑝𝑏𝑚! # 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 37/49 Aversion 6.05 13.13 17.96 19.91 31.74 Plan 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑔𝑏𝑗𝑚𝑓𝑒 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝑂𝑓𝑦𝑢? 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝐻𝑝𝑏𝑚! # 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 37/49 Aversion 6.05 13.13 17.96 19.91 31.74 Plan 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑔𝑏𝑗𝑚𝑓𝑒 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝑂𝑓𝑦𝑢? Current plan does not contain any more actions Compute possible valid plans 𝑡𝑣𝑑𝑑𝑓𝑡𝑡𝑔𝑣𝑚 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑝𝑜 𝑝𝑔 𝑏𝑑𝑢𝑗𝑝𝑜 𝐻𝑝𝑏𝑚! # 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 38/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans Current branch contains actions 𝑏12, 𝑏2, 𝑏32
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 38/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans 𝑏 1 and 𝑏 3 𝑏𝑏 𝑏 3 3 𝑏 3 have already been inserted with different results Current branch contains actions 𝑏12, 𝑏2, 𝑏32
results
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 38/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans 𝑏 1 and 𝑏 3 𝑏𝑏 𝑏 3 3 𝑏 3 have already been inserted with different results Current branch contains actions 𝑏12, 𝑏2, 𝑏32
results
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 38/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans 𝑏 1 and 𝑏 3 𝑏𝑏 𝑏 3 3 𝑏 3 have already been inserted with different results Current branch contains actions 𝑏12, 𝑏2, 𝑏32
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 38/49 Aversion 4.55 6.05 13.13 17.96 19.91 31.74 Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans 𝑏 1 and 𝑏 3 𝑏𝑏 𝑏 3 3 𝑏 3 have already been inserted with different results Current branch contains actions 𝑏12, 𝑏2, 𝑏32
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 39/49 Aversion 13.13 17.96 19.91 31.74 Plan 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 # 3 4 5 6
ICTAI 2014 - Session A23. Planning 39/49 Aversion 13.13 17.96 19.91 31.74 Plan 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 # 3 4 5 6
ICTAI 2014 - Session A23. Planning 39/49 Aversion 13.13 17.96 19.91 31.74 Plan 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 # 3 4 5 6
ICTAI 2014 - Session A23. Planning 39/49 Aversion 13.13 17.96 19.91 31.74 Plan 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑔𝑏𝑗𝑚𝑣𝑠𝑓 𝑒𝑓𝑏𝑒 − 𝑓𝑜𝑒! # 3 4 5 6
ICTAI 2014 - Session A23. Planning 39/49 Aversion 13.13 17.96 19.91 31.74 Plan 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑔𝑏𝑗𝑚𝑣𝑠𝑓 𝑒𝑓𝑏𝑒 − 𝑓𝑜𝑒! # 3 4 5 6
ICTAI 2014 - Session A23. Planning 39/49 Aversion 13.13 17.96 19.91 31.74 Plan 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑔𝑏𝑗𝑚𝑣𝑠𝑓 𝑔𝑏𝑗𝑚𝑣𝑠𝑓 𝑒𝑓𝑏𝑒 − 𝑓𝑜𝑒! # 3 4 5 6
ICTAI 2014 - Session A23. Planning 39/49 Aversion 13.13 17.96 19.91 31.74 Plan 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑔𝑏𝑗𝑚𝑣𝑠𝑓 𝑔𝑏𝑗𝑚𝑣𝑠𝑓 𝑒𝑓𝑏𝑒 − 𝑓𝑜𝑒! 𝑒𝑓𝑏𝑒 − 𝑓𝑜𝑒! # 3 4 5 6
ICTAI 2014 - Session A23. Planning 39/49 Aversion 13.13 17.96 19.91 31.74 Plan 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝑡𝑣𝑑𝑑𝑓𝑡𝑡 𝐻𝑝𝑏𝑚! 𝑔𝑏𝑗𝑚𝑣𝑠𝑓 𝑔𝑏𝑗𝑚𝑣𝑠𝑓 𝑒𝑓𝑏𝑒 − 𝑓𝑜𝑒! 𝑒𝑓𝑏𝑒 − 𝑓𝑜𝑒! # 3 4 5 6
ICTAI 2014 - Session A23. Planning 39/49 Aversion 13.13 17.96 19.91 31.74 Plan 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑔𝑏𝑗𝑚𝑣𝑠𝑓 # 3 4 5 6
ICTAI 2014 - Session A23. Planning 39/49 Aversion 13.13 17.96 19.91 31.74 Plan 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 𝑔𝑏𝑗𝑚𝑣𝑠𝑓 𝑂𝑓𝑦𝑢? Current plan does not contain any more actions Compute possible valid plans # 3 4 5 6
ICTAI 2014 - Session A23. Planning 40/49 Aversion Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans Current branch contains actions 𝑏12, 𝑏2, 𝑏32, 𝑏42
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 40/49 Aversion Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans Current branch contains actions 𝑏12, 𝑏2, 𝑏32, 𝑏42
results
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 40/49 Aversion Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans Current branch contains actions 𝑏12, 𝑏2, 𝑏32, 𝑏42
results
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 40/49 Aversion Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans Current branch contains actions 𝑏12, 𝑏2, 𝑏32, 𝑏42
results
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 40/49 Aversion Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans lt Current branch contains actions 𝑏12, 𝑏2, 𝑏32, 𝑏42
results
contain 𝑏4 with a different result
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 40/49 Aversion Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans lt Current branch contains actions 𝑏12, 𝑏2, 𝑏32, 𝑏42
results
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 40/49 Aversion Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans lt Current branch contains actions 𝑏12, 𝑏2, 𝑏32, 𝑏42
results
with the same result
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 40/49 Aversion Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans 2 𝑏 42 is removed, as it has already been executed lt Current branch contains actions 𝑏12, 𝑏2, 𝑏32, 𝑏42
results
# 1 2 3 4 5 6
ICTAI 2014 - Session A23. Planning 40/49 Aversion Plan 𝑏11 𝑏2,𝑏31 𝑏41, 𝑏51, 𝑏61, 𝑏7 𝑏42, 𝑏61, 𝑏7 𝑏41, 𝑏51, 𝑏62 𝑏42, 𝑏62 Compute possible valid plans 2 𝑏 42 is removed, as it has already been executed lt Current branch contains actions 𝑏12, 𝑏2, 𝑏32, 𝑏42
results
# 1 2 3 4 5 6 17.96 31.74 7.05 20.83
ICTAI 2014 - Session A23. Planning 41/49 Aversion 7.05 20.83 Plan 𝑏42, 𝑏61, 𝑏7 𝑏42, 𝑏62 # 4 6
ICTAI 2014 - Session A23. Planning 41/49 Aversion 7.05 20.83 Plan 𝑏42, 𝑏61, 𝑏7 𝑏42, 𝑏62
𝑡𝑣𝑑𝑑𝑓𝑡𝑡
# 4 6
ICTAI 2014 - Session A23. Planning 41/49 Aversion 7.05 20.83 Plan 𝑏42, 𝑏61, 𝑏7 𝑏42, 𝑏62
𝑡𝑣𝑑𝑑𝑓𝑡𝑡
# 4 6
𝑡𝑣𝑑𝑑𝑓𝑡𝑡
ICTAI 2014 - Session A23. Planning 41/49 Aversion 7.05 20.83 Plan 𝑏42, 𝑏61, 𝑏7 𝑏42, 𝑏62
𝑡𝑣𝑑𝑑𝑓𝑡𝑡
𝐻𝑝𝑏𝑚! # 4 6 Current plan does not contain any more actions Compute possible valid plans
𝑡𝑣𝑑𝑑𝑓𝑡𝑡
ICTAI 2014 - Session A23. Planning 41/49 Aversion 7.05 20.83 Plan 𝑏42, 𝑏61, 𝑏7 𝑏42, 𝑏62
𝑡𝑣𝑑𝑑𝑓𝑡𝑡
𝐻𝑝𝑏𝑚! # 4 6 Current plan does not contain any more actions Compute possible valid plans
𝑡𝑣𝑑𝑑𝑓𝑡𝑡
ICTAI 2014 - Session A23. Planning 41/49 Aversion 7.05 20.83 Plan 𝑏42, 𝑏61, 𝑏7 𝑏42, 𝑏62 # 4 6 Current plan does not contain any more actions Compute possible valid plans
ICTAI 2014 - Session A23. Planning 41/49 Aversion 7.05 20.83 Plan 𝑏42, 𝑏61, 𝑏7 𝑏42, 𝑏62 # 4 6 Current plan does not contain any more actions Compute possible valid plans 𝐻𝑝𝑏𝑚!
𝑡𝑣𝑑𝑑𝑓𝑡𝑡
ICTAI 2014 - Session A23. Planning 42/49
uni)
var)
ICTAI 2014 - Session A23. Planning 43/49
1 probαij+1,
costaij probaij+1
costaij probaij+1,
ICTAI 2014 - Session A23. Planning 44/49 Bonet and Geffner (2001)
In all cases, the algorithm outputted all possible solutions
produce solutions quickly
ICTAI 2014 - Session A23. Planning 45/49
=0 and h sim h h sim sim h sim produce the plans in less time than the others 𝐸𝑝𝑛 1 all heuristics, in any combination with a path-cost function, produce solutions
quickly In all cases, the algorithm outputted all possible solutions
ICTAI 2014 - Session A23. Planning 45/49
𝑖 𝑏𝑒𝑒 𝑏𝑏𝑒𝑒𝑒𝑒 𝑖 𝑏𝑒𝑒 and 𝑖 𝑛𝑏𝑦 𝑖 𝑖 𝑛𝑏𝑦 𝑛𝑛𝑏𝑏𝑦𝑦 𝑖 𝑛𝑏𝑦 are more informed
=0 and h sim h h sim sim h sim produce the plans in less time than the others
𝐸𝑝𝑛 1 all heuristics, in any combination with a path-cost function, produce solutions
quickly In all cases, the algorithm outputted all possible solutions
ICTAI 2014 - Session A23. Planning 45/49
the required time
as the heuristic in regard to the required time
regardless of the heuristic most effective
ICTAI 2014 - Session A23. Planning 46/49
effective
the required time
regardless of the heuristic most effective
ICTAI 2014 - Session A23. Planning 46/49 In regard to time and amount
ICTAI 2014 - Session A23. Planning 47/49
deterministic solutions to a determinized probabilistic problem
*(alpha version available currently only contains deterministic WSC algorithm)
ICTAI 2014 - Session A23. Planning 48/49
deterministic solutions to a determinized probabilistic problem
*(alpha version available currently only contains deterministic WSC algorithm)
ICTAI 2014 - Session A23. Planning 48/49 gmarkou@uom.gr http://goo.gl/mqyEOX http://goo.gl/IBgax3
another, shorter, solution
ICTAI 2014 - Session A23. Planning 49/49
another, shorter, solution
ICTAI 2014 - Session A23. Planning 49/49 same non-deterministic action with a different alternative outcome
another, shorter, solution
ICTAI 2014 - Session A23. Planning 49/49
service composition”, Proc. IEEE International Conference on Web Services (ICWS'09), July 2009, pp. 9-16.
through planning”, IEEE Trans. Service Computing, April 2011, pp. 301-308.
constraints, and planning under uncertainty: a new connection”, J. Artif. Intell. Res, vol. 35, May 2009, pp.49-117.
International AAAI Fall Symposium on Agents and the Semantic Web, Nov. 2005.
composition,” Theor. Comput. Sci., vol. 412, no. 48, pp. 6736-6749, 2011. ICTAI 2014 - Session A23. Planning 51/49