Professional Documents
Culture Documents
Abstract New uses of robotics in traditionally manual man- However, these methods break down when agents sched-
ufacturing processes require the careful choreography of human ules become tightly intercoupled, as they do when multiple
and robotic agents to support safe and efficient coordinated agents are maneuvering in close physical proximity. While
work. Tasks must be allocated among agents and scheduled
to meet temporal deadlines and spatial restrictions on agent distributed approaches to coordination are necessary for
proximity. These systems must also be capable of replanning on- field operations where environment and geography affect the
the-fly to adapt to disturbances in the schedule and to respond communication among agents, factory operations allow for
to people working in close physical proximity. In this paper, sufficient connectivity and bandwidth for either centralized
we present a centralized algorithm, named Tercio, that handles or distributed approaches to task assignment and scheduling.
tightly intercoupled temporal and spatial constraints and scales
to larger problem sizes than prior art. Our key innovation is In this paper we present Tercio1 , a centralized task as-
a fast, satisficing multi-agent task sequencer that is inspired signment and scheduling algorithm that scales to multi-
by real-time processor scheduling techniques but is adapted agent, factory-size problems and supports on-the-fly replan-
to leverage hierarchical problem structure. We use this fast ning with temporal and spatial-proximity constraints. We
task sequencer in conjunction with a MILP solver, and show demonstrate that this capability enables human and robotic
that we are able to generate near-optimal task assignments
and schedules for up to 10 agents and 500 tasks in less than agents to effectively work together in close proximity to
20 seconds on average. Finally, we demonstrate the algorithm perform manufacturing-relevant tasks.
in a multi-robot hardware testbed. Tercio is made efficient through a fast, satisficing multi-
agent task sequencer that is inspired by real-time processor
I. INTRODUCTION scheduling techniques but is adapted to leverage hierarchical
Robotic systems are increasingly entering domains pre- problem structure. Our task sequencer computes in polyno-
viously occupied exclusively by humans. In manufacturing, mial time a multi-agent schedule that satisfies upperbound
there is strong economic motivation to enable human and and lowerbound temporal deadlines as well as spatial restric-
robotic agents to work in concert to perform traditionally tions on agent proximity. Although the sequencing algorithm
manual work. This integration requires a choreography of is satisficing, we show that it is tight, meaning it produces
human and robotic work that meets upperbound and lower- near-optimal task sequences for real-world, structured prob-
bound temporal deadlines on task completion (e.g. assigned lems. We use this fast task sequencer in conjunction with
work must be completed within one shift) and spatial re- a MILP solver, and show that we are able to generate
strictions on agent proximity (e.g. robots must maintain four near-optimal task assignments and schedules for up to 10
meter separation from other agents), to support safe and agents and 500 tasks in less than 20 seconds on average. In
efficient human-robot co-work. The multi-agent coordination this regard, Tercio scales better than previous approaches to
problem with temporospatial constraints can be readily for- hybrid task assignment and scheduling [7], [8], [13], [14],
mulated as a mixed-integer linear program (MILP). However, [15], [32]. An additional feature of Tercio is that it returns
the complexity of this approach is exponential and leads to flexible time windows for execution [22], [34], which enable
computational intractability for problems of interest in large- the agents to adapt to small disturbances online without a full
scale factory operations [4]. re-computation of the schedule.
Various decentralized or distributed approaches achieve In Section II we place our work in the context of prior art.
fast computation and good scalability characteristics [5], In Section III we formally define the problem we solve and
[6], [9], [24], [31]. Fast computation is desirable because it outline our technical approach. Section IV presents the Tercio
provides the capability for on-the-fly replanning in response algorithm including pseudocode, and Section V describes
to schedule disturbances [2], [6], [27]. These works boost the fast multi-agent task sequencer, called as a subroutine
computational performance by decomposing plan constraints within Tercio. Section VI presents the empirical evaluation,
and contributions to the objective function among agents [5]. and describes the application of the algorithm in a multi-
robot hardware testbed.
*These authors contributed equally to this work. **This work was
supported by Boeing Research and Technology and by the National Science 1 Our method is named Tercio for the Spanish military formation used
Foundation (NSF) Graduate Research Fellowship Program (GRFP) under during the Renaissance period, which consisted of several different types of
grant number 2388357. troops, each with their own strengths, working together as a single unit.
II. R ELATED W ORK and upperbound ub) relating tasks (e.g. the first coat
There is a wealth of prior work in task assignment and of paint requires 30 minutes to dry before the sec-
scheduling for manufacturing and other applications. While ond coat may be applied maps to interval constraint
the problem in many cases may be readily formulated secondCoatStart f irstCoatF inish [30, ), and
and solved as a mixed-integer linear program (MILP), the the constraint that the entire task set must be finished
complexity of this approach is exponential and leads to within the 120 minutes maps to f inishT askset
computational intractability for problems of interest in large- startT askSet [0, 120]),
two-dimensional (x,y) positions specifying the floor
scale factory operations [4]. To achieve good scalability char-
acteristics, various hybrid algorithms have been proposed. A spatial locations where tasks are performed,
agent capabilities specifying the tasks each agent may
brief survey of these methods follows.
One of the most promising approaches has been to perform and the agents expected time to complete each
combine MILP and constraint programming (CP) methods task, and
allowable spatial proximity between agents.
into a hybrid algorithm using decomposition (e.g. Benders
Decomposition) [13], [14], [15]. This formulation is able to A solution to the problem consists of an assignment of
gain orders of magnitude in computation time by using a tasks to agents and a schedule for each agents tasks such
CP to prune the domain of a relaxed formulation of the that all constraints are satisfied and the objective function is
MILP. However, if the CP is unable to make meaningful minimized. The mathematical formulation of the problem is
cuts from the search space, this hybrid approach is rendered presented below:
nearly equivalent to a non-hybrid formulation of the problem.
min f (A, P, J, S, R, ) (1)
Auction methods (e.g. [5]) also rely on decomposition of
problem structure and treat the optimization of each agents subject to X
schedule as independent of the other agents schedules. Aa,j = 1, j (2)
aAg
These techniques preclude explicit coupling in each agents
contribution to the MILP objective function. While the CP lbi tm tn ubi , i T, n, m (3)
and auction-based methods support upperbound and lower-
tE
k tS
k lba,k M (1 Aa,k ), k , a Ag (4)
bound temporal deadlines among tasks, they do not handle
spatial proximity constraints, as these produce tight depen- tE
k tS
k uba,k + M (1 Aa,k ), k , a Ag (5)
dencies among agents schedules that make decomposition tS tE M (1 Ji,j ), i, j R (6)
j i
problematic.
Other hybrid approaches integrate heuristic schedulers tS
i tE
j M Ji,j , i, j R (7)
within the MILP solver to achieve better scalability char-
acteristics. For example, Chen et al. incorporate depth- tS E
j ti M (Ji,j 1) + M (Aa,i + Aa,j 2), i, j (8)
first search (DFS) with heuristic scheduling [8], and Tan
incorporates Tabu Search [32] within the MILP solver. Castro tS E
i tj M Ji,j + M (Aa,i Aa,j 2), i, j (9)
et al. use a heuristic scheduler to seed a feasible schedule
for the MILP [7], and Kushleyev et al. [16] apply heuristics where Aa,j {0, 1} is a binary decision variable for the
for abstracting the problem to groupings of agents. These assignment of agent a to task j. Ji,j is a binary decision
methods solve scheduling problems with 5 agents (or groups variable specifying the relative sequencing of two tasks i
of agents) and 50 tasks in seconds or minutes, and address and j (Ji,j = 1 implies task i occurs before j). T is the
problems with multiple agents and resources, precedence set of all interval temporal constraints relating tasks, and is
among tasks, and temporal constraints relating task start and equivalently encoded and referred to as the Simple Temporal
end times to the plan epoch time. However, more general Problem (STP) [10]. R is the set of task pairs (i, j) that
task-task temporal constraints are not considered. are separated by less than the allowable spatial proximity.
In the next section we describe our approach, which Ag is the set of all agents, is the set of all tasks, and
solves task assignment and scheduling problems with the tSi and tE i represent the start and end times of task i,
full set of features: multiple agents, precedence and temporal respectively. Finally, Pa,i is the variable Aa,i from a previous
constraints among tasks, and spatial proximity constraints. agent allocation, used to avoid oscillation between equivalent
solutions. M is a large positive number, and is used to encode
III. O UR A PPROACH conditional constraints. Figure 1 visually depicts a problem
instance of this MILP, with two robots and six tasks (depicted
A. Problem Statement
as six stripes on the workpiece).
In this section, we formulate the task assignment and Equation 2 ensures that each task is assigned to one agent.
scheduling problem for multiple robots moving and working Equation 3 ensures that the temporal constraints relating
in the same physical space as a mixed-integer linear program tasks are met. Equations 4 & 5 ensure that agents are
(MILP). Problem inputs include: not required to complete tasks faster or slower than they
a Simple Temporal Problem (STP) [10] describ- are capable. Equations 6 & 7 sequence actions to ensure
ing the interval temporal constraints (lowerbound lb that agents performing tasks maintain safe buffer distances
TERCIO(ST P, Pa,i , Ag, , R, cutoff )
1: makespan inf
2: while makespan cutoff do
3: A exclude previous allocation Pa,i from agent capabil-
ities
4: A TERCIO-ALLOCATION(, ST P, Ag)
5: ST P update agent capabilities
6: makespan, seq
TERCIO-SEQUENCER( ,cutoff )
7: end while
Fig. 1. Example of a team of robots assigned to tasks on a cylindrical 8: ST P add ordering constraints to enforce seq
structure. 9: ST P DISPATCHABLE(ST P )
10: return STP
Fig. 4. Computation speed as a function of the number of work packages C. Optimality Levels
and the number of agents. Tercio can solve problems up to hundreds of
tasks in seconds versus the dozen tasks solvable by the MILP benchmark Our fast computation relies on the known structure of our
before it times out. well-formed task model, but it is desirable to be able to take
as input general sets of temporal (STP) constraints. General
STPs can be reformulated into well-formed task models by
a normal distribution with mean set to the tightest possible adding and tightening well-formed temporal constraints to
bound. For values less than the mean, we simply redraw make the constraints that violate the well-formed model
a new deadline value. We vary the number of subtasks mi redundant. We present results with both random problems
that are well-formed and problems that are general but have
n 5n each task i from a uniform distribution in the interval
within
been reformulated into a well-formed task model.
4 , 4 . Lastly, physical locations
Pnof a subtask are drawn
from a uniform distribution in [1, i=1 mi ] where mi is the In Figures 5-6 we show that Tercio is often able to
number of subtasks in i and i is the number of tasks in . achieve makespans within 10% of the optimal makespan
for both well-formed models and general STPs; Tercio is
able to produce less than four additional interfaces when
B. Computation Speeds
compared to the optimal task allocation for well-formed
In Fig. 4 we evaluate scalability and computational speed models and less than eight additional interfaces for general
of Tercio. We show the median and quartiles of computation models. We are unable to measure the suboptimality gap for
time for 25 randomly generated problems, spanning 4 and larger problems due to the computational intractability of the
10 agents, and 5 to 500 tasks (referred to as subtasks in the full MILP. The purpose of Tercio is to solve the problem of
well-formed model). For comparison, we show computation scheduling with tens of agents and hundreds of tasks; as we
time for solving the full MILP formulation of the problem, can see in Figure 5, Tercio tightly tracks the optimal solution
described in Section III. Tercio is able to generate flexible for problems tested.
schedules for 10 agents and 500 tasks in seconds. This is a
significant improvement over prior work [7], [8], [32], [16], D. Robot Demonstration
which report solving up to 5 agents (or agent groups) and We demonstrate the use of Tercio to plan the work of two
50 tasks in seconds or minutes. KUKA Youbots. Video can be found at http://tiny.
[9] J. W. Curtis and R. Murphey. Simultaneous area search and task
assignment for a team of cooperative agents. In IEEE GNC, 2003.
[10] R. Dechter, I. Meiri, and J. Pearl. Temporal constraint networks. AI,
49(1), 1991.
[11] U. C. Devi. An improved schedulability test for uniprocessor periodic
task systems. In Euromicro Technical Committee on Real-Time
Systems, 2003.
[12] M. C. Gombolay and J. A. Shah. Multiprocessor scheduler for task
sets with well-formed precedence relations, temporal deadlines, and
wait constraints. In Proc. AIAA Infotech@Aerospace, 2012.
[13] J. N. Hooker. A hybrid method for planning and scheduling. In Proc.
Carnegie Mellon University Research Showcase, 2004.
Fig. 7. Hardware demonstration of Tercio where two KUKA Youbots build [14] J. N. Hooker. An improved hybrid MILP/CP algorithm framework for
a mock airplane fuselage alongside a human quality assurance agent. the job-shop scheduling. In Proc. IEEE International Conference on
Automation and Logistics, 2009.
[15] V. Jain and I. E. Grossmann. Algorithms for hybrid MILP/CP models
for a class of optimization problems. 13, 2001.
[16] A. Kushleyev, D. Mellinger, and V. Kumar. Towards a swarm of agile
cc/2aytrw. The two robots are working to assemble a micro quadrotors. Robotics: Science and Systems (RSS), July 2012.
mock airplane fuselage. The robots perform their subtasks [17] P. Laborie. Algorithms for propagating resource constraints in ai plan-
at specific locations on the factory floor. To prevent col- ning and scheduling: existing approaches and new results. Artificial
Intelligence, 143(2):151188, Feb. 2003.
lisions, each robot reserves both the physical location for [18] K. Lakshmanan, S. Kato, and R. R. Rajkumar. Open problems in
its subtask, as well as the immediately adjacent subtask scheduling self-suspending tasks. In Proc. Real-Time Scheduling Open
locations. Initially, the robots plan to split twelve identical Problems Seminar, 2010.
[19] K. Lakshmanan and R. R. Rajkumar. Scheduling self-suspending real-
tasks in half down the middle of the fuselage. After the robots time tasks with rate-monotonic priorities. In Proc. Real-Time and
finish their first subtasks, a person requests time to inspect Embedded Technology and Applications Symposium (RTAS), 2010.
the work completed on the left half of the fuselage. In the [20] C. Liu and J. H. Anderson. Task scheduling with self-suspensions
in soft real-time multiprocessor systems. In Proc. Real-Time Systems
problem formulation, this corresponds to adding a resource Symposium (RTSS), 2009.
reservation for the left half of the fuselage for a specified [21] C. Liu and J. H. Anderson. Improving the schedulability of spo-
period of time. Tercio replans in response to the addition radic self-suspending soft real-time multiprocessor task systems. In
Proc. Conference on Real-Time Computing Systems and Applications
of this new constraint, and reallocates the work among the (RTCSA), 2010.
robots in a near-optimal manner to make productive use of [22] N. Muscettola, P. Morris, and I. Tsamardinos. Reformulating temporal
both robots and to keep the number of interfaces low. plans for efficient execution. In Proc. Principles of Knowledge
Representation and Reasoning (KR&R), 1998.
[23] R. R. Rajkumar. Dealing with self-suspending period tasks. Technical
VII. C ONCLUSION report, IBM Thomas J. Watson Research Center, 1991.
We present Tercio, a task assignment and scheduling [24] W. Ren, R. W. Beard, and T. W. McLain. Coordination variables,
coordination functions, and cooperative timing missions. AIAA Journal
algorithm that is made efficient through a fast, satisficing, on Guidance, Control, and Dynamics, 28(1):150161, 2005.
incomplete multi-agent task sequencer inspired by real-time [25] P. Richard. On the complexity of scheduling real-time tasks with
processor scheduling techniques. We use the fast task se- self-suspensions on one processor. In Proc. Euromicro Conference on
Real-Time Systems (ECRTS), 2003.
quencer in conjunction with a MILP solver to compute an in- [26] F. Ridouard and P. Richard. Negative results for scheduling indepen-
tegrated multi-agent task sequence that satisfies precedence, dent hard real-time tasks with self-suspensions. 2006.
temporal and spatial-proximity constraints. We demonstrate [27] S. Sariel and T. Balch. Real time auction based allocation of tasks for
multi-robot exploration problem in dynamic environments. In Proc.
that Tercio generates near-optimal schedules for up to 10 AIAA Workshop on Integrating Planning into Scheduling, 2005.
agents and 500 tasks in less than 20 seconds. [28] D. E. Smith, F. Frank, and A. Jonsson. Bridging the gap between
planning and scheduling. Knowledge Engineering Review, 15, 2000.
R EFERENCES [29] J. Stankovic, M. Supri, M. D. Natale, and G. Buttazzo. Implications
of classical scheduling resuts for real-time systems. 1995.
[1] Gurobi optimizer version 5.0, 2012. [30] J. Sun and J. Liu. Synchronization protocols in distributed real-time
[2] A. Ahmed, A. Patel, T. Brown, M. Ham, M.-W. Jang, and G. Agha. systems. In Proc. International Conference on Distributed Computing
Task assignment for a physical agent team via a dynamic for- Systems, 1996.
ward/reverse auction mechanism. In Proc. International Conference [31] S. J. R. Tal Shima and P. Chandler. UAV team decision and control
on Integration of Knowledge Intensive Multi-Agent Systems, 2005. using efficient collaborative estimation. In Proc. American Control
[3] P. Baptiste and C. L. Pape. Edge-finding consraint propagation Conference (ACC), volume 6, pages 41074112, June 2005.
algorithms for disjunctive and cumulative scheduling. In In Proc. [32] W. Tan. Integration of process planning and scheduling - a review.
Workshop of the U.K. Planning and Special Interest Group, 1996. 11:5163, 2000.
[4] D. Bertsimas and R. Weismantel. Optimization over Integers. Dynamic [33] P. Vilm, R. Bartak, and O. Cepek. Extension of O(n log n) filtering
Ideas, 2005. algorithms for the unary resource constraint to optional activities.
[5] L. Brunet, H.-L. Choi, and J. P. How. Consensus-based auction Constraints, 10(4):403425, Oct. 2005.
approaches for decentralized task assignment. In AIAA Guidance, [34] R. J. Wilcox, S. Nikolaidis, and J. A. Shah. Optimization of
Navigation, and Control Conference (GNC), 2008 (AIAA-2008-6839). temporal dynamics for adaptive human-robot interaction in assembly
[6] D. A. Castanon and C. Wu. Distributed algorithms for dynamic manufacturing. In Proc. Robotics: Science and Systems (RSS), 2012.
reassignment. In IEEE Conference on Decision and Control (CDC),
volume 1, pages 1318, December 2003.
[7] E. Castro and S. Petrovic. Combined mathematical programming
and heuristics for a radiotherapy pre-treatment scheduling problem.
15(3):333346, 2012.
[8] J. Chen and R. G. Askin. Project selection, scheduling and resource
allocation with time dependent returns. 193:2334, 2009.