Distributed Constraint Reasoning
Makoto Yokoo Kyushu University, Japan yokoo@inf.kyushu-u.ac.jp
http://agent.inf.kyushu-u.ac.jp/~yokoo/
1
Distributed Constraint Reasoning Makoto Yokoo Kyushu University, - - PowerPoint PPT Presentation
Distributed Constraint Reasoning Makoto Yokoo Kyushu University, Japan yokoo@inf.kyushu-u.ac.jp http://agent.inf.kyushu-u.ac.jp/~yokoo/ 1 Outline Constraint Satisfaction Problem (CSP) Formalization Algorithms Distributed
1
– Formalization – Algorithms
– Formalization – Algorithms
– Formalization – Algorithms
– Coalition Structure Generation based on DCOP
2
3
4
5
6
Q Q Q Q
{ red, green, yellow}
{ red, green, yellow} { red, green, yellow} { red, green, yellow}
7
8
9
10
11
12
13
14
x1 x2 x3 x4
15
16
17
18
19
20
21
: in the partial solution : not part of the partial solution, satisfies all constraints : not part of the partial solution, violates some constraint
22
backtracking – Removes the value that cannot be a part of a final solution 2-consistency: tries to guarantee that for each value vi of variable xi, for another variable xj, there exists at least one value xj=vj, such that it is consistent with xi=vi ⇒ removes vi if this is not true.
– Case i: a variable has an empty domain ⇒ no consistent solution exists. – Case ii: the domain of each variable has exactly one value: their combination is a solution. – Case iii: we are not sure whether there exists a consistent solution or not.
23
24
; i i i j j j i i
x
1
x
2
x
3
revise(1,2) revise(3,2) revise(3,1)
25
1ACROSS: HOSES, LASER, SAILS, SHEET, STEER 2DOWN: HOSES, LASER, SAILS, SHEET, STEER 3DOWN: HOSES, LASER, SAILS, SHEET, STEER 4ACROSS: LINE, HEEL, HIKE, KEEL, KNOT 5DOWN: LINE, HEEL, HIKE, KEEL, KNOT 6DOWN: AFT, ALE, LEE, EEL, TIE 7ACROSS: AFT, ALE, LEE, EEL, TIE 8ACROSS: HOSES, LASER, SAILS, SHEET, STEER
26
variables: 1ACROSS: HOSES, LASER, SAILS, SHEET, STEER 2DOWN: HOSES, LASER, SAILS, SHEET, STEER 3DOWN: HOSES, LASER, SAILS, SHEET, STEER 4ACROSS: LINE, HEEL, HIKE, KEEL, KNOT 5DOWN: LINE, HEEL, HIKE, KEEL, KNOT 6DOWN: AFT, ALE, LEE, EEL, TIE 7ACROSS: AFT, ALE, LEE, EEL, TIE 8ACROSS: HOSES, LASER, SAILS, SHEET, STEER constraints: 1ACROSS[3] = 2DOWN[1] 1ACROSS[5] = 3DOWN[1] 4ACROSS[2] = 2DOWN[3] 4ACROSS[3] = 5DOWN[1] 4ACROSS[4] = 3DOWN[3] 7ACROSS[1] = 2DOWN[4] 7ACROSS[2] = 5DOWN[2] 7ACROSS[3] = 3DOWN[4] 8ACROSS[1] = 6DOWN[2] 8ACROSS[3] = 2DOWN[5] 8ACROSS[4] = 5DOWN[3] 8ACROSS[5] = 3DOWN[5]
27
28
29
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
– Formalization – Algorithms
– Formalization – Algorithms
– Formalization – Algorithms
– Coalition Structure Generation based on DCOP
47
48
49
50
– An agent has variables which represent requests. – The domain of a variable is possible plans for satisfying a request. – Goal: find a value assignment that satisfies resource constraints.
51
52
53
Department B morning: nurse2, nurse4, .. afternoon: ... night: ... Department A morning: nurse1, nurse3, .. afternoon: ... night: ...
54
Window 15:00 – 18:00 Duration 2h Window13:00 – 20:00 Duration 1h Better after 18:00
55
56
time duty cycle
Heavy traffic road small road
Good Schedule Bad Schedule
57
58
59
backtrack
60
61
62
63
new constraint
dead-end agent becomes higher.
64
65
66
67
68
1
2
3
4
5
6
69
1
2
3
4
5
6
2
1
2
3
4
5
6 2 2 2 2 2
1
2
3
4
5
6
1
2
3
4
5
6 2 2
– Formalization – Algorithms
– Formalization – Algorithms
– Formalization – Algorithms
– Coalition Structure Generation based on DCOP
70
71
72
73
back-edges+ 1 (ancestors must be connected)
is n-1.
74
75
76
77
78
79
80
81
82
83
84
85
1,2,3,4,5 5 3 2 4 1
5 3 4 1 2
2 4
5 3 4 1 2 2 5 3 4 1 2
86
1 2 3 4 5 6
Induced width 3
1 2 3 4 5 6
p = 2
87
– Formalization – Algorithms
– Formalization – Algorithms
– Formalization – Algorithms
– Coalition Structure Generation based on DCOP
88
90
91
Alice Becky Carol
92
93
94
DA = { Active, Passive}
When two agents are in
95
96
97
98
Add “independent”
99
100
101
102
103
104