symmetries
play

Symmetries Marco Chiarandini Department of Mathematics & - PowerPoint PPT Presentation

DM826 Spring 2014 Modeling and Solving Constrained Optimization Problems Lecture 13 Symmetries Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark [ Slides by Marco Kuhlmann, Guido Tack and


  1. DM826 – Spring 2014 Modeling and Solving Constrained Optimization Problems Lecture 13 Symmetries Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark [ Slides by Marco Kuhlmann, Guido Tack and Luca Di Gaspero ]

  2. Resume Modelling in IP and CP Global constraints Local consistency notions Filtering algorithms for global constraints Scheduling Search Set variables Symmetries 2

  3. Outline 1. Symmetries in CSPs 2. Group theory 3. Avoiding symmetries ...by Reformulation ...by static Symmetry Breaking ...during Search ...by Dominance Detection (SBDD) 3

  4. Symmetries Example P = � x i ∈ { 1 . . . 3 } , ∀ i = 1 , . . . 3 ; C ≡ x 1 = x 2 + x 3 � Solutions: ( 2 , 1 , 1 ) , ( 3 , 1 , 2 ) , ( 3 , 2 , 1 ) . Because of the symmetric nature of the plus operator, swapping the values of x 2 and x 3 gives raise to equivalent solutions. Many constraint satisfaction problem models have symmetries (some examples in a few slides) Breaking symmetry reduces search by avoiding to explore equivalent states (half of the search tree in the previous case) Inducing a preference on a (possibly singleton) subset of each solution equivalence class 4

  5. Symmetry Example: Social Golfer Problem Problem statement Given g groups of p golf players, and w weeks. All players plays once a week, and we do not want that two player play in the same group more than once. A possible model considers a three-dimensional matrix X ijk i ∈ { 1 , . . . , w } , j ∈ { 1 , . . . , g } , k ∈ { 1 , . . . p } of integer variables { 1 , . . . g × p } representing the player playing as k -th player during week i in group j . 5

  6. Symmetry Example: Social Golfer Problem group 1 group 2 group 3 group 4 group 5 week 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 week 2 0 3 6 1 4 9 2 7 12 5 10 13 8 11 14 week 3 0 4 13 1 3 11 2 6 10 5 8 12 7 9 14 week 4 0 5 14 1 10 12 2 3 8 4 7 11 6 9 13 week 5 0 7 10 1 8 13 2 4 14 3 9 12 5 6 11 week 6 0 8 9 1 5 7 2 11 13 3 10 14 4 6 12 week 7 0 11 12 1 6 14 2 5 9 3 7 13 4 8 10 6

  7. Symmetry Example: Social Golfer Problem Permuting position in group group 1 group 2 group 3 group 4 group 5 week 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 week 2 0 3 6 1 4 9 2 7 12 5 10 13 8 11 14 week 3 0 4 13 1 3 11 2 6 10 5 8 12 7 9 14 week 4 0 5 14 1 10 12 2 3 8 4 7 11 6 9 13 week 5 0 7 10 1 8 13 2 4 14 3 9 12 5 6 11 week 6 0 8 9 1 5 7 2 11 13 3 10 14 4 6 12 week 7 0 11 12 1 6 14 2 5 9 3 7 13 4 8 10 7

  8. Symmetry Example: Social Golfer Problem Permuting position in group group 1 group 2 group 3 group 4 group 5 week 1 2 1 0 3 4 5 6 7 8 9 10 11 12 13 14 week 2 6 3 0 1 4 9 2 7 12 5 10 13 8 11 14 week 3 13 4 0 1 3 11 2 6 10 5 8 12 7 9 14 week 4 14 5 0 1 10 12 2 3 8 4 7 11 6 9 13 week 5 10 7 0 1 8 13 2 4 14 3 9 12 5 6 11 week 6 9 8 0 1 5 7 2 11 13 3 10 14 4 6 12 week 7 12 11 0 1 6 14 2 5 9 3 7 13 4 8 10 8

  9. Symmetry Example: Social Golfer Problem Permuting groups group 1 group 2 group 3 group 4 group 5 week 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 week 2 0 3 6 1 4 9 2 7 12 5 10 13 8 11 14 week 3 0 4 13 1 3 11 2 6 10 5 8 12 7 9 14 week 4 0 5 14 1 10 12 2 3 8 4 7 11 6 9 13 week 5 0 7 10 1 8 13 2 4 14 3 9 12 5 6 11 week 6 0 8 9 1 5 7 2 11 13 3 10 14 4 6 12 week 7 0 11 12 1 6 14 2 5 9 3 7 13 4 8 10 9

  10. Symmetry Example: Social Golfer Problem Permuting groups group 1 group 2 group 3 group 4 group 5 week 1 0 1 2 9 10 11 6 7 8 3 4 5 12 13 14 week 2 0 3 6 5 10 13 2 7 12 1 4 9 8 11 14 week 3 0 4 13 5 8 12 2 6 10 1 3 11 7 9 14 week 4 0 5 14 4 7 11 2 3 8 1 10 12 6 9 13 week 5 0 7 10 3 9 12 2 4 14 1 8 13 5 6 11 week 6 0 8 9 3 10 14 2 11 13 1 5 7 4 6 12 week 7 0 11 12 3 7 13 2 5 9 1 6 14 4 8 10 10

  11. Symmetry Example: Social Golfer Problem Permuting weeks group 1 group 2 group 3 group 4 group 5 week 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 week 2 0 3 6 1 4 9 2 7 12 5 10 13 8 11 14 week 3 0 4 13 1 3 11 2 6 10 5 8 12 7 9 14 week 4 0 5 14 1 10 12 2 3 8 4 7 11 6 9 13 week 5 0 7 10 1 8 13 2 4 14 3 9 12 5 6 11 week 6 0 8 9 1 5 7 2 11 13 3 10 14 4 6 12 week 7 0 11 12 1 6 14 2 5 9 3 7 13 4 8 10 11

  12. Symmetry Example: Social Golfer Problem Permuting weeks group 1 group 2 group 3 group 4 group 5 week 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 week 2 0 7 10 1 8 13 2 4 14 3 9 12 5 6 11 week 3 0 4 13 1 3 11 2 6 10 5 8 12 7 9 14 week 4 0 5 14 1 10 12 2 3 8 4 7 11 6 9 13 week 5 0 3 6 1 4 9 2 7 12 5 10 13 8 11 14 week 6 0 8 9 1 5 7 2 11 13 3 10 14 4 6 12 week 7 0 11 12 1 6 14 2 5 9 3 7 13 4 8 10 12

  13. Symmetry Example: Social Golfer Problem Permuting players group 1 group 2 group 3 group 4 group 5 week 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 week 2 0 3 6 1 4 9 2 7 12 5 10 13 8 11 14 week 3 0 4 13 1 3 11 2 6 10 5 8 12 7 9 14 week 4 0 5 14 1 10 12 2 3 8 4 7 11 6 9 13 week 5 0 7 10 1 8 13 2 4 14 3 9 12 5 6 11 week 6 0 8 9 1 5 7 2 11 13 3 10 14 4 6 12 week 7 0 11 12 1 6 14 2 5 9 3 7 13 4 8 10 13

  14. Symmetry Example: Social Golfer Problem Permuting players group 1 group 2 group 3 group 4 group 5 week 1 0 1 2 3 4 5 6 9 8 7 10 11 12 13 14 week 2 0 3 6 1 4 7 2 9 12 5 10 13 8 11 14 week 3 0 4 13 1 3 11 2 6 10 5 8 12 9 7 14 week 4 0 5 14 1 10 12 2 3 8 4 9 11 6 7 13 week 5 0 9 10 1 8 13 2 4 14 3 7 12 5 6 11 week 6 0 8 7 1 5 9 2 11 13 3 10 14 4 6 12 week 7 0 11 12 1 6 14 2 5 7 3 9 13 4 8 10 14

  15. Symmetry Example: Social Golfer Problem Number of (equivalent) solutions: Permuting positions: 3 ! = 6 Permuting groups: 5 ! = 120 Permuting weeks: 7 ! = 5040 Permuting players: 15 ! = 1 , 307 , 674 , 368 , 000 15

  16. Symmetry Example: n -Queens id r90 r180 r270 y x d 1 d 2 16

  17. Symmetry Example: n -Queens Symmetric failure id r90 r180 r270 y x d 1 d 2 17

  18. Symmetries: general considerations Widespread Inherent in the problem ( n -Queens, chessboard) Artefact of the model (Social Golfer: order of players in groups) Different types: variable symmetry (swapping variables) value symmetry (permuting values) 18

  19. Types of symmetries Variable symmetry: permuting variables is solution invariant { x i = v i } ∈ sol ( P ) ⇐ ⇒ { x σ ( i ) = v i } ∈ sol ( P ) Value symmetry: permuting values is solution invariant { x i = v i } ∈ sol ( P ) ⇐ ⇒ { x i = σ ( v i ) } ∈ sol ( P ) Variable/value symmetry: both variables and values permutation is solution invariant { x i = v i } ∈ sol ( P ) ⇐ ⇒ { x σ 1 ( i ) = σ 2 ( v i ) } ∈ sol ( P ) 19

  20. Outline 1. Symmetries in CSPs 2. Group theory 3. Avoiding symmetries ...by Reformulation ...by static Symmetry Breaking ...during Search ...by Dominance Detection (SBDD) 20

  21. Group basics Group A set G and an associated operation ⊗ form a group if G is closed under ⊗ , i.e., a , b ∈ G ⇒ a ⊗ b ∈ G ⊗ is associative, i.e., a , b , c ∈ G ⇒ ( a ⊗ b ) ⊗ c = a ⊗ ( b ⊗ c ) G has an identity ι G , such that a ∈ G ⇒ a ⊗ ι G = ι G ⊗ a = a every element has an inverse, i.e., a ∈ G ⇒ ∃ a − 1 a ⊗ a − 1 = a − 1 ⊗ a = ι G The set of permutations forms a group, together with concatenation. 21

  22. Generators Generators A set S ⊆ G is called a generator of group G iff ∀ g ∈ G ∃ S ′ ⊆ Sg = � s s ∈ S ′ Generators describe groups in a compact form. For example: symmetries of a square { r 90 , d 1 } permutations of { 1 , . . . , n } : { ( 123 . . . n ) , ( 12 ) } 22

  23. Orbits Orbits The orbit of an element with respect to a permutation group G is O G ( g ) = { σ ( g ) | σ ∈ G } The orbit of a set of elements (called also points) is defined accordingly. Orbits are the set of elements encountered by starting from one element and moving through different permutations. 23

  24. Outline 1. Symmetries in CSPs 2. Group theory 3. Avoiding symmetries ...by Reformulation ...by static Symmetry Breaking ...during Search ...by Dominance Detection (SBDD) 24

  25. How to avoid symmetry Never explore a state that is the symmetric of one already explored Model reformulation Addition of constraints (static symmetry breaking) During search (dynamic symmetry breaking) By dominance detection (dynamic symmetry breaking) 25

  26. Model reformulation Use set variables (inherently unordered) In the Social Golfers example: groups can be represented as sets Only within group symmetry has been removed, but no the groups/weeks/player ones Solve a different problem (try to redefine the problem avoiding symmetries) Solve the dual problem 27

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend