Nurse Rostering A Practical Case Greet Vanden Berghe KaHo Sint-Lieven, Gent, Belgium

Slides:



Advertisements
Similar presentations
Crew Pairing Optimization with Genetic Algorithms
Advertisements

Heuristic Search techniques
Population-based metaheuristics Nature-inspired Initialize a population A new population of solutions is generated Integrate the new population into the.
G5BAIM Artificial Intelligence Methods
Constraint Optimization We are interested in the general non-linear programming problem like the following Find x which optimizes f(x) subject to gi(x)
CS6800 Advanced Theory of Computation
1 An Adaptive GA for Multi Objective Flexible Manufacturing Systems A. Younes, H. Ghenniwa, S. Areibi uoguelph.ca.
1 Transportation problem The transportation problem seeks the determination of a minimum cost transportation plan for a single commodity from a number.
Multi-Objective Optimization NP-Hard Conflicting objectives – Flow shop with both minimum makespan and tardiness objective – TSP problem with minimum distance,
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
1 Restart search techniques for Employee Timetabling Problems Amnon Meisels And Eliezer Kaplansky Ben-Gurion University.
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Gizem ALAGÖZ. Simulation optimization has received considerable attention from both simulation researchers and practitioners. Both continuous and discrete.
Spie98-1 Evolutionary Algorithms, Simulated Annealing, and Tabu Search: A Comparative Study H. Youssef, S. M. Sait, H. Adiche
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
Optimization via Search CPSC 315 – Programming Studio Spring 2009 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
A Coordination Model for Distributed Personnel Planning Patrick De Causmaecker, Peter Demeester, Greet Vanden Berghe, Bart Verbeke
Evolutionary Computational Intelligence Lecture 8: Memetic Algorithms Ferrante Neri University of Jyväskylä.
D Nagesh Kumar, IIScOptimization Methods: M1L4 1 Introduction and Basic Concepts Classical and Advanced Techniques for Optimization.
Using Simulated Annealing and Evolution Strategy scheduling capital products with complex product structure By: Dongping SONG Supervisors: Dr. Chris Hicks.
Metaheuristics The idea: search the solution space directly. No math models, only a set of algorithmic steps, iterative method. Find a feasible solution.
Genetic Programming.
Slides are based on Negnevitsky, Pearson Education, Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming n Evolution.
IE 607 Constrained Design: Using Constraints to Advantage in Adaptive Optimization in Manufacturing.
Genetic Algorithm.
© Negnevitsky, Pearson Education, CSC 4510 – Machine Learning Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University.
Modeling and simulation of systems Simulation optimization and example of its usage in flexible production system control.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
© Negnevitsky, Pearson Education, Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming Evolution strategies Evolution.
Genetic algorithms Prof Kang Li
CS 484 – Artificial Intelligence1 Announcements Lab 3 due Tuesday, November 6 Homework 6 due Tuesday, November 6 Lab 4 due Thursday, November 8 Current.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Boltzmann Machine (BM) (§6.4) Hopfield model + hidden nodes + simulated annealing BM Architecture –a set of visible nodes: nodes can be accessed from outside.
HOW TO MAKE A TIMETABLE USING GENETIC ALGORITHMS Introduction with an example.
Optimization Problems - Optimization: In the real world, there are many problems (e.g. Traveling Salesman Problem, Playing Chess ) that have numerous possible.
Design of an Evolutionary Algorithm M&F, ch. 7 why I like this textbook and what I don’t like about it!
Introduction to GAs: Genetic Algorithms How to apply GAs to SNA? Thank you for all pictures and information referred.
© J. Christopher Beck Lecture 26: Nurse Scheduling.
Three personnel structure examinations for improving nurse roster quality Komarudin, G. Vanden Berghe, M.-A. Guerry, and T. De Feyter.
FINAL EXAM SCHEDULER (FES) Department of Computer Engineering Faculty of Engineering & Architecture Yeditepe University By Ersan ERSOY (Engineering Project)
A Hybrid Genetic Algorithm for the Periodic Vehicle Routing Problem with Time Windows Michel Toulouse 1,2 Teodor Gabriel Crainic 2 Phuong Nguyen 2 1 Oklahoma.
Effect of Modified Permutation Encoding Mutation in Genetic Algorithm Sandeep Bhowmik Archana Jha Sukriti Sinha Department of Computer Science & Engineering,
1 Short Term Scheduling. 2  Planning horizon is short  Multiple unique jobs (tasks) with varying processing times and due dates  Multiple unique jobs.
1 Contents 1. Statement of Timetabling Problems 2. Approaches to Timetabling Problems 3. Some Innovations in Meta-Heuristic Methods for Timetabling University.
© Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
Kanpur Genetic Algorithms Laboratory IIT Kanpur 25, July 2006 (11:00 AM) Multi-Objective Dynamic Optimization using Evolutionary Algorithms by Udaya Bhaskara.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Performance prediction for real world optimisation problems Tommy Messelis Stefaan Haspeslagh Burak Bilgin Patrick De Causmaecker Greet Vanden Berghe.
Systems design for scheduling: Open Tools Patrick De Causmaecker, Peter Demeester, Greet Vanden Berghe and Bart Verbeke KaHo Sint-Lieven, Gent, Belgium.
Preliminary Background Tabu Search Genetic Algorithm.
Chapter 5. Advanced Search Fall 2011 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Tommy Messelis * Stefaan Haspeslagh Burak Bilgin Patrick De Causmaecker Greet Vanden Berghe *
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Applications of Tabu Search OPIM 950 Gary Chen 9/29/03.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Evolution strategies and genetic programming
Nurse Scheduling Problems
Multi-Objective Optimization
EE368 Soft Computing Genetic Algorithms.
Boltzmann Machine (BM) (§6.4)
A Gentle introduction Richard P. Simpson
Population Based Metaheuristics
Presentation transcript:

Nurse Rostering A Practical Case Greet Vanden Berghe KaHo Sint-Lieven, Gent, Belgium

2 Introduction Nurse scheduling, employee timetabling, personnel rostering Problem in Belgian hospitals Approach –HARD CONSTRAINTS coverage (personnel demands per day per shift type and per skill category; minimum/preferred) –SOFT CONSTRAINTS time related constraints on the personal schedules Goal: schedule the resources to meet the hard constraints while aiming at a high quality result with respect to the soft constraints

3 Characteristics highly constrained often over constrained not suitable for OR methods ‘ cultural’ differences between countries the requirements of the hospitals in Belgium can not be met with a cyclical ‘three shift’ schedule the personnel prefer a schedule in which they can express their personal wishes and priorities ↔ cyclical schedule the problem is mainly tackled manually in practice heuristics: solutions in an acceptable calculation time –Variable neighbourhood search –Tabu search –Genetic & Memetic algorithms the algorithms presented in this lecture are developed for commercial nurse rostering software for Belgian hospitals: Plane

4

5 Requirements Functional requirements Conceptual consistency and continuity Graceful degradation Pertinent behaviour Explanatory power Extendibility Problem specific requirements Hard constraints Personnel requirements (minimum and preferred coverage) Skill category (non-hierarchical replacement organisation) Soft Constraints

6 Hospital constraints Minimum time between two assignments Allow use of an alternative skill category in certain situations Constraints defined by the work regulation Maximum number of assignments during planning period Minimum/maximum number of consecutive days Minimum/maximum number of hours worked Minimum/maximum number of consecutive free days Maximum number of assignments per day of the week Maximum number of assignments for each shift type Maximum number of a shift type per week Number of consecutive shift types Assign 2 free days after night shifts

7 Soft Constraints Assign complete weekends Assign identical shift types during the weekend Maximum number of consecutive working weekends Maximum number of working weekends in a 4-week period Maximum cumulative number of assignments on bank holidays Restriction on the succession of shift types Patterns enabling specific cyclic constraints Balancing the workload among personnel Personal constraints Day off / shifts off Requested assignments Tutorship (people not allowed to work alone) People not allowed to work together

8 Fitness Evaluation Method Modular Implementation Evaluation Explanatory Violated constraints Violation extent Easily extendible New constraints Extra features Modifiable Cost parameters Constraint values Considering previous planning period Low memory use Simultaneous calculations of different hospital wards Complex real world problems Fast Evolutionary algorithms Complex real world problems Simple evaluation algorithm 1 evaluation run per person and per iteration: independent of the number and type of soft constraints

9 General variables planning period (usually 4 weeks) = 28 days shift types, time units scheduled event, day off personnel members, skills

10 Real World Issues average 20 personnel members per ward 6 shift types 30 types of active constraints per person 100 evaluations of the cost function per iteration 300 iterations per minute on IBM RS6000 The evaluation function is also applicable to other timetabling and scheduling problems E.K. Burke, P. De Causmaecker, S. Petrovic, G. Vanden Berghe: Fitness Evaluation for Nurse Scheduling Problems, Proceedings of Congress on Evolutionary Computation, CEC2001, Seoul, IEEE Press, 2001,

11 Model for solving nurse scheduling problems

12 Consistency check Difficult to define the problem in a feasible way Assists personnel managers or head nurses to define feasible problems The procedure takes hard constraints and a selection of `precedence’ soft constraints: Personal requests (days/shifts off e.g. absence, illness) Personal requests (shifts) Patterns Detected infeasibilities: Too few skilled people available at a certain time Too many skilled people scheduled at a certain time Two strategies: Accept the fact that constraints will be violated Repair: make the personnel requirements feasible

13 Tools for varying needs Freezing parts of the planning period (people – time) Quick re-scheduling in emergency situations Scheduling some personnel members manually Formulating the personnel requirements in terms of time intervals (floating) instead of shift types Translate the time interval requirements in shift type requirements allow changes of shift type combinations during the search

14 Initialisation initial solution: feasible schedule, satisfying the hard constraints three strategies to start: Current schedule (when the requirements have changed after the schedule was made) Previous planning period (when the requirements and constraints are similar) Empty schedule (often most efficient choice) make the schedule feasible by randomly adding or removing duties for every category until the personnel requirements are met the first two start strategies seem very attractive but are not always interesting because they often start in a local minimum for the cost function

15 Pre- and post-planning options PRE-PLANNING set the hard constraints equal to: Preferred requirements Minimum requirements POST-PLANNING Add shift types towards the preferred requirements (only when minimum requirements were selected for the planning) Add shift types to reduce undertime (this option allows violations of hard constraints) Never add shift types for which the minimum requirements are 0 Never add night shifts

16 Planning options Quick planning applies basic algorithms for quickly generating an acceptable schedule Thorough planning applies hybrid algorithms with human-inspired improvement techniques Extra thorough planning with additional algorithms to solve replacement between skill categories

17 Solution Approaches algorithms are not made-to-measurealgorithms are not made-to-measure minimising the value of the cost function without awareness of the components of that cost functionminimising the value of the cost function without awareness of the components of that cost function steepest descentsteepest descent meta-heuristicsmeta-heuristics hybrid tabu search (with different neighbourhoods)hybrid tabu search (with different neighbourhoods) dynamically change the search heuristicsdynamically change the search heuristics address particular constraints on the problemaddress particular constraints on the problem keep the calculation time downkeep the calculation time down some of the neighbourhoods of previous approaches have been re-usedsome of the neighbourhoods of previous approaches have been re-used memetic, genetic, simulated annealing,…memetic, genetic, simulated annealing,…

18 Some Meta-heuristic approaches Hybrid tabu search algorithm implemented in the commercial software E.K. Burke, P. De Causmaecker, G. Vanden Berghe: A Hybrid Tabu Search Algorithm for the Nurse Rostering Problem, B. McKay et. al. (Eds.): Simulated Evolution and Learning, 1998, Lecture Notes in Artificial Intelligence, Vol. 1585, Springer, 1999, Memetic algorithms interesting results but too time consuming for implementation in practice E.K. Burke, P. Cowling, P. De Causmaecker, G. Vanden Berghe: A Memetic Approach to the Nurse Rostering Problem, Applied Intelligence special issue on Simulated Evolution and Learning, Vol. 15, Number 3, Springer, 2001,

19 Hybrid Tabu Search algorithm Tabu search algorithm –No violation of hard constraints during the search –Stop criterion Hybridisations –Applied in different neighbourhoods –Solving particular soft constraints

20

21 Single shift-day neighbourhood Simplest neighbourhood Position of one assignment differs Demonstration of a move MonTueWedThu Head Nurse DDDD Nurse A, HN EELL Nurse B NNN Nurse C NEE MonTueWedThu Head Nurse DDDD Nurse A, HN EELL Nurse B ENNN Nurse C NEE MonTueWedThu Head Nurse DDDD Nurse A, HN EELL Nurse B NNN Nurse C ENEE MonTueWedThu Head Nurse DDDD Nurse A, HN EDELL Nurse B NNN Nurse C NEE MonTueWedThu Head Nurse DDDD Nurse A, HN ENELL Nurse B NNN Nurse C NEE MonTueWedThu Head Nurse DDDD Nurse A, HN ENELL Nurse B NNN Nurse C NEE

22 Original tabu search algorithm a move takes an assigned shift type from one person to another on the same day the move is not allowed if –the person does not belong to the skill category of the duty –there is already an assignment for that shift type the hard constraints remain fulfilled by this kind of move iterative calculations in each new environment: –calculate the best possible move which is not forbidden by the tabu list (ignore the tabu list when the move leads to a better solution) –perform this move –add characteristics of the move to the tabu list the results are better than those of the steepest descent algorithm but they are not satisfactory in practice

23 Information for the tabu list

24 Some heuristics for the problem Soft constraint related neighbourhood: complete weekends the cost parameter of the soft constraint on complete weekends can be modified by the users but this constraint often causes problems –solve the constraint the hard way, without taking care of the other soft constraints Shuffle: solve the worst personal schedule –increase the quality of the worst personal schedule by exchanging a part of this schedule with a part of another person’s schedule Greedy shuffling: Model human-inspired scheduling techniques –calculate all shuffles for all the personnel in the schedule –list these moves (highest benefit of the cost function first) –perform as many moves as possible

25 Soft constraint related neighbourhoods weekend neighbourhood overtime-undertime alternative skills personal requests most violated constraint etc…

26 Swapping large sections of personal schedules shuffle neighbourhood MonTueWedThu Head Nurse DDDD Nurse A, HN EELL Nurse B NNN Nurse C NEE MonTueWedThu Head Nurse DDDD Nurse A, HN ENENLNL Nurse B ENENLN Nurse C NEE MonTueWedThu Head Nurse DDDD Nurse A, HN ENELL Nurse B ENNN Nurse C NEE MonTueWedThu Head Nurse DDDD Nurse A, HN EELNL Nurse B NNLNL Nurse C NEE

27 Swapping large sections of personal schedules (1) weekend shuffling FriSatSunMon Head Nurse DD Nurse A, HN EELL Nurse B NNN Nurse C NEE

28 Swapping large sections of personal schedules (2) greedy shuffling shuffling between all pairs of personal schedules shuffling length from 1 day till half the planning period Inspired by human improvements MonTueWedThu Head Nurse DDDD Nurse A, HN EELL Nurse B NNN Nurse C NEE

29 Swapping large sections of personal schedules (3) core shuffling greedy shuffling within greedy shuffling MonTueWedThu Head Nurse DDDD Nurse A, HN EELL Nurse B NNN Nurse C NEE MonTueWedThu Head Nurse DDDD Nurse A, HN ENELL Nurse B ENNNL Nurse C NEE

30 Tabu Search algorithm in the commercial software Quick planning –move –weekend step/shuffle –repeat until stop criterion is met Thorough planning –Quick planning –finally: greedy shuffle Extra thorough planning –thorough planning –restart with different planning order for the skill categories reliable solutions short calculation time quick check of the constraints high quality solutions the users evaluate the solutions often better than the cost function indicates schedules are hard to improve Excellent solution for bad skill category order Long calculation time

31 Test results hybrid tabu search Quick Thorough

32 Genetic and Memetic Algorithms GA (crossover - mutation) problem to find a genetic presentation of the problem so that ‘characteristics’ can be inherited memetic: steepest descent on each individual, random planning order of the qualifications hybrid memetic: tabu search (or hybrid tabu search) on each individual

33 Diagram of the genetic and memetic algorithms

34 Crossover - Mutation best personal schedule from each of the parents; random selection of the other personal schedules from the parents random selection of personal schedules from the parents select per person the best schedule from the parents select the best x events in the schedule select the best x events per person in the schedule first part of the planning period (before a day randomly chosen per person) from one parent, second part from the other parent... Always make the schedules feasible after recombination Explicit mutation: randomly changing the schedule between the minimum and the preferred number of personnel

35 Some examples of crossover operators for the nurse rostering problem Original Memetic Algorithm: M Steepest descent for each individual applies the `move’ discussed earlier Offspring: 2 new individuals per parent pair Genes: Entire personal schedules Newly generated schedules are not feasible  change the coverage to make them feasible

36 Original memetic algorithm: M

37 DM: diverse memetic algorithm The same ideas as in M The planning order of the skill categories is randomly chosen DMR: diverse memetic algorithm with random selection The same as DM random selection of personal schedules

38 MSR: Memetic algorithm with string recombination Based om DM Offspring takes personal schedules partially from both parents Crossover per personal schedule at a random day/shift MEx: Memetic algorithm copying the x best events Based om DM Copying x best assignments from each parent

39 Combining hybrid tabu search & evolutionary approaches TSPOP: different initial solutions and randomising the planning order of skill categories quick hybrid tabu search on each individual greedy shuffling on the final solution

40 MEH: memetic algorithm with human- inspired improvement functions

41 SWT: switch The only algorithm in which the coverage can change Based on ME4 (MEx with x=4) Random mutation by adding or removing assignments within the feasible domain (between minimum and preferred coverage)

42 Comparison of test results ▀

43 Conclusion automating the nurse rostering problem: –reduction of scheduling effort and time –quick evaluation of schedules, taking care of all the constraints –manually adaptable –good quality of solutions; objective schedules combining tabu search with some specific problem solving heuristics: hybrid tabu search –better quality of solutions –acceptable increase in calculation time genetic: –calc time about 100 times longer than hybrid TS –the same quality of solutions memetic: –calc time: 10 times longer than genetic –results: about 10% better –less dependent on initialisation and parameter changes