Crew Scheduling Housos Efthymios, Professor Computer Systems Laboratory (CSL) Electrical & Computer Engineering University of Patras.

Slides:



Advertisements
Similar presentations
1 Outline relationship among topics secrets LP with upper bounds by Simplex method basic feasible solution (BFS) by Simplex method for bounded variables.
Advertisements

Crew Pairing Optimization with Genetic Algorithms
Heuristic Search techniques
1 Branch-and-Price (Column Generation) Solving Integer Programs With a Huge Number of Variables CP-AI-OR02 School on Optimization Le Croisic, France March.
Local Search Jim Little UBC CS 322 – CSP October 3, 2014 Textbook §4.8
ECE Longest Path dual 1 ECE 665 Spring 2005 ECE 665 Spring 2005 Computer Algorithms with Applications to VLSI CAD Linear Programming Duality – Longest.
Chapter 3 Workforce scheduling.
Leena Suhl University of Paderborn, Germany
PROBLEM SOLVING AND SEARCH
~1~ Infocom’04 Mar. 10th On Finding Disjoint Paths in Single and Dual Link Cost Networks Chunming Qiao* LANDER, CSE Department SUNY at Buffalo *Collaborators:
Transportation Problem (TP) and Assignment Problem (AP)
Lecture 10: Integer Programming & Branch-and-Bound
CREW SCHEDULING Past and Future Jacques Desrosiers HEC & GERAD Montréal, Canada.
1 EL736 Communications Networks II: Design and Algorithms Class8: Networks with Shortest-Path Routing Yong Liu 10/31/2007.
Part 3 Linear Programming 3.4 Transportation Problem.
Problem Solving and Search in AI Part I Search and Intelligence Search is one of the most powerful approaches to problem solving in AI Search is a universal.
Network Optimization Models: Maximum Flow Problems
1 Introduction to Linear and Integer Programming Lecture 9: Feb 14.
Algorithms and Problem Solving-1 Algorithms and Problem Solving.
Maintenance Routing Gábor Maróti CWI, Amsterdam and NS Reizigers, Utrecht Models for Maintenance Routing 2nd AMORE Seminar, Partas, 30.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
Computational Methods for Management and Economics Carla Gomes
Approximation Algorithms
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
1 A Second Stage Network Recourse Problem in Stochastic Airline Crew Scheduling Joyce W. Yen University of Michigan John R. Birge Northwestern University.
LP formulation of Economic Dispatch
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
1.3 Modeling with exponentially many constr.  Some strong formulations (or even formulation itself) may involve exponentially many constraints (cutting.
Networks and the Shortest Path Problem.  Physical Networks  Road Networks  Railway Networks  Airline traffic Networks  Electrical networks, e.g.,
AGIFORS, 5/28/03 Aircraft Routing and Crew Pairing Optimization Diego Klabjan, University of Illinois at Urbana- Champaign George L. Nemhauser, Georgia.
Group Construction for Cabin Crew Comparing Constraint Programming with Branch&Price Presentation at SweConsNet 2005 Jesper Hansen Carmen Systems AB
Minimum Cost Flows. 2 The Minimum Cost Flow Problem u ij = capacity of arc (i,j). c ij = unit cost of shipping flow from node i to node j on (i,j). x.
Minimax Open Shortest Path First (OSPF) Routing Algorithms in Networks Supporting the SMDS Service Frank Yeong-Sung Lin ( 林永松 ) Information Management.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
© J. Christopher Beck Lecture 25: Workforce Scheduling 3.
15-853:Algorithms in the Real World
Column Generation By Soumitra Pal Under the guidance of Prof. A. G. Ranade.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
Integer Programming (정수계획법)
Weighted Graphs Computing 2 COMP s1 Sedgewick Part 5: Chapter
1 Inventory Control with Time-Varying Demand. 2  Week 1Introduction to Production Planning and Inventory Control  Week 2Inventory Control – Deterministic.
Lagrangean Relaxation
EMIS 8373: Integer Programming Column Generation updated 12 April 2005.
Dominance and Indifference in Airline Planning Decisions NEXTOR Conference: INFORMS Aviation Session June 2 – 5, 2003 Amy Mainville Cohn, KoMing Liu, and.
Airline Optimization Problems Constraint Technologies International
Suppose G = (V, E) is a directed network. Each edge (i,j) in E has an associated ‘length’ c ij (cost, time, distance, …). Determine a path of shortest.
Approximation Algorithms Duality My T. UF.
Approximation Algorithms based on linear programming.
1 Chapter 5 Branch-and-bound Framework and Its Applications.
Lecture 20. Graphs and network models 1. Recap Binary search tree is a special binary tree which is designed to make the search of elements or keys in.
U NIT C REWING FOR R OBUST A IRLINE C REW S CHEDULING Bassy Tam Optimisation Approaches for Robust Airline Crew Scheduling Bassy Tam Professor Matthias.
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Constructing Robust Crew Schedules with Bicriteria Optimisation
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
The minimum cost flow problem
1.206J/16.77J/ESD.215J Airline Schedule Planning
EMIS 8373: Integer Programming
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
1.3 Modeling with exponentially many constr.
1.206J/16.77J/ESD.215J Airline Schedule Planning
1.206J/16.77J/ESD.215J Airline Schedule Planning
1.206J/16.77J/ESD.215J Airline Schedule Planning
Integer Programming (정수계획법)
1.206J/16.77J/ESD.215J Airline Schedule Planning
1.206J/16.77J/ESD.215J Airline Schedule Planning
1.3 Modeling with exponentially many constr.
Algorithms and Problem Solving
Integer Programming (정수계획법)
Chapter 1. Formulations.
Presentation transcript:

Crew Scheduling Housos Efthymios, Professor Computer Systems Laboratory (CSL) Electrical & Computer Engineering University of Patras

2nd AMORE Research Seminar on Railway Optimization Problems Overview Crew Scheduling Problem Definition CSL Prototypes & Experience Airline Crew Scheduling Bus & Driver Shift Scheduling OR Modeling & Solution Approach Column Generation Approach Discussion

2nd AMORE Research Seminar on Railway Optimization Problems Crew Scheduling Problem Definition Assignment of well-defined tasks (pairing & shift construction) to a group of people while respecting a set of complicated legality rules and resource constraints. Most of the legality rules are non-linear and evolving through time

2nd AMORE Research Seminar on Railway Optimization Problems CSL Prototypes & Experience Airline Crew Scheduling (Pairing Construction & Crew Assignment) Bus & Driver Shift Scheduling

2nd AMORE Research Seminar on Railway Optimization Problems Airline Crew Scheduling Problem Flight Legs Pairing Legality Rules Crew Pairing Pairings Crew Assignment Roster Legality Rules Other Activities (training, vacation, etc) Schedule Crew Members

2nd AMORE Research Seminar on Railway Optimization Problems Crew Pairing Solution Methodology Crew Pairing and Crew assignment are too big to be solved together A good solution for Crew Pairing is a must for the efficient and productive use of the airline crews

2nd AMORE Research Seminar on Railway Optimization Problems Airline Crew Scheduling Entities of the problem Flight Leg: A non-stop flight with its crew complement and fleet requirements Duty: A legal sequence of legs for one day Pairing (Trip): A legal sequence of duties Pairings start and end at the same crew base Roster: A set of pairings and other activities assigned to a specific crew member

2nd AMORE Research Seminar on Railway Optimization Problems Hierarchy of activities FRA 9:00 MUC 10:00 Briefing (60 min) Debriefing (15 min) Duty #1 MUC 11:00 HAM 13:00 HAM 14:00 STR 15:00 Briefing Debriefing Duty #2 STR 8:00 MUC 9:00 MUC 10:00 ATH 14:45 ATH 16:00 FRA 19:30 Trip Night Stop LH 137

2nd AMORE Research Seminar on Railway Optimization Problems Bus & Driver Shift Scheduling Solved every afternoon for the work load of the next day Shift: a set of routes that will be performed by a bus and its associated driver in a day Shifts must be legal according to a complex set of rules while respecting previous bus- ending points A good solution for the problem is a legal set of shifts that efficiently covers the work load (more later)

2nd AMORE Research Seminar on Railway Optimization Problems Solution Approaches for the Crew Pairing Problem Generate and Optimize Select sub-problems (Heuristic filtering) Phase 1. Generate a large set of legal pairings (Generate) Phase 2. Select the best pairings (Optimize) Iterate Column Generation

2nd AMORE Research Seminar on Railway Optimization Problems Generate and Optimize in Production (CARMEN) Initially used in CARMEN’s Pairing Construction System (PAC) In use since 1995 by most European Airlines Clever sub-problem selection filters and tools Day by Day (DbD) iteration process Efficient modeling of complex legality rules via a separate rule system

2nd AMORE Research Seminar on Railway Optimization Problems Time distribution of the Generate & Optimize Approach

2nd AMORE Research Seminar on Railway Optimization Problems Trip Generation Process Connection matrix graph (each leg appears only once)

2nd AMORE Research Seminar on Railway Optimization Problems For each starting node a separate search tree is defined The DFS process is controlled by: Search width Maximum number of total trips Maximum number of trips per starting node Legality rules Depth first search algorithm Trip Generation Algorithm

2nd AMORE Research Seminar on Railway Optimization Problems Basic Procedure for Crew Scheduling Problems OR(1) Formulated as a Set Covering (SCP) or Set Partitioning (SPP) problems (SCP)min { cx : Ax  1, x  {0,1} n } (SPP)min { cx : Ax=1, x  {0,1} n }

2nd AMORE Research Seminar on Railway Optimization Problems OR Modeling Approach (2) A binary variable (column) represents a legal schedule of a person that covers a set of tasks Each variable (column) embeds all non- linear legality rules Legality rules are external to the model Constraints ensure the covering of all tasks

2nd AMORE Research Seminar on Railway Optimization Problems OR Modeling Approach (3) The airline crew pairing problem involves the finding of a set of trips that covers a set of flights with minimum cost m = 10 2 – 10 4 n = 3*10 4 – 10 6

2nd AMORE Research Seminar on Railway Optimization Problems OR Solution Approach Generate and Optimize Generate a large number of ‘good’ legal columns and select the best ones Generation of ‘good’ columns is a time- consuming task Selection of ‘good’ columns requires an efficient IP Solver

2nd AMORE Research Seminar on Railway Optimization Problems Solution Approach (2) Small amount of RAM required for the generation phase Clever problem specific heuristics for sub-problem selection & the (DbD) solution strategy Powerful IP Optimizer (able to identify reasonable solutions from ~1,000,000 columns)

2nd AMORE Research Seminar on Railway Optimization Problems Solution Approach (3) Used in the production environment for many years by several European airlines Computer generated solution were often inferior to the ones of human experts and/or users could further improve the solution! Need to solve larger problems with stable heuristic processes

2nd AMORE Research Seminar on Railway Optimization Problems Column Generation (CG) Known for many decades for the solution of large LP problems Main Idea of CG approach: Consider only a small number of variables at a time Solve a small LP (master problem) and get a primal and a dual solution Generate new attractive columns (sub-problem), with negative reduced cost, by using the dual solution of the master problem in order to improve the previous LP solution Repeat the procedure until no further improvement can be made

2nd AMORE Research Seminar on Railway Optimization Problems Column Generation Requirements for LP & IP Efficient data structures for the implicit representation of all problem variables Large amounts of RAM Fast algorithms for generation of new legal and promising columns LP Optimizer No need for strong IP optimizer!

2nd AMORE Research Seminar on Railway Optimization Problems Column Generation & Scheduling Master Problem ensures covering of tasks Sub problem usually has the structure of a graph Nodes are simple or composite activities (i.e. flights, duties) Arcs connect activities that are legal to be connected in pairs

2nd AMORE Research Seminar on Railway Optimization Problems Master Problem Relaxed IP model One constraint for each task In each step solve a problem that has the basis of previous iteration and the newly generated attractive columns Return primal and dual solution

2nd AMORE Research Seminar on Railway Optimization Problems Sub-problem Basic structure is a graph or a connection matrix Nodes are the flights Arcs connect flights that can be legally connected as a pair Cost of a node is the cost of including the corresponding flight in some pairing Cost of an arc is the dual of the constraint of the source node flight “the source node is present for all possible pairings after this point”

2nd AMORE Research Seminar on Railway Optimization Problems Sub-problem (2) Legality Rules The reduced cost of a new pairing (start to end) is the cost of the path Pairing: Flight1, Flight4, Flight5, has reduced cost (c1+c4+c5) – (y1+y4+y5) A k-shortest path type algorithm provides the best candidate pairings ASSUMPTION: The cost of a schedule is the sum of the costs of all flights (additive function) Often OK even if cost is non-linear!

2nd AMORE Research Seminar on Railway Optimization Problems Duty Based Sub-problem Embed legality of duties Nodes of the network are legal duties Two duties that can be legally followed are connected with an arc Dual of each node is the sum of duals of the legs of the corresponding duty Cost of each node is the cost of the corresponding duty Number of nodes increases Number of arcs decreases Network is smarter and is easier to look for legal pairings

2nd AMORE Research Seminar on Railway Optimization Problems Search for new attractive pairings Sub-problem network (flight or duty) cannot embed all legality rules k-shortest path algorithms may produce a large number of illegal pairings! DFS + shortest path always produces legal pairings

2nd AMORE Research Seminar on Railway Optimization Problems Search for new attractive pairings (2) Build new legal pairings using a depth first search procedure DFS proceeds using the shortest path results for each node (more in the next presentation)

2nd AMORE Research Seminar on Railway Optimization Problems IP Solution (1) An LP (fractional) solution is always known but an IP solution is actually required Procedure for IP solution creation: Reduce problem dimensions by freezing a part of the solution and re-applying the CG strategy on the remaining problem At a certain point when problem dimensions are small an IP solution can be located with some other IP optimization method

2nd AMORE Research Seminar on Railway Optimization Problems IP Solution (2)

2nd AMORE Research Seminar on Railway Optimization Problems Discussion Sub-problem identification and the iterative process that will lead us to a good solution is the key to success Intelligent domain specific criteria for the selection of sub-problems (DbD) Problem independent strategy via the use of LP and duality theory (CG)