Dynamic Schedule Management: Lessons from the Air

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
27th Nov 2001
Univ. Nebraska
1
Overview
• Constraint based scheduling
• Algorithms
– LDS and Schedule Pack
– Squeaky Wheel Optimization
• Applications
– Aircraft assembly
– Ship construction
• Future Directions
• Summary
27th Nov 2001
Univ. Nebraska
2
Constraint Based Scheduling
• Problem characteristics
• Search based techniques
27th Nov 2001
Univ. Nebraska
3
Problem Characteristics
– Task details:
• resource requirements
• deadlines/release times
• value
27th Nov 2001
Univ. Nebraska
3
4
Problem Characteristics
– Task details
– Resource characteristics:
•
•
•
•
type
capacity
availability
speed, etc.
27th Nov 2001
Univ. Nebraska
4
5
Problem Characteristics
¨
¨
¨
Task details
Resource characteristics
Precedences:
– necessary orderings
between tasks
27th Nov 2001
Univ. Nebraska
5
6
Problem Characteristics
– Constraints:
¨
Task details
Resource characteristics
¨
Precedences
¨
27th Nov 2001
•
•
•
•
Univ. Nebraska
6
setup costs
exclusions
reserve capacity
union rules/business rules
7
Problem Characteristics
– Constraints
¨
Task details
¨
Resource characteristics
¨
Precedences
27th Nov 2001
– Optimization criteria:
• makespan, lateness, cost,
throughput
Univ. Nebraska
7
8
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
27th Nov 2001
Univ. Nebraska
8
9
Search-based Techniques
• Systematic
– explore all possibilities
• Depth-First Search
• Limited Discrepancy Search
• Nonsystematic
– explore only “promising” possibilities
• WalkSAT
• Schedule Packing
27th Nov 2001
Univ. Nebraska
9
10
Heuristic Search
– A heuristic prefers some choices over others
– Search explores heuristically preferred options
27th Nov 2001
Univ. Nebraska
10
11
Limited Discrepancy Search
– Better model of how heuristic search fails
27th Nov 2001
Univ. Nebraska
11
12
Limited Discrepancy Search
– LDS-n deviates from heuristic exactly n times
on path from root to leaf
LDS-0
27th Nov 2001
LDS-1
Univ. Nebraska
12
13
Schedule Packing
– Post-processing to exploit opportunities
1
1
2
27th Nov 2001
2
Univ. Nebraska
13
14
Schedule Packing
– schedule longest chains first
• starting from right
1
1
2
2
1
1
2
27th Nov 2001
Univ. Nebraska
14
2
15
Schedule Packing
– repeat, starting from the left
1
1
2
2
1
1
2
27th Nov 2001
2
Univ. Nebraska
15
16
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
27th Nov 2001
Univ. Nebraska
17
Priority Space
• Coupled search space
P
S
P’
S’
Priority Space
27th Nov 2001
Solution Space
Univ. Nebraska
18
Architecture
• Construct Analyze Prioritize loop
P
Construct
S
Analyze
P’
Prioritize
Construct
Priority Space
27th Nov 2001
S’
Solution Space
Univ. Nebraska
19
Construction
• Construct a solution taking each task in
sequence
P
Construct
S
Analyze
Prioritize
P’
Construct
Priority Space
27th Nov 2001
S’
Solution Space
Univ. Nebraska
20
Analysis
• Assign blame problem elements, relatively
simple
P
Construct
S
Analyze
P’
Prioritize
Construct
Priority Space
27th Nov 2001
S’
Solution Space
Univ. Nebraska
21
Prioritization
• Adjust priority sequence according to blame
P
Construct
S
Analyze
P’
Prioritize
Construct
Priority Space
27th Nov 2001
S’
Solution Space
Univ. Nebraska
22
Large Coherent Moves
• High priority tasks handled well lower tasks fill
in.
P
Construct
S
Analyze
P’
Prioritize
Construct
Priority Space
27th Nov 2001
S’
Solution Space
Univ. Nebraska
23
Squeaky Wheel Optimization
Mission 1234
AAR 234
SEAD 34
Construct
Mission 4567
27th Nov 2001
Univ. Nebraska
24
Squeaky Wheel Optimization
A
n
a
l
y
z
e
“High attrition rate”
“Outside target time window”
“Low success rate”
“Not attacked”
27th Nov 2001
Univ. Nebraska
25
Squeaky Wheel Optimization
P
r
i
o
r
i
t
i
z
e
27th Nov 2001
Univ. Nebraska
26
Squeaky Wheel Optimization
P
r
i
o
r
i
t
i
z
e
27th Nov 2001
Univ. Nebraska
27
Squeaky Wheel Optimization
Construct
27th Nov 2001
Univ. Nebraska
28
Scalability
25
% Over Best
Solution
20
15
TABU
LP/IP
SWO
10
5
0
0
50
100
150
Number of Tasks
200
250
300
Applications
27th Nov 2001
Univ. Nebraska
16
30
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
27th Nov 2001
Univ. Nebraska
17
31
Problem Specification
– Task/precedence specification
• mostly already existed for regulatory reasons
27th Nov 2001
Univ. Nebraska
18
32
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.
27th Nov 2001
Univ. Nebraska
19
33
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
27th Nov 2001
Univ. Nebraska
20
34
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
27th Nov 2001
Univ. Nebraska
21
35
The Optimizer
• LDS to generate seed schedules
• Schedule packing to optimize
– intensification improves convergence speed
• etc.
27th Nov 2001
Univ. Nebraska
22
36
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
27th Nov 2001
Univ. Nebraska
23
37
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
27th Nov 2001
Univ. Nebraska
24
38
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
27th Nov 2001
Univ. Nebraska
25
39
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!!!
27th Nov 2001
Univ. Nebraska
26
40
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
27th Nov 2001
Univ. Nebraska
27
41
Problem Specification
• reschedule shipyard operations to reduce
wasted labor expenses
• efficient management of labor profiles
– reduce overtime and idle time
– hiring and RIF costs
27th Nov 2001
Univ. Nebraska
42
Optimizer
• ARGOS is new technology developed
specifically with these goals in mind
27th Nov 2001
Univ. Nebraska
43
Performance: One Boat
• Labor costs of existing schedule: $155m
• Time to produce existing schedule: ~6 weeks
Iteration Time
1
2 min
7
10 min
20
34 min
Savings
8.4% $13.0M
11.4% $17.7M
11.8% $18.2M
Ultimate ~24hrs
15.5% $24.0M
• 15% reduction in cost, 50x reduction in
schedule development time
27th Nov 2001
Univ. Nebraska
44
Performance: Whole Yard
• All hulls, about 5 years of production
• Estimated cost of existing schedule: $630M
Iteration
1
7
20
Time
24 min
60 min
4 hours
Ultimate 4 days
Savings
7.8% $49M
10.2% $65M
10.7% $68M
11.5% 73M
• No existing software package can deal with
the yard coherently
27th Nov 2001
Univ. Nebraska
45
Extensions
• Shared resources
– dry dock
– cranes
• Sub-assemblies
– provided by different yards and suppliers
• Repair
– dealing with new jobs
27th Nov 2001
Univ. Nebraska
46
Future Applications
• Workflow management
– STRATCOM checklist manager
– IBM
• E-Business
– supply chain management
• Military
– air expeditionary forces
– logistics
27th Nov 2001
Univ. Nebraska
47
Future Work
• Robustness
• Distributed scheduling
• Common task description
27th Nov 2001
Univ. Nebraska
48
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
27th Nov 2001
Univ. Nebraska
49
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
27th Nov 2001
Univ. Nebraska
50
Semi-Flexible Constraints:
Pointer Based
“Attack the IAD before power system”
IAD-E
0
IAD-L
Power-E
3000
Power-L
6000
Time (Minutes)
27th Nov 2001
Univ. Nebraska
51
Semi-Flexible Constraints:
Pointer Based
“Attack the IAD before power system”
IAD-E
0
IAD-L
Power-E
3000
Power-L
6000
Time (Minutes)
27th Nov 2001
Univ. Nebraska
52
Semi-Flexible Constraints:
Pointer Based
“Attack the IAD before power system”
IAD-E
0
IAD-L
Power-E
3000
Power-L
6000
Time (Minutes)
27th Nov 2001
Univ. Nebraska
53
Semi-Flexible Constraints:
Ripple Based
“Attack the IAD before power system”
IAD-E
0
IAD-L
Power-E
Power-L
3000
6000
Time (Minutes)
27th Nov 2001
Univ. Nebraska
54
Semi-Flexible Constraints:
Ripple Based
“Attack the IAD before power system”
IAD-E
0
Power-E
IAD-L
3000
Power-L
6000
Time (Minutes)
27th Nov 2001
Univ. Nebraska
55
Semi-Flexible Constraints:
Ripple Based
“Attack the IAD before power system”
IAD-E
0
Power-E
IAD-L
3000
Power-L
6000
Time (Minutes)
27th Nov 2001
Univ. Nebraska
56
Semi-Flexible Constraints:
Ripple Based
“Attack the IAD before power system”
IAD-E
0
IAD-L Power-E
3000
Power-L
6000
Time (Minutes)
27th Nov 2001
Univ. Nebraska
57
Common Task Model
Plan Ready
Fly
30 mins 20 mins
P
Execute
Recover
5 mins
60mins
40 mins
R
F
E
R
Bomb Depot
P
P
R
R
F
F
E
E
R
R
P
AAR
P
R
R
F
F
E
E
R
R
SEAD Flight
B-52 Flight
AWACS
P
P
27th Nov 2001
“Drop 120, MK-84s
from 3 B-52s at
location X,Y at 22.00
on D+5”
R
F
E
R
R
F
E
CAP Flight
Univ. Nebraska
R
Weapon Loader
Information & Control
58
Example Problem
• The AWACS aborts on take off!
P
R
F
E
R
Bomb Depot
P
P
R
R
F
F
E
E
R
R
P
AAR
R
R
F
F
E
E
R
R
SEAD Flight
B-52 Flight
AWACS
P
P
27th Nov 2001
P
R
F
E
R
R
F
E
R
Weapon Loader
CAP Flight
Univ. Nebraska
59
Summary
Advances in search technology:
–
–
–
–
1993:
1996:
1999:
2001:
Tasks
64
~570
1000s
10000s
Resources
6
17
dozens
hundreds
Type
Feasible?
Job Shop X
RCPS
barely
RCPS

RCPS

• Search works!
– search-based technology has matured
– large, real-world, problems are solvable
– tech-transfer path is short
27th Nov 2001
Univ. Nebraska
60
Questions
?
27th Nov 2001
Univ. Nebraska
61