Smith s Rule in Stochastic Scheduling

Similar documents
Lower Bounds for Smith s Rule in Stochastic Machine Scheduling

Approximation in Stochastic Scheduling: The Power of LP-Based Priority Policies

Online Scheduling with QoS Constraints

Stochastic Online Scheduling Revisited

SCHEDULING UNRELATED MACHINES BY RANDOMIZED ROUNDING

Unrelated Machine Scheduling with Stochastic Processing Times

Stochastic Scheduling History and Challenges

Static Routing in Stochastic Scheduling: Performance Guarantees and Asymptotic Optimality

Regular Performance Measures

Models and Algorithms for Stochastic Online Scheduling 1

Approximation Algorithms (Load Balancing)

A Framework for Scheduling with Online Availability

Lecture 4 Scheduling 1

Algorithms. Outline! Approximation Algorithms. The class APX. The intelligence behind the hardware. ! Based on

A PTAS for the Uncertain Capacity Knapsack Problem

Approximation algorithms for scheduling problems with a modified total weighted tardiness objective

Scheduling under Uncertainty: Optimizing against a Randomizing Adversary

More Approximation Algorithms

COSC 341: Lecture 25 Coping with NP-hardness (2)

The Power of Preemption on Unrelated Machines and Applications to Scheduling Orders

This means that we can assume each list ) is

Scheduling Parallel Jobs with Linear Speedup

immediately, without knowledge of the jobs that arrive later The jobs cannot be preempted, ie, once a job is scheduled (assigned to a machine), it can

Select and Permute: An Improved Online Framework for Scheduling to Minimize Weighted Completion Time

Simple Dispatch Rules

Completion Time Scheduling and the WSRPT Algorithm

showed that the SMAT algorithm generates shelf based schedules with an approximation factor of 8.53 [10]. Turek et al. [14] proved that a generalizati

Convex Quadratic and Semidefinite Programming Relaxations in Scheduling

Online Scheduling with Bounded Migration

Poisson Processes. Stochastic Processes. Feb UC3M

2 Martin Skutella modeled by machine-dependent release dates r i 0 which denote the earliest point in time when ob may be processed on machine i. Toge

Single Machine Models

Approximation Schemes for Parallel Machine Scheduling Problems with Controllable Processing Times

Minimizing the total flow-time on a single machine with an unavailability period

Algorithm Design. Scheduling Algorithms. Part 2. Parallel machines. Open-shop Scheduling. Job-shop Scheduling.

This lecture is expanded from:

Approximating the Stochastic Knapsack Problem: The Benefit of Adaptivity

bound of (1 + p 37)=6 1: Finally, we present a randomized non-preemptive 8 -competitive algorithm for m = 2 7 machines and prove that this is op

ARobustPTASforMachineCoveringand Packing

A Robust APTAS for the Classical Bin Packing Problem

Bin packing and scheduling

Minimizing the weighted completion time on a single machine with periodic maintenance

Combinatorial Algorithms for Minimizing the Weighted Sum of Completion Times on a Single Machine

Scheduling Linear Deteriorating Jobs with an Availability Constraint on a Single Machine 1

Scheduling Online Algorithms. Tim Nieberg

All-norm Approximation Algorithms

APTAS for Bin Packing

A note on semi-online machine covering

Minimizing Average Completion Time in the. Presence of Release Dates. September 4, Abstract

LPT rule: Whenever a machine becomes free for assignment, assign that job whose. processing time is the largest among those jobs not yet assigned.

SPT is Optimally Competitive for Uniprocessor Flow

Machine scheduling with resource dependent processing times

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

BRANCH-AND-BOUND ALGORITHMS FOR STOCHASTIC RESOURCE-CONSTRAINED PROJECT SCHEDULING

P C max. NP-complete from partition. Example j p j What is the makespan on 2 machines? 3 machines? 4 machines?

Approximation in Stochastic Scheduling: The Power of LP-Based Priority Policies

On bilevel machine scheduling problems

Approximation Schemes for Scheduling on Parallel Machines

Partition is reducible to P2 C max. c. P2 Pj = 1, prec Cmax is solvable in polynomial time. P Pj = 1, prec Cmax is NP-hard

Colored Bin Packing: Online Algorithms and Lower Bounds

An approximation algorithm for the minimum latency set cover problem

The Constrained Minimum Weighted Sum of Job Completion Times Problem 1

A lower bound on deterministic online algorithms for scheduling on related machines without preemption

APPROXIMATION ALGORITHMS FOR SCHEDULING ORDERS ON PARALLEL MACHINES

arxiv: v1 [cs.ds] 6 Jun 2018

Final Examination December 16, 2009 MATH Suppose that we ask n randomly selected people whether they share your birthday.

SCHEDULING PARALLEL JOBS UNDER POWER CONSTRAINTS Kunal Agrawal Washington University in St. Louis

1 Markov decision processes

CS264: Beyond Worst-Case Analysis Lecture #15: Smoothed Complexity and Pseudopolynomial-Time Algorithms

The Multi-Armed Bandit Problem

Chapter 11. Approximation Algorithms. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved.

arxiv: v2 [cs.ds] 27 Nov 2014

Online Interval Coloring and Variants

Analysis of Algorithms [Reading: CLRS 2.2, 3] Laura Toma, csci2200, Bowdoin College

APPROXIMATION BOUNDS FOR A GENERAL CLASS OF PRECEDENCE CONSTRAINED PARALLEL MACHINE SCHEDULING PROBLEMS

Competitive Management of Non-Preemptive Queues with Multiple Values

Scheduling Lecture 1: Scheduling on One Machine

CPU SCHEDULING RONG ZHENG

June 19, Abstract. We give a simple proof that, for any instance of a very general class of scheduling

Online interval scheduling on uniformly related machines

A lower bound for scheduling of unit jobs with immediate decision on parallel machines

New Utilization Criteria for Online Scheduling

Dynamic Programming( Weighted Interval Scheduling)

Knapsack. Bag/knapsack of integer capacity B n items item i has size s i and profit/weight w i

A polynomial-time approximation scheme for the two-machine flow shop scheduling problem with an availability constraint

A robust APTAS for the classical bin packing problem

Online Scheduling of Jobs with Fixed Start Times on Related Machines

The Power of Migration in Online Machine Minimization

ON THE OPTIMALITY OF LEPT AND µc RULES FOR PARALLEL PROCESSORS AND DEPENDENT ARRIVAL PROCESSES

On the Structure and Complexity of Worst-Case Equilibria

P,NP, NP-Hard and NP-Complete

Scheduling linear deteriorating jobs with an availability constraint on a single machine

CS264: Beyond Worst-Case Analysis Lecture #18: Smoothed Complexity and Pseudopolynomial-Time Algorithms

NP-Completeness. Until now we have been designing algorithms for specific problems

How much can lookahead help in online single machine scheduling

Optimal on-line algorithms for single-machine scheduling

ECE 5424: Introduction to Machine Learning

Technische Universität Berlin Fachbereich Mathematik. Masterarbeit. Algorithmic Study of Bilevel Machine Scheduling Problems.

A half-product based approximation scheme for agreeably weighted completion time variance

CS 6901 (Applied Algorithms) Lecture 3

Transcription:

Smith s Rule In Stochastic Scheduling Caroline Jagtenberg Uwe Schwiegelshohn Utrecht University Dortmund University University of Twente Aussois 2011

The (classic) setting Problem n jobs, nonpreemptive, processing times p j and weights w j m identical, parallel machines C j = completion time of job j goal: minimize total weighted completion time, w j C j P w j C j (thanks JKL) Complexity The problem is (strongly) NP-hard [Bruno et al. 1974] PTAS exists [Skutella and Woeginger, 2000]

WSPT a.k.a. Smith s rule a.k.a. Photographer s Rule WSPT Schedule jobs in order of non-increasing ratios w j /p j Performance On 1 machine WSPT is optimal [Smith, 1956] For identical, parallel machines WSPT is a 1+ 2 2 1.207- approximation; this is tight [Kawaguchi and Kyan, 1986]

Step to stochastic scheduling Stochastic Scheduling processing times P = (P 1,..., P n ) unknown in advance P j s are random variables, known distribution solution no schedule, but scheduling policy Π for any policy Π: w j C j (Π, P) is a random variable Minimize expected performance E( w j C j (Π, P))

Complexity of (general) stochastic scheduling In general, optimal policies are NP-hard to find Calculating the objective value of a given policy can be # P complete [Hagstrom 1988] Question Optimal policy may require deliberate idleness [U. 2003] Does it become (significantly) easier if we restrict e.g. to only exponentially distributed processing times, i.e., P j exp(λ j )? i.e., P j s are memory-less, P[P j > x + t P j > t] = P[P j > x] Open Problem 1 Does there exist an optimal policy without deliberate idleness?

Intuition Quote Scheduling: Theory, Algorithms, and Systems [Pinedo, 2002] Example: P C max is NP-hard for deterministic scheduling, but for P j exp(λ j ), LEPT is optimal [Weiss and Pinedo, 1980]

Most natural & simple scheduling policy: WSEPT WSEPT or Smith s rule Greedily schedule jobs in order of decreasing w j /E(P j ) = w j λ j. Facts about WSEPT for minimizing E[ w j C j ] For one machine WSEPT is optimal [Rothkopf, 1966] For parallel machines WSEPT is optimal if ordering exists w. w 1... w n and w 1 λ 1... w n λ n [Kämpke, 1987] For parallel machines WSEPT is a (2 1 m )-approximation [Möhring, Schulz, U. 1999]

Our (Counterintuitive?) Result Theorem Performance of WSEPT is not better than 1.243 OPT. That is, instances where in expectation E[ w j Cj WSEPT ] > 1.243 E[ w j Cj OPT ] Counterintuition: This is even worse than WSPT in deterministic scheduling, which is at most 1.207 OPT. Proof Follows from analysis and adaptation of the instance given by Kawaguchi and Kyan.

Kawaguchi & Kyan (deterministic) example x m big jobs with p j = w j = p, n m small jobs with p j = w j = 1 n Left schedule: wj C j = (p 2 xm ) + ( 1 1 2 1 x m ) + o(1) Right schedule: wj C j = ((1 + p)pxm ) + ( 1 2 m ) + o(1) p = 1 + 2 and x = 1 2+ 1+ gives a maximal ratio of 2 2 2 1.207

Stochastic version of Kawaguchi & Kyan example x m i.i.d. big jobs each with P j exp(λ), and w j := E[P j ] = 1 λ := p n m i.i.d. small jobs each with P j exp(n), and w j := E[P j ] = 1 n

Scheduling m jobs with P j exp(λ) Lemma Say we start at time t = 0 m i.i.d. jobs with P j exp(λ), the expected number of available machines at time t is at least f (t) := m(1 e tλ ) 1. Interpretation

Behaviour of parallel jobs with P j exp(λ) When scheduling in parallel m jobs with i.i.d. processing times P j exp(λ), the first completion is expected at time 1/(mλ). As P j s are memory less, E[P j t P j > t] = E[P j ] = 1/λ, the second completion is expected time 1/((m 1)λ) later. etc., so j th completion is expected at time t j = Using H(m) = m i=1 1 i j i=1 1 (m i + 1)λ ln(m) + 0.58, find that t j 1 λ ln( m m j ), so # free machines at t: m(1 e tλ ) m(1 e tλ ) 1

Stochastic version of (worst case) WSPT schedule Remember Kawaguchi and Kyan s (worst case) schedule Machines finish processing short jobs more or less at t = 1 E[difference] 1 m 1 n i=1 1 i 0 (as we have n > m) Each long job completes in expectation at time (1 + 1 λ ) Hence, E[ w j C j ] to the deterministic case.

Stochastic version of (optimal) WSPT schedule The expected optimal schedule of the stochastic variant: Contribution of long jobs is the same as in the deterministic case. What about the small jobs? Compute time T such that T 0 f (t)dt total expected processing volume of small jobs. How? Numerically, T = 1.2933 suffices.

We can now approximate location of small jobs. But how much do they contribute to the objective value E[ w j C j ]?

Contribution of Small Jobs Lemma Consider nt jobs with i.i.d. processing times P j exp(n) and weights w j = 1/n, scheduled on a single machine. Then for all ε > 0 there exists n large enough so that Proof. E[ j w jc j ] = 1 n E[ j w jc j ] T 0 t dt + ε. nt 1/n+T 2 = 1 2 T 2 + 1 2n T = T 0 t dt + 1 2n T

Contribution of Small Jobs Generalization We can generalize this lemma for parallel machines. Let m(t) be the number of machines available at time t, then E[ j w jc j ] T 0 m(t) t dt + ε

Comparing the objective values E[ w j C j ] Ingredients 1 long jobs contribution same as in deterministic case 2 machines w. small jobs finish at equal times ( sand ) { 3 # available machines f (t) = m(1 e tλ ) 1 for OPT small jobs contribute E[ j w jc j ] T 0 f (t) t dt Putting all that together, we get WSEPT is an α-approximation, with α E(P j w j C j [B]) E( P j w j C j [A]) 1.229 (n, m )

The result Optimizing over # and length E[P j ] of the long jobs The result above was for 1 2+ 2 m 0.29 m long jobs with E[P j] = 1 + 2 2.4 Taking for example: yields α > 1.243 0.43 m long jobs with E[P j ] 1.8 Theorem For jobs with exponentially distributed processing times, WSEPT is no better than a 1.243 - approximation.

Conclusions What we ve found With P j exp(λ j ), WSEPT can be factor > 1.243 away from optimal policy (in expectation); worse than tight bound for deterministic scheduling, 1.207 [ WAOA 2010 proceedings] Open Problems 2 Instance(s) where WSEPT performs even worse? 3 I d rather go and improve the upper bound (2 1/m)! 4 Stochastic scheduling for P j exp(λ j ), hard at all? 5 And the complexity of computing E[ j w jc WSEPT j ]?

Smith s Rule = Photographer s Rule Group photos... Put short and important people first Back