1 Restart search techniques for Employee Timetabling Problems Amnon Meisels And Eliezer Kaplansky Ben-Gurion University.

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Heuristic Search techniques
Local Search Jim Little UBC CS 322 – CSP October 3, 2014 Textbook §4.8
Constraint Satisfaction Problems
CompAPO: A complete version of the APO Algorithm Tal Grinshpoun and Amnon Meisels Department of Computer Science Ben-Gurion University of the Negev.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 CMSC 471 Fall 2002 Class #6 – Wednesday, September 18.
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
Michele Samorani Manuel Laguna. PROBLEM : In meta-heuristic methods that are based on neighborhood search, whenever a local optimum is encountered, the.
1 Backdoor Sets in SAT Instances Ryan Williams Carnegie Mellon University Joint work in IJCAI03 with: Carla Gomes and Bart Selman Cornell University.
Review: Constraint Satisfaction Problems How is a CSP defined? How do we solve CSPs?
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
Constraint Systems Laboratory Oct 21, 2004Guddeti: MS thesis defense1 An Improved Restart Strategy for Randomized Backtrack Search Venkata P. Guddeti Constraint.
1 Chapter 5 Advanced Search. 2 Chapter 5 Contents l Constraint satisfaction problems l Heuristic repair l The eight queens problem l Combinatorial optimization.
Constraint Satisfaction CSE 473 University of Washington.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
Solvable problem Deviation from best known solution [%] Percentage of test runs ERA RDGR RGR LS Over-constrained.
Constraint Satisfaction Problems
Hierarchical Constraint Satisfaction in Spatial Database Dimitris Papadias, Panos Kalnis And Nikos Mamoulis.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
1 Backdoors To Typical Case Complexity Ryan Williams Carnegie Mellon University Joint work with: Carla Gomes and Bart Selman Cornell University.
Chapter 5 Outline Formal definition of CSP CSP Examples
Constraint Satisfaction Problems
Constraint Satisfaction Problems
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
Local Search Algorithms This lecture topic Chapter Next lecture topic Chapter 5 (Please read lecture topic material before and after each lecture.
CSPs Tamara Berg CS Artificial Intelligence Many slides throughout the course adapted from Svetlana Lazebnik, Dan Klein, Stuart Russell, Andrew.
Constraint Satisfaction Problems Chapter 6. Review Agent, Environment, State Agent as search problem Uninformed search strategies Informed (heuristic.
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
Stocs – A Stochastic CSP Solver Bella Dubrov IBM Haifa Research Lab © Copyright IBM.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
Heavy-Tailed Phenomena in Satisfiability and Constraint Satisfaction Problems by Carla P. Gomes, Bart Selman, Nuno Crato and henry Kautz Presented by Yunho.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Searching by Constraint CMSC Artificial Intelligence January 24, 2008.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
Chapter 5: Constraint Satisfaction ICS 171 Fall 2006.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Fall 2006 Jim Martin.
CAS 721 Course Project Implementing Branch and Bound, and Tabu search for combinatorial computing problem By Ho Fai Ko ( )
Schreiber, Yevgeny. Value-Ordering Heuristics: Search Performance vs. Solution Diversity. In: D. Cohen (Ed.) CP 2010, LNCS 6308, pp Springer-
Local Search and Optimization Presented by Collin Kanaley.
Principles of Intelligent Systems Constraint Satisfaction + Local Search Written by Dr John Thornton School of IT, Griffith University Gold Coast.
Quality of LP-based Approximations for Highly Combinatorial Problems Lucian Leahu and Carla Gomes Computer Science Department Cornell University.
M Tech Project – First Stage Improving Branch-And-Price Algorithms For Solving 1D Cutting Stock Problem Soumitra Pal [ ]
A General Introduction to Artificial Intelligence.
1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3 Grand Challenge:
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
Performance of Distributed Constraint Optimization Algorithms A.Gershman, T. Grinshpon, A. Meisels and R. Zivan Dept. of Computer Science Ben-Gurion University.
1. 2 Outline of Ch 4 Best-first search Greedy best-first search A * search Heuristics Functions Local search algorithms Hill-climbing search Simulated.
Local Search. Systematic versus local search u Systematic search  Breadth-first, depth-first, IDDFS, A*, IDA*, etc  Keep one or more paths in memory.
Production Scheduling Lorena Kawas lk2551 Raul Galindo rg2802.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
Constraint Propagation Artificial Intelligence CMSC January 22, 2002.
Shortcomings of Traditional Backtrack Search on Large, Tight CSPs: A Real-world Example Venkata Praveen Guddeti and Berthe Y. Choueiry The combination.
Constraints Satisfaction Edmondo Trentin, DIISM. Constraint Satisfaction Problems: Local Search In many optimization problems, the path to the goal is.
Local search algorithms In many optimization problems, the path to the goal is irrelevant; the goal state itself is the solution State space = set of "complete"
 Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems n Introduction.
Computer Science cpsc322, Lecture 14
Constraint Propagation
Nurse Scheduling Problems
Artificial Intelligence
Incorporating Constraint Checking Costs in Constraint Satisfaction Problem Suryakant Sansare.
Constraints and Search
Constraint satisfaction problems
Constraint Satisfaction Problems. A Quick Overview
CS 8520: Artificial Intelligence
Constraint Satisfaction Problems
Constraint satisfaction problems
Presentation transcript:

1 Restart search techniques for Employee Timetabling Problems Amnon Meisels And Eliezer Kaplansky Ben-Gurion University

2 Employee Timetabling Problems. ETPs as Constraint Networks Finding solutions to CNs Complete search algorithm Local search Impact of randomization: The IRA Algorithm  A dramatic impact Applying Learning Techniques

3 Employee Timetabling Problems Employee Timetabling Problems Different types of employees. Assigned to many different shifts per day and week. Shifts can have many start and end times. Shifts are composed of different tasks. Employees have to be assigned to shifts over the week so that all the required tasks are fulfilled. Assignment satisfy employees personal preferences (rather than perfectly predictable long-term cyclic rosters)

4 Example ETP Example ETP Timetabling nurses in a ward in a large hospital Each nurse is assigned 3-5 shifts per week. Wards have ~30 nurses. Typical daily shifts: morning, evening, night. Weekends have some special shifts. Each nurse has a list of preferred shifts for each week and a list of forbidden shifts, due to her personal constraints. Problem size ~100 weekly assignments.

5 Constraint satisfaction problem (CSP) CSP is defined over a constraint network (CN). CN consists of a finite set of variables, each associated with a domain of values, and a set of constraints. A solution is an assignment of a value to each variable from its domain such that all the constraints are satisfied. A well-known example of a constraint satisfaction problem is k-colorability

6 ETPs as Constraint Networks Variables are shift-task pairs. Employees are the assigned values Ei. Unavailabilities remove values from domains. Conflicts are binary constraints. Limits on number of assignments, either general or specific, are cumulative constraints (i.e. non-binary). Large real-world ETPs have hundreds of variables and hundreds of binary constraints and limits. Domain sizes can be large (tens of employees).

7 ETPs - Constraints ETPs - Constraints Requirements: Shifts need a required number of assigned employees to each of their tasks -- Two Senior_Nurses in Morning_Shifts Ability: Employees are assigned to tasks, according to their abilities -- Certified nurses can’t be assigned to Head_Nurse Availability: Personal preferences of employees restrict their assignment to only a subset of shifts -- Senior doctors are not assigned to Friday_Shifts

8 ETPs - Constraints (II) ETPs - Constraints (II) Conflicts: Employees cannot be assigned to two conflicting shifts -- No Morning_Shift following a Night_Shift Workload: There are bounds on the number of tasks assigned to each employee -- Maximum 10 hours a day, 40 hours per week Regulations: Certain limits are imposed on the number of specific tasks assigned to employee -- at most 3 Night_Shifts in 2 weeks

9 An assignment table Rows for employees. Columns for shifts. Assigned values are tasks

10 Finding solutions to CNs Complete search algorithm - backtracking Local search

11 Complete Search on CNs Complete search algorithm – backtracking Complete search algorithm – backtracking Problem difficulty varies widely Intelligent backtracking methods perform well Heuristics (i.e. variable-ordering) have a strong impact Even small sized problems can be practically unsolvable. Meaningful parameters for discerning problem difficulty are hard to find

12 Local search Form a search space from all possible assignment states. Move on this space, guided by a cost function, attempting to improve the current state. Local search algorithms move locally, in a limited neighborhood (limited moves). Stop if a goal state has been reached or if some criterion on iterations/improvements holds. For pure search problems the cost function can be the number of constraints violations and the goal has cost 0.

13 Boosting Combinatorial Search Through Randomization Carla P. Gomes Cornell University Running the search up to a certain cutoff point and then restarting at the root of the tree. It can be advantageous to terminate searches which appear to be "stuck", exploring a part of the space far from a solution.

14 Cutoff value ??? The best available strategy is a trial-and-error process, where one experiments with various cutoff values (Gomes). Starting at relatively low values, since the optimal cutoff for these problems tends to lie below the median value of the distribution (Gomes) Iterative cutoff improvement While guaranteed to find a solution, if one exist, utilize randomization to climb out of local minima By searching systematically through cutoff space, make the randomized technique into a complete search.

15 Iterative Restart Algorithm - IRA Set an initial value S to the "cutoff" parameter C. Repeat for N times. Run A for a fixed number of C backtracks. If A finds a solution or proves it does not exist, then stop. Otherwise, restart A from the beginning, using an independent random seed, for another C backtrack. Multiply C by F.

16 Preliminary experiments Preliminary experiments Our base line was the best performing backtracking algorithm: Forwards Checking & Conflict-Directed Back Jumping (FC-CBJ) In our preliminary experiments, we compare the number of constraints checks the solver executes for different cutoff parameters.

17 The test problem We randomly generate test problems by adding or removing personal constrains. We use a real world ETP problem: Timetabling of nurses in a large Israeli hospital. all our test problems are solvable. We make sure that all our test problems are solvable.

18 Difficulty vs. Personal constraints (FC – CBJ)

19 Systematic randomization Introducing systematic randomization into complete search algorithms, by selecting a cutoff value and running restart search. Low enough cutoff values dramatically decrease the running time of the complete search The effect is consistent across a large range of constraints density The same set of test problems are now solved faster than (pure) FC - CBJ (by 4 orders of magnitude)

20 Impact of randomization

21 Applying Learning Techniques A learning paradigm monitors the search pattern of the solver and records specific parameters of the search IRA - Main parameters of IRA - The number of backtracks performed before restarting the search: The cutoff parameter C. How many times to restart before we increase the cutoff parameter: The N parameter. By what factor to increase the cutoff parameter: The F parameter.

22 The IRA Matrix * Number of tries before increasing Form a matrix of these two parameters and record the search effort for a given problem Matrices for problem class “representatives”.. * Cutoff starting value The other two parameters are: Fix the multiplication factor F of the cutoff parameter at 2

23 Example of IRA Matrix

24 Pattern of IRA Matrix Pattern of IRA Matrix

25 Adaptive Solver Find classifying parameters of problems – domain-size; density of constraints; tightness of limits; number of employees; abilities; Accumulate data on search parameters (IRA matrix) Search for repeating patterns of success Tune-up the solver by setting the search parameters to fit problem-class Recognize the correlations of problem-classifying parameters with search parameters

26 Preliminary Conclusions IRA matrix looks promising for small values, for both rows and columns for some problem classes, RS is better than hill-climbing very effectiveETPs Restart (complete) search is very effective on ETPs very low cutoff values seem to perform best (Gomes)