61
27th Nov 2001 Univ. Nebraska 1 Constraint Based Scheduling and Optimization: From Research to Application Brian Drabble Computational Intelligence Research Laboratory www.cirl.uoregon.edu [email protected] & On Time Systems, Inc www.otsys.com

Constraint Based Scheduling and Optimization: From Research to Application

Embed Size (px)

DESCRIPTION

Constraint Based Scheduling and Optimization: From Research to Application. Brian Drabble Computational Intelligence Research Laboratory www.cirl.uoregon.edu [email protected] & On Time Systems, Inc www.otsys.com. Overview. Constraint based scheduling Algorithms - PowerPoint PPT Presentation

Citation preview

Page 1: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 1

Constraint Based Scheduling and Optimization:

From Research to Application

Brian Drabble

Computational Intelligence Research Laboratory

www.cirl.uoregon.edu

[email protected]

&

On Time Systems, Inc

www.otsys.com

Page 2: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 2

Overview

• Constraint based scheduling• Algorithms

– LDS and Schedule Pack– Squeaky Wheel Optimization

• Applications– Aircraft assembly– Ship construction

• Future Directions• Summary

Page 3: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 3

Constraint Based Scheduling

• Problem characteristics• Search based techniques

Page 4: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 43

Problem Characteristics

–Task details:• resource requirements

• deadlines/release times

• value

Page 5: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 54

Problem Characteristics

–Task details–Resource characteristics:

• type• capacity• availability• speed, etc.

Page 6: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 65

Problem Characteristics

¨ Task details¨ Resource characteristics¨ Precedences:

– necessary orderings between tasks

Page 7: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 76

Problem Characteristics

–Constraints:• setup costs• exclusions• reserve capacity• union rules/business rules

¨ Task details¨ Resource characteristics¨ Precedences

Page 8: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 87

Problem Characteristics

–Constraints

–Optimization criteria:• makespan, lateness, cost,

throughput

¨ Task details

¨ Resource characteristics¨ Precedences

Page 9: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 98

Optimization Techniques

• Operations Research (OR)– LP/IP solvers

• seem to be near the limits of their potential

• Artificial Intelligence (AI)– search-based solvers

• performance increasing dramatically• surpassing OR techniques for many problems

Page 10: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 109

Search-based Techniques

• Systematic– explore all possibilities

• Depth-First Search• Limited Discrepancy Search

• Nonsystematic– explore only “promising” possibilities

• WalkSAT• Schedule Packing

Page 11: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 1110

Heuristic Search

– A heuristic prefers some choices over others– Search explores heuristically preferred options

Page 12: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 1211

Limited Discrepancy Search

– Better model of how heuristic search fails

Page 13: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 1312

Limited Discrepancy Search– LDS-n deviates from heuristic exactly n times

on path from root to leaf

LDS-1LDS-0

Page 14: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 1413

Schedule Packing– Post-processing to exploit opportunities

1 1

2 2

Page 15: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 1514

Schedule Packing– schedule longest chains first

• starting from right

1 1

2 2

1 1

2 2

Page 16: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 1615

Schedule Packing– repeat, starting from the left

1 1

2 2

1 1

2 2

Page 17: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 17

Squeaky Wheel Optimization

• Key insight: scheduling involves two major decisions:– which task to assign next– where to assign it in the schedule

• Create a dual search space– priority space– schedule space

Page 18: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 18

Priority Space

P

P’

S

S’

Priority Space Solution Space

• Coupled search space

Page 19: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 19

Architecture• Construct Analyze Prioritize loop

P

P’

S

S’

Priority Space Solution Space

Construct

AnalyzePrioritize

Construct

Page 20: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 20

Construction• Construct a solution taking each task in

sequence

P

P’

S

S’

Priority Space Solution Space

Construct

AnalyzePrioritize

Construct

Page 21: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 21

Analysis

• Assign blame problem elements, relatively simple

P

P’

S

S’

Priority Space Solution Space

Construct

AnalyzePrioritize

Construct

Page 22: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 22

Prioritization

• Adjust priority sequence according to blame

P

P’

S

S’

Priority Space Solution Space

Construct

AnalyzePrioritize

Construct

Page 23: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 23

Large Coherent Moves

• High priority tasks handled well lower tasks fill in.

P

P’

S

S’

Priority Space Solution Space

Construct

AnalyzePrioritize

Construct

Page 24: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 24

Squeaky Wheel Optimization

Construct

Mission 1234

AAR 234

SEAD 34

Mission 4567

Page 25: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 25

Squeaky Wheel Optimization

Analyze

“High attrition rate”

“Outside target time window”

“Low success rate”

“Not attacked”

Page 26: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 26

Squeaky Wheel Optimization

Prioritize

Page 27: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 27

Squeaky Wheel Optimization

Prioritize

Page 28: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 28

Squeaky Wheel Optimization

Construct

Page 29: Constraint Based Scheduling and Optimization:  From Research to Application

Scalability

0

5

10

15

20

25

0 50 100 150 200 250 300Number of Tasks

% Over Best Solution

TABULP/IPSWO

Page 30: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 3016

Applications

Page 31: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 3117

Aircraft Assembly

McDonnell Douglas / Boeing

– ~570 tasks, 17 resources, various capacities

– MD’s scheduler took 2 days to schedule

– needed:

• better schedules (1 day worth $200K–$1M)

• rescheduler that can get inside production cycles

Page 32: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 3218

Problem Specification

– Task/precedence specification• mostly already existed for regulatory reasons

Page 33: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 3319

Problem Specification

– Task/precedence specification• mostly already existed for regulatory reasons

– Resource capacity profiles• labor profile available from staffing information• others determined from SOPs, etc.

Page 34: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 3420

Problem Specification

– Task/precedence specification• mostly already existed for regulatory reasons

– Resource capacity profiles• labor profile available from staffing information• others determined from SOPs, etc.

– Optimization criterion• simple makespan minimization

Page 35: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 3521

Problem Specification

– Task/precedence specification• mostly already existed for regulatory reasons

– Resource capacity profiles• labor profile available from staffing information• others determined from SOPs, etc.

– Optimization criterion• simple makespan minimization

– Solution checker• available from in-house scheduling efforts

Page 36: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 3622

The Optimizer

• LDS to generate seed schedules• Schedule packing to optimize

– intensification improves convergence speed

• etc.

Page 37: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 3723

Performance

– ~570 tasks, 17 resources, various capacities• about 1 second to first solution• about 1 minute to within 2% of best known• about 30 minutes to best schedule known

Page 38: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 3824

Performance

– ~570 tasks, 17 resources, various capacities• about 1 second to first solution• about 1 minute to within 2% of best known• about 30 minutes to best schedule known

– 10-15% shorter makespan than best in-house• 4 to 6 days shorter schedules

Page 39: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 3925

Performance

– ~570 tasks, 17 resources, various capacities• about 1 second to first solution• about 1 minute to within 2% of best known• about 30 minutes to best schedule known

– 10-15% shorter makespan than best in-house• 4 to 6 days shorter schedules

– 2 orders of magnitude faster scheduling• scheduler runs inside production cycle• less need for rescheduler

Page 40: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 4026

Extensions

Boeing:– multi-unit assembly– interruptible tasks– persistent assignments– multiple objectives

• e.g., time to first completion, average makespan, time to completion

• fast enough to use for “what-iffing”– discovered improved PM schedule

• Noise is your friend!!!

Page 41: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 4127

Submarine Construction

General Dynamics / Electric Boat– 7000 activities per hull, approx 125 resource types– Electric Boat’s scheduler takes 6 weeks– needed:

• cheaper schedules• faster schedules to deal with contingencies

Page 42: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 42

Problem Specification

• reschedule shipyard operations to reduce wasted labor expenses

• efficient management of labor profiles– reduce overtime and idle time– hiring and RIF costs

Page 43: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 43

Optimizer

• ARGOS is new technology developed specifically with these goals in mind

Page 44: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 44

• Labor costs of existing schedule: $155m• Time to produce existing schedule: ~6 weeks

• 15% reduction in cost, 50x reduction in schedule development time

Performance: One Boat

Iteration Time Savings

1 2 min 8.4% $13.0M7 10 min 11.4% $17.7M20 34 min 11.8% $18.2M

Ultimate ~24hrs 15.5% $24.0M

Page 45: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 45

Performance: Whole Yard

• All hulls, about 5 years of production• Estimated cost of existing schedule: $630M

• No existing software package can deal with the yard coherently

Iteration Time Savings

1 24 min 7.8% $49M7 60 min 10.2% $65M20 4 hours 10.7% $68M

Ultimate 4 days 11.5% 73M

Page 46: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 46

Extensions

• Shared resources– dry dock– cranes

• Sub-assemblies– provided by different yards and suppliers

• Repair– dealing with new jobs

Page 47: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 47

Future Applications

• Workflow management– STRATCOM checklist manager– IBM

• E-Business– supply chain management

• Military– air expeditionary forces– logistics

Page 48: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 48

Future Work

• Robustness• Distributed scheduling• Common task description

Page 49: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 49

Penalty Box Scheduling

• Sub-set of the tasks with higher probability of success.– 90% probability of destroying 90% of the targets?– 96% probability of destroying 75% of the targets?

• Inability to resource leads to a task “squeak” • Blame score related to user priority and

“uniqueness”• Reduce the target percentage until no

significant improvement is found

Page 50: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 50

Semi-Flexible Constraints

• The time constraints provided by the users tended to be ad-hoc and imprecise– heuristics based on sortie rate, no of targets, etc– this is what we did last time so it must be right!!

• Not a preference– this is what I want until you can prove otherwise!!

• Two algorithms were investigated– pointer based– ripple based

Page 51: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 51

Semi-Flexible Constraints: Pointer Based

“Attack the IAD before power system”

IAD-E

0 3000 6000

Time (Minutes)

Power-EIAD-L Power-L

Page 52: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 52

Semi-Flexible Constraints: Pointer Based

“Attack the IAD before power system”

IAD-E

0 3000 6000

Time (Minutes)

Power-EIAD-L Power-L

Page 53: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 53

Semi-Flexible Constraints: Pointer Based

“Attack the IAD before power system”

IAD-E

0 3000 6000

Time (Minutes)

Power-EIAD-L Power-L

Page 54: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 54

Semi-Flexible Constraints: Ripple Based

IAD-E

0 3000 6000

Time (Minutes)

Power-EIAD-L Power-L

“Attack the IAD before power system”

Page 55: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 55

Semi-Flexible Constraints: Ripple Based

IAD-E

0 3000 6000

Time (Minutes)

Power-E Power-L

“Attack the IAD before power system”

IAD-L

Page 56: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 56

Semi-Flexible Constraints: Ripple Based

IAD-E

0 3000 6000

Time (Minutes)

Power-E Power-L

“Attack the IAD before power system”

IAD-L

Page 57: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 57

Semi-Flexible Constraints: Ripple Based

IAD-E

0 3000 6000

Time (Minutes)

Power-LPower-E

“Attack the IAD before power system”

IAD-L

Page 58: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 58

Common Task Model

Plan Ready Fly Execute Recover “Drop 120, MK-84s from 3 B-52s at location X,Y at 22.00 on D+5”

30 mins 20 mins 40 mins 5 mins 60mins

P R F E RB-52 Flight

P R F E RAAR

P R F E RAWACS

P R F E RBomb Depot

P R F E RCAP Flight Information & Control

P R F E RWeapon Loader

P R F E RSEAD Flight

Page 59: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 59

Example Problem

• The AWACS aborts on take off!

P R F E RB-52 Flight

P R F E RAAR

P R F E RAWACS

P R F E RBomb Depot

P R F E RCAP Flight

P R F E RWeapon Loader

P R F E RSEAD Flight

Page 60: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 60

Summary

Advances in search technology: Tasks Resources Type Feasible?

– 1993: 64 6 Job Shop X – 1996: ~570 17 RCPS barely– 1999: 1000s dozens RCPS – 2001: 10000s hundreds RCPS

• Search works!– search-based technology has matured– large, real-world, problems are solvable– tech-transfer path is short

Page 61: Constraint Based Scheduling and Optimization:  From Research to Application

27th Nov 2001 Univ. Nebraska 61

Questions

?