













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














Constraint Programming
Alan M. Frisch
Artificial Intelligence Group
Department of Computer Science
University of York
Ian Miguel
School of Computing
University of St Andrews
2
3
1 1 1
1
1
1
f
g i
e
c d
b
h
a
(size 4) (size 3) (size 3) (size 1) (size 1) (size 1)
2
no more than d slabs.
o a
o b
o c
o d
s 1
s 2
s 3
s 4
Capacity constraints:
(Note: is row j column i of the matrix).
Every order goes on exactly 1 slab
O [ i,j ]= 1 iff order i is placed on slab j.
Red Green Blue Orange
s 1
s 2
s 3
s 4
Colour constraints
2
3
1 1 1 1 1
2
1
o a
o b
o c
o d
o e
o f
o g
o h
o i
o a
o b
o c
o d
o e
o f
o g
o h
o i
s 1
0 0 0 0 0 0 1 1 1
s 2
1 0 1 0 0 0 0 0 0
s 3
0 1 0 0 0 0 0 0 0
s 4
0 0 0 1 1 1 0 0 0
… 0 0 0 0 0 0 0 0 0
Red Green Blue Orange Brown
s 1
0 0 0 1 1
s 2
1 1 0 0 0
s 3
0 1 0 0 0
s 4
0 0 1 1 0
… 0 0 0 0 0
s[1] ≥ s[2] , s[2] ≥ s[3] , …
i
i
smallest size able to hold it.
optimisation variable.
is the worst of these cases.