1 Constraint-based Round Robin Tournament Planning Martin Henz National University of Singapore.

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems Russell and Norvig: Parts of Chapter 5 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2004/home.htm Prof: Dekang.
Advertisements

1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Michael Trick Tepper School, Carnegie Mellon Combinatorial Benders’ Cuts for Sports Scheduling Optimization.
Constraint Processing and Programming Introductory Exemple Javier Larrosa.
Hospital placements allocation Stephen Cresswell and Lee McCluskey.
Lake Highlands Soccer Association Game Scheduling Sherif Khalifa Senior Design Project May 9, 2008.
Parallel Scheduling of Complex DAGs under Uncertainty Grzegorz Malewicz.
Best-First Search: Agendas
1 Constraint-based Round Robin Tournament Planning Martin Henz National University of Singapore.
Sports Scheduling An Assessment of Various Approaches to Solving the n-Round Robin Tournament Noren De La Rosa Mallory Ratajewski.
Augoust /47 Heuristics for the Mirrored Traveling Tournament Problem Celso C. RIBEIRO Sebastián URRUTIA.
PERL 105 Practicum: Scheduling Session. Factors to Consider Availability of space Availability of space Facility (size and suitability) Facility (size.
May 2004 Minimizing travels by maximizing breaks1/32 Minimizing Travels by Maximizing Breaks in Round Robin Tournament Schedules Celso RIBEIRO UFF and.
Modular Answer Set Programming. Introduction One common answer set programming (ASP) methodology is to: Encode the problem Enumerate possible solutions.
Sports Scheduling and the “Real World” Michael Trick Carnegie Mellon University May, 2000.
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) February, 3, 2010.
Alan M. Frisch Artificial Intelligence Group Department of Computer Science University of York Extending the Reach of Constraint Technology through Reformulation.
CPSC 322, Lecture 13Slide 1 CSPs: Arc Consistency & Domain Splitting Computer Science cpsc322, Lecture 13 (Textbook Chpt 4.5,4.8) February, 02, 2009.
© J. Christopher Beck Lecture 20: Sports Scheduling.
Heuristics for the MTTPROADEF, February /49 Heuristics for the Mirrored Traveling Tournament Problem Celso C. RIBEIRO Sebastián URRUTIA.
1 Backdoors To Typical Case Complexity Ryan Williams Carnegie Mellon University Joint work with: Carla Gomes and Bart Selman Cornell University.
Modeling the Covering Test Problem Brahim Hnich, Steven Prestwich, and Evgeny Selensky Cork Constraint Computation Center UCC Supported by SFI.
Copyright © Cengage Learning. All rights reserved. CHAPTER 11 ANALYSIS OF ALGORITHM EFFICIENCY ANALYSIS OF ALGORITHM EFFICIENCY.
1 ES 314 Advanced Programming Lec 2 Sept 3 Goals: Complete the discussion of problem Review of C++ Object-oriented design Arrays and pointers.
Global Constraints for Lexicographic Orderings Alan Frisch, Ian Miguel (University of York) Brahim Hnich, Toby Walsh (4C) Zeynep Kiziltan (Uppsala University)
1 Combinatorial Problems in Cooperative Control: Complexity and Scalability Carla Gomes and Bart Selman Cornell University Muri Meeting March 2002.
Using Use Case Scenarios and Operational Variables for Generating Test Objectives Javier J. Gutiérrez María José Escalona Manuel Mejías Arturo H. Torres.
 Attendance5 min  Week 2 information updates2 min  $15 class fee, room parent  Quick review of assessment2 min  Grading policy  Test taking strategies6.
International sporting events world championships Football Rugby – 1987 wwec Cricket Athletics Formula one
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
An Overview of Constraint Programming MSORM 2000 Tutorial November 20/21, 2000 Martin Henz, National University of Singapore.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Constraint Satisfaction Problem:  Used to model constrained combinatorial problems  Important real-world applications: hardware & software verification,
Example 15.1 Daily Scheduling of Postal Employees Workforce Scheduling Models.
Event Scheduling Using Constraint Programming November 22, 2002 Martin Henz, School of Computing, NUS
© J. Christopher Beck Lecture 13: Modeling in Constraint Programming.
© J. Christopher Beck Lecture 21: Sports Scheduling 1.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
A Second Look at Constraint Programming February 17/18, 2000.
Reference points for comparison and measurement. Brute Force.
Sports Scheduling Written by Kelly Easton, George Nemhauser, Michael Trick Presented by Matthew Lai.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Fall 2006 Jim Martin.
December 2003 Traveling tournament problem1/57 Heuristics for the Traveling Tournament Problem: Scheduling the Brazilian Soccer Championship Celso C. RIBEIRO.
ECE450 - Software Engineering II1 ECE450 – Software Engineering II Today: Design Patterns VIII Chain of Responsibility, Strategy, State.
Solving Problems by searching Well defined problems A probem is well defined if it is easy to automatically asses the validity (utility) of any proposed.
Constraints and Search Toby Walsh Cork Constraint Computation Centre (4C) Logic & AR Summer School, 2002.
Quality of LP-based Approximations for Highly Combinatorial Problems Lucian Leahu and Carla Gomes Computer Science Department Cornell University.
© J. Christopher Beck Lecture 21: IP and CP Models for Sports Scheduling.
1 An Arc-Path Model for OSPF Weight Setting Problem Dr.Jeffery Kennington Anusha Madhavan.
G51IAI Introduction to Artificial Intelligence
PROBLEM-SOLVING TECHNIQUES Rocky K. C. Chang November 10, 2015.
Robust Planning using Constraint Satisfaction Techniques Daniel Buettner and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
Assigning Judges to Competitions Using Tabu Search Approach Amina Lamghari Jacques A. Ferland Computer science and OR dept. University of Montreal.
10.3 Reformulation The Lex-Leader Method Shant Karakashian 1.
The Double Elimination Tournament. Purpose: All contestants remain in championship contention until they lose two games Advantages: A player or team must.
MgtOp 470—Business Modeling with Spreadsheets Professor Munson Topic 10 Analytics in Sports.
Tools and Techniques Sports and Athletics Focus on the Competitive Format.
Computer Science cpsc322, Lecture 13
MgtOp 470—Business Modeling with Spreadsheets Professor Munson
CS 188: Artificial Intelligence
Computer Science cpsc322, Lecture 13
Constraint satisfaction problems
Generic SBDD using Computational Group Theory
Major Design Strategies
Area Coverage Problem Optimization by (local) Search
Constraint satisfaction problems
Major Design Strategies
Ponder policy toolkit Jovana Balkoski, Rashid Mijumbi
Presentation transcript:

1 Constraint-based Round Robin Tournament Planning Martin Henz National University of Singapore

2 Round Robin Tournament Planning Problems n teams, each playing a fixed number of times r against every other team r = 1: single, r = 2: double round robin. each match is home match for one and away match for the other dense round robin: –At each date, each team plays at most once. –The number of dates is minimal.

3 Example: The ACC 1997/98 Problem 9 teams participate in tournament dense double round robin: –there are 2 * 9 dates –at each date, each team plays either home, away or has a “bye” alternating weekday and weekend matches Nemhauser, Trick; Scheduling a Major College Basketball Conference; Operations Research, 46(1), 1998.

4 The ACC 1997/98 Problem (cont’d) No team can play away on both last dates No team may have more than two away matches in a row. No team may have more than two home matches in a row. No team may have more than three away matches or byes in a row. No team may have more than four home matches or byes in a row.

5 The ACC 1997/98 Problem (cont’d) Of the weekends, each team plays four at home, four away, and one bye. Each team must have home matches or byes at least on two of the first five weekends. Every team except FSU has a traditional rival. The rival pairs are Clem-GT, Duke-UNC, UMD- UVA and NCSt-Wake. In the last date, every team except FSU plays against its rival, unless it plays against FSU or has a bye.

6 The ACC 1997/98 Problem (cont’d) The following pairings must occur at least once in dates 11 to 18: Duke-GT, Duke-Wake, GT- UNC, UNC-Wake. No team plays in two consecutive dates away against Duke and UNC. No team plays in three consecutive dates against Duke UNC and Wake. UNC plays Duke in last date and date 11. UNC plays Clem in the second date. Duke has bye in the first date 16.

7 The ACC 1997/98 Problem (cont’d) Wake does not play home in date 17. Wake has a bye in the first date. Clem, Duke, UMD and Wake do not play away in the last date. Clem, FSU, GT and Wake do not play away in the fist date. Neither FSU nor NCSt have a bye in the last date. UNC does not have a bye in the first date.

8 Preferences Nemhauser and Trick give a number of additional preferences. However, it turns out that there are only 179 solutions to the problem. If you find all 179 solutions, you can easily single out the most preferred ones.

9 Nemhauser/Trick Solution enumerate home/away/bye patterns –explicit enumeration (very fast) compute pattern sets –integer programming (below 1 minute) compute abstract schedules –integer programming (several minutes) compute concrete schedules –explicit enumeration (approx. 24 hours) Schreuder, Combinatorial Aspects of Construction of Competition Dutch Football Leagues, Discr. Appl. Math, 35: , 1992.

10 Modeling ACC 97/98 as Constraint Satisfaction Problem Variables 9 * 18 variables taking values from {0,1} that express which team plays home when. Example: H UNC, 5 =1 means UNC plays home on date 5. away, bye similar, e.g. A UNC, 5 or B UNC, 5 9 * 18 variables taking values from {0,1,...,9} that express against which team which other team plays. Example:  UNC, 5 =1 means UNC plays team 1 (Clem) on date 5

11 Modeling ACC 97/97 as Constraint Satisfaction Problem (cont’d) Constraints Example: No team plays away on both last dates. A Clem,17 + A Clem,18 < 2, A Duke,17 + A Duke,18 < 2,... All constraints can be easily formalized in this manner.

12 Constraint Programming Approach for Solving CSP “Propagate and Distribute” store possible values of variables in constraint store encode constraints as computational agents that strengthen the constraint store whenever possible compute fixpoint over propagators distribute: divide and conquer, explore search tree

13 Search Strategies: Naive Approach Enumerate variables in one way or another. Any direct enumeration approach fails miserably. Reason: not enough propagation  too large search space

14 First Step: Back to Nemhauser/Trick! constraint programming for generating all patterns. –CSP representation straightforward. –computing time below 1 second (Pentium II, 233MHz) constraint programming for generating all pattern sets. –CSP representation straightforward. –computing time 3.1 seconds

15 Back to Schreuder constraint programming for abstract schedules –Introduce variable matrix for “abstract opponents” similar to  in naïve model –there are many abstract schedules –runtime over 20 minutes constraint programming for concrete schedules –model somewhat complicated, using two levels of the “element” constraint –runtime several minutes

16 Cain’s Model Alternative to last two phases of Nemhauser/Trick assign teams to patterns in a given pattern set. assign opponent teams for each team and date. W.O. Cain, Jr, The computer-assisted heuristic approach used to schedule the major league baseball clubs, Optimal Strategies in Sports, North-Holland, 1977

17 Dates Pattern 1H A B A H B Pattern 2B H A B A H Pattern 3A B H H B A Cain 1977 Schreuder 1992 Dates DynamoH A B A H B SpartaB H A B A H Vitesse A B H H B A Dates Team 1 3H 2A B 3A 2H B Team 2 B 1H 3A B 1A 3H Team 3 1A B 2H 1H B 2A Dates DynamoVH SA B VA SH B SpartaB DH VA B DA VH Vitesse DA B VH DH B VA

18 Cain’s Model in CP: main idea remember: matrices H, A, B represent patterns and matrix  represents opponents given: matrices H, A, B of 0/1 variables representing given pattern set. vector p of variables ranging from 1 to n; p GT identifies the pattern for team GT. team GT plays according to pattern indicated by p on date 2: H p GT,2 = H GT,2 implemented: element(p GT,H 2, H GT,2 )

19 Using Cain’s Model in CP model for Cain simpler than model for Schreuder runtimes: –patterns to teams: 33 seconds –opponent team assignment: 20.7 seconds –overall runtime for all 179 solutions: 57.1 seconds Details in: Martin Henz, Scheduling a Major College Basketball Conference - Revisited, Operations Research, 2000, to appear

20 Friar Tuck constraint programming tool for sport scheduling, ACC 97/98 just one instance convenient entry of constraints through GUI Friar Tuck is distributed under GPL Friar Tuck 1.1 available for Unix and Windows 95/98 implementation language: Oz using Mozart (see

21 Implementation of Friar Tuck special purpose editors for constraint entry access to all phases of the solution process choice between Schreuder’s and Cain’s methods computes schedules for over 30 teams some new results on number of schedules

22 Some Users of Friar Tuck West England Club Cricket Championship Wisconsin Intercollegiate Athletic Conference Colonial Athletic Conference Bill George Youth Football League Euchre tournaments

23 Future Work better constraints for pattern set generation needed using local search for sport scheduling application specific modeling language for round robin tournaments

24 Conclusion finite domain constraint programming well suited for solving round robin tournament planning competing models have natural implementation using CP(FD) Friar Tuck: a tool for round robin tournament planning

25 Truth or Consequences, NM (a few miles north of Las Cruces)

26 Truth or Consequences, NM (a few miles north of Las Cruces)

27 ICLP 2001 Truth or Consequences, NM    