CP Summer School 2008 1
Modelling for Constraint Modelling for Constraint Programming Programming
Barbara Smith
- 3. Symmetry, Viewpoints
Modelling for Constraint Modelling for Constraint Programming - - PowerPoint PPT Presentation
Modelling for Constraint Modelling for Constraint Programming Programming Barbara Smith 3. Symmetry, Viewpoints 1 CP Summer School 2008 Symmetry in CSPs Symmetry in CSPs A symmetry transforms any solution into another Sometimes
CP Summer School 2008 1
CP Summer School 2008 2
CP Summer School 2008 3
CP Summer School 2008 4
1 1 10 1 1 6 1 1 8 1 1 4 1
1 1 1
1 1
1 1 1
1 1 1
9 7 5 3 2 1 cars 2 2 2 2 1 1
1
1 1 1
1 1
1 1 1
1 1 1
6 5 4 3 2 1 classes
between cars requiring the same option
ensure the right number
CP Summer School 2008 5
0 otherwise.
and the players themselves
CP Summer School 2008 6
1,...,8 have an empty intersection
common
CP Summer School 2008 7
CP Summer School 2008 8
1,100 Pilchard 800 Chicken 500 Pilchard Twin 500 Chicken Twin 260 Tuna 255 Rabbit 250 Liver Order (1000s) Flavour
CP Summer School 2008 9
1,100 Pilchard 800 Chicken 500 Pilchard Twin 500 Chicken Twin 260 Tuna 255 Rabbit 250 Liver Order (1000s) Flavour
CP Summer School 2008 10
CP Summer School 2008 11
from the other
search variables
CP Summer School 2008 12
CP Summer School 2008 13
CP Summer School 2008 14
CP Summer School 2008 15
rows
CP Summer School 2008 16
in square i is j
CP Summer School 2008 17
square in row i and column j, 0 otherwise
CP Summer School 2008 18
the order is made) a stack is created for that customer
made, the stack is closed
number of customer orders that are in simultaneous production, should be minimized
CP Summer School 2008 19
1 1 customer 4 1 1 1 customer 3 1 1 1 1 customer 2 1 1 customer 1 6 5 4 3 2 1 products 1 1 1 6 1 4 1 1 customer 4 1 customer 3 1 1 1 customer 2 1 customer 1 5 3 2 1 products
CP Summer School 2008 20
customer 1 or 4 next (or both)
1 1 customer 4 1 1 1 customer 3 1 1 1 1 customer 2 1 1 customer 1 6 5 4 3 2 1 products
CP Summer School 2008 21
location
share a stack location
CP Summer School 2008 22