Outline. Outline. Outline DMP204 SCHEDULING, TIMETABLING AND ROUTING. 1. Scheduling CPM/PERT Resource Constrained Project Scheduling Model

Similar documents
Resource Constrained Project Scheduling Linear and Integer Programming (1)

Single Machine Problems Polynomial Cases

RCPSP Single Machine Problems

01M1 Lecture Linear and Integer Programming: an Introduction

Outline. Relaxation. Outline DMP204 SCHEDULING, TIMETABLING AND ROUTING. 1. Lagrangian Relaxation. Lecture 12 Single Machine Models, Column Generation

COT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748

CS711008Z Algorithm Design and Analysis

Integer Linear Programming Modeling

The traveling salesman problem

Lecture 9: Dantzig-Wolfe Decomposition

Linear Programming. Leo Liberti. LIX, École Polytechnique. Operations research courses / LP theory p.

Modeling with Integer Programming

Scheduling and Optimization Course (MPRI)

Introduction to Bin Packing Problems

Algorithms and Theory of Computation. Lecture 13: Linear Programming (2)

Travelling Salesman Problem

Integer Linear Programming (ILP)

Multicommodity Flows and Column Generation

- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 17: Combinatorial Problems as Linear Programs III. Instructor: Shaddin Dughmi

Supporting hyperplanes

Introduction to Integer Programming

Math 5593 Linear Programming Week 1

Integer Programming ISE 418. Lecture 8. Dr. Ted Ralphs

MVE165/MMG631 Linear and integer optimization with applications Lecture 8 Discrete optimization: theory and algorithms

Workforce Scheduling. Outline DM87 SCHEDULING, TIMETABLING AND ROUTING. Outline. Workforce Scheduling. 1. Workforce Scheduling.

Integer Linear Programming

2.098/6.255/ Optimization Methods Practice True/False Questions

The Traveling Salesman Problem: An Overview. David P. Williamson, Cornell University Ebay Research January 21, 2014

3. Linear Programming and Polyhedral Combinatorics

DM559/DM545 Linear and Integer Programming. Linear Programming. Marco Chiarandini

Lecture 5: Computational Complexity

DM545 Linear and Integer Programming. The Simplex Method. Marco Chiarandini

Technische Universität München, Zentrum Mathematik Lehrstuhl für Angewandte Geometrie und Diskrete Mathematik. Combinatorial Optimization (MA 4502)

Discrete Optimization 2010 Lecture 7 Introduction to Integer Programming

Scientific Computing: Optimization

Integer Programming Methods LNMB

Linear Programming Duality

MVE165/MMG630, Applied Optimization Lecture 6 Integer linear programming: models and applications; complexity. Ann-Brith Strömberg

In complexity theory, algorithms and problems are classified by the growth order of computation time as a function of instance size.

LMI Methods in Optimal and Robust Control

Lecture 15: October 15

How to Relax. CP 2008 Slide 1. John Hooker Carnegie Mellon University September 2008

Single Machine Models

Duality of LPs and Applications

Decomposition-based Methods for Large-scale Discrete Optimization p.1

18 hours nodes, first feasible 3.7% gap Time: 92 days!! LP relaxation at root node: Branch and bound

15.081J/6.251J Introduction to Mathematical Programming. Lecture 24: Discrete Optimization

Introduction to Linear and Combinatorial Optimization (ADM I)

4. Duality Duality 4.1 Duality of LPs and the duality theorem. min c T x x R n, c R n. s.t. ai Tx = b i i M a i R n

Notes on Dantzig-Wolfe decomposition and column generation

DEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION. Part I: Short Questions

Duality in Mathematical Programming

1 Column Generation and the Cutting Stock Problem

Decomposition Methods for Integer Programming

Optimization methods NOPT048

Another max flow application: baseball

DOWNLOAD PDF LINEAR OPTIMIZATION AND APPROXIMATION

Discrete Optimization 2010 Lecture 8 Lagrangian Relaxation / P, N P and co-n P

CSC373: Algorithm Design, Analysis and Complexity Fall 2017 DENIS PANKRATOV NOVEMBER 1, 2017

Motivating examples Introduction to algorithms Simplex algorithm. On a particular example General algorithm. Duality An application to game theory

Lecture 1 Introduction

Optimization (168) Lecture 7-8-9

Lecture #21. c T x Ax b. maximize subject to

Lectures 6, 7 and part of 8

BBM402-Lecture 20: LP Duality

21. Set cover and TSP

CS675: Convex and Combinatorial Optimization Fall 2014 Combinatorial Problems as Linear Programs. Instructor: Shaddin Dughmi

3. Linear Programming and Polyhedral Combinatorics

Applied Integer Programming: Modeling and Solution

CS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs. Instructor: Shaddin Dughmi

Numerical Optimization

7. Lecture notes on the ellipsoid algorithm

Review Questions, Final Exam

1 Solution of a Large-Scale Traveling-Salesman Problem... 7 George B. Dantzig, Delbert R. Fulkerson, and Selmer M. Johnson

Integer program reformulation for robust branch-and-cut-and-price

Introduction to optimization and operations research

Section #2: Linear and Integer Programming

Lecture 6: Conic Optimization September 8

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

Topics in Theoretical Computer Science April 08, Lecture 8

Column Generation. MTech Seminar Report. Soumitra Pal Roll No: under the guidance of

COMP3121/9101/3821/9801 Lecture Notes. Linear Programming

Applications of Linear Programming

Optimization (2MMD10/2DME20), lecture 1b. Gerhard Woeginger. Technische Universiteit Eindhoven

What is an integer program? Modelling with Integer Variables. Mixed Integer Program. Let us start with a linear program: max cx s.t.

FRACTIONAL PACKING OF T-JOINS. 1. Introduction

Discrete (and Continuous) Optimization WI4 131

Maximum Flow Problem (Ford and Fulkerson, 1956)

IP Cut Homework from J and B Chapter 9: 14, 15, 16, 23, 24, You wish to solve the IP below with a cutting plane technique.

CHAPTER 3 FUNDAMENTALS OF COMPUTATIONAL COMPLEXITY. E. Amaldi Foundations of Operations Research Politecnico di Milano 1

Cutting Plane Separators in SCIP

Week 8. 1 LP is easy: the Ellipsoid Method

Lecture 10: Linear programming duality and sensitivity 0-0

4.5 Simplex method. LP in standard form: min z = c T x s.t. Ax = b

CO 250 Final Exam Guide

Scheduling with Constraint Programming. Job Shop Cumulative Job Shop

Optimization methods NOPT048

Introduction to Integer Linear Programming

Complexity of linear programming: outline

Transcription:

Outline DMP204 SCHEDULING, TIMETABLING AND ROUTING Lecture 3 and Mixed Integer Programg Marco Chiarandini 1. Resource Constrained Project Model 2. Mathematical Programg 2 Outline Outline 1. Resource Constrained Project Model 1. Resource Constrained Project Model 2. Mathematical Programg 2. Mathematical Programg 3 4

Project Planning Project Planning 5 5 Project Planning Project Planning 5 5

Outline Resource Constrained Project Model Given: activities (jobs) j = 1,..., n renewable resources i = 1,..., m 1. Resource Constrained Project Model amount of resources available R i processing times p j amount of resource used r ij precedence constraints j k 2. Mathematical Programg 6 7 Resource Constrained Project Model Resource Constrained Project Model Given: activities (jobs) j = 1,..., n Given: activities (jobs) j = 1,..., n renewable resources i = 1,..., m renewable resources i = 1,..., m amount of resources available R i amount of resources available R i processing times p j processing times p j amount of resource used r ij amount of resource used r ij precedence constraints j k precedence constraints j k Further generalizations Time dependent resource profile R i (t) given by (t µ i, Rµ i ) where 0 = t1 i < t2 i <... < tm i i = T Disjunctive resource, if R k (t) = {0, 1}; cumulative resource, otherwise Further generalizations Time dependent resource profile R i (t) given by (t µ i, Rµ i ) where 0 = t1 i < t2 i <... < tm i i = T Disjunctive resource, if R k (t) = {0, 1}; cumulative resource, otherwise Multiple modes for an activity j processing time and use of resource depends on its mode m: p jm, r jkm. 7 7

Modeling Assignment 1 A contractor has to complete n activities. The duration of activity j is p j each activity requires a crew of size W j. The activities are not subject to precedence constraints. The contractor has W workers at his disposal his objective is to complete all n activities in imum time. Assignment 2 Exams in a college may have different duration. The exams have to be held in a gym with W seats. The enrollment in course j is W j and all W j students have to take the exam at the same time. The goal is to develop a timetable that schedules all n exams in imum time. Consider both the cases in which each student has to attend a single exam as well as the situation in which a student can attend more than one exam. 8 9 Assignment 4 Assignment 3 In a basic high-school timetabling problem we are given m classes c 1,..., c m, h teachers a 1,..., a h and T teaching periods t 1,..., t T. Furthermore, we have lectures i = l 1,..., l n. Associated with each lecture is a unique teacher and a unique class. A teacher a j may be available only in certain teaching periods. The corresponding timetabling problem is to assign the lectures to the teaching periods such that each class has at most one lecture in any time period each teacher has at most one lecture in any time period, each teacher has only to teach in time periods where he is available. A set of jobs J 1,..., J g are to be processed by auditors A 1,..., A m. Job J l consists of n l tasks (l = 1,..., g). There are precedence constraints i 1 i 2 between tasks i 1, i 2 of the same job. Each job J l has a release time r l, a due date d l and a weight w l. Each task must be processed by exactly one auditor. If task i is processed by auditor A k, then its processing time is p ik. Auditor A k is available during disjoint time intervals [s ν k, lν k ] ( ν = 1,..., m) with lk ν < sν k for ν = 1,..., m k 1. Furthermore, the total working time of A k is bounded from below by H k and from above by H + k with H k H+ k (k = 1,..., m). We have to find an assignment α(i) for each task i = 1,..., n := P g l=1 n l to an auditor A α(i) such that each task is processed without preemption in a time window of the assigned auditor the total workload of A k is bounded by H k and Hk k for k = 1,..., m. the precedence constraints are satisfied, all tasks of J l do not start before time r l, and the total weighted tardiness P g l=1 w lt l is imized. 10 11

Outline Outline 1. Resource Constrained Project Model 1. Resource Constrained Project Model 2. Mathematical Programg 2. Mathematical Programg 12 13 Mathematical Programg Linear, Integer, Nonlinear Mathematical Programg Linear, Integer, Nonlinear program = optimization problem program = optimization problem f(x) g i (x) = 0, i = 1, 2,..., k h j (x) 0, j = 1, 2,..., m x R n general (nonlinear) program (NLP) 14 14

Mathematical Programg Linear, Integer, Nonlinear Linear Programg program = optimization problem linear program (LP) f(x) g i (x) = 0, i = 1, 2,..., k h j (x) 0, j = 1, 2,..., m x R n general (nonlinear) program (NLP) c T x Ax = a Bx b x 0 (x R n ) c T x Ax = a Bx b x 0 (x Z n ) (x {0, 1} n ) integer (linear) program (IP, MIP) Linear Program in standard form c 1 x 1 + c 2 x 2 +... c n x n s.t. a 11 x 1 + a 12 x 2 +... + a 1n x n = b 1 a 21 x 1 + a 22 x 2 +... + a 2n x n = b 2. a 21 x 1 + a 22 x 2 +... + a 2n x n = b n x 1, x 2,..., x n 0 c T x Ax = b x 0 14 15 Historic Roots LP Theory 1939 L. V. Kantorovitch: Foundations of linear programg (Nobel Prize 1975) George J. Stigler s 1945 (Nobel Prize 1982) Diet Problem : the first linear program find the cheapest combination of foods that will satisfy the daily requirements of a person Army s problem had 77 unknowns and 9 constraints. http://www.mcs.anl.gov/home/otc/guide/casestudies/diet/index.html 1947 G.B. Dantzig: Invention of the simplex algorithm Founding fathers: 1950s Dantzig: Linear Programg 1954, the Beginning of IP G. Dantzig, D.R. Fulkerson, S. Johnson TSP with 49 cities 1960s Gomory: Integer Programg Max-Flow Min-Cut Theorem The maximal (s,t)-flow in a capaciatetd network is equal to the imal capacity of an (s,t)-cut The Duality Theorem of Linear Programg max c T x Ax b x 0 y T b y T A c T y 0 If feasible solutions to both the primal and the dual problem in a pair of dual LP problems exist, then there is an optimum solution to both systems and the optimal values are equal. 16 17

LP Theory LP Solvability Max-Flow Min-Cut Theorem does not hold if several source-sink relations are given (multicommodity flow) Linear programs can be solved in polynomial time with the Ellipsoid Method (Khachiyan, 1979) Interior Point Methods (Karmarkar, 1984, and others) The Duality Theorem of Integer Programg max c T x Ax b x 0 x Z n y T b y T A c T y 0 y Z n Open: is there a strongly polynomial time algorithm for the solution of LPs? Certain variants of the Simplex Algorithm run - under certain conditions - in expected polynomial time (Borgwardt, 1977...) Open: Is there a polynomial time variant of the Simplex Algorithm? 18 19 IP Solvability Outline Theorem Integer, 0/1, and mixed integer programg are NP-hard. Consequence special cases special purposes heuristics 1. Resource Constrained Project Model 2. Mathematical Programg 20 21

Nonlinear programg Algorithms for the solution of nonlinear programs Algorithms for the solution of linear programs 1) Fourier-Motzkin Eliation (hopeless) 2) The Simplex Method (good, above all with duality) 3) The Ellipsoid Method (total failure) 4) Interior-Point/Barrier Methods (good) Algorithms for the solution of integer programs 1) Branch & Bound 2) Cutting Planes Iterative methods that solve the equation and inequality systems representing the necessary local optimality conditions. Steepest descent (Kuhn-Tucker sufficient conditions) Newton method Subgradient method 22 23 Linear programg The simplex method The Simplex Method Dantzig, 1947: primal Simplex Method Lemke, 1954; Beale, 1954: dual Simplex Method Dantzig, 1953: revised Simplex Method... Underlying Idea: Find a vertex of the set of feasible LP solutions (polyhedron) and move to a better neighbouring vertex, if possible. 24 25

The simplex method The simplex method Hirsch Conjecture If P is a polytope of dimension n with m facets then every vertex of P can be reached from any other vertex of P on a path of length at most m-n. In the example before: m=5, n=2 and m-n=3, conjecture is true. At present, not even a polynomial bound on the path length is known. Best upper bound: Kalai, Kleitman (1992): The diameter of the graph of an n-dimensional polyhedron with m facets is at most m(log n+1). Lower bound: Holt, Klee (1997): at least m-n (m, n large enough). 25 26 Integer Programg (easy) Integer Programg (hard) special simple" combinatorial optimization problems Finding a: imum spanning tree shortest path maximum matching maximal flow through a network cost-imal flow... solvable in polynomial time by special purpose algorithms special hard" combinatorial optimization problems traveling salesman problem location and routing set-packing, partitioning, -covering max-cut linear ordering scheduling (with a few exceptions) node and edge colouring... NP-hard (in the sense of complexity theory) The most successful solution techniques employ linear programg. 27 28

Integer Programg (hard) Summary 1) Branch & Bound 2) Cutting Planes Branch & cut, Branch & Price (column generation), Branch & Cut & Price We can solve today explicit LPs with up to 500,000 of variables and up to 5,000,000 of constraints routinely in relatively short running times. We can solve today structured implicit LPs (employing column generation and cutting plane techniques) in special cases with hundreds of million (and more) variables and almost infinitely many constraints in acceptable running times. (Examples: TSP, bus circulation in Berlin) [Martin Grötschel, Block Course at TU Berlin, Combinatorial Optimization at Work, 2005 http://co-at-work.zib.de/berlin/] 29 30