Skip to main content

Crew Task Assignment

Generalized Assignment Problem · NP-Hard

Construction · Resource & Workforce · Tactical
Site Selection Portfolio Selection Project Scheduling Procurement Crew Assignment

Mismatched crew-to-task assignments waste 12–18% of daily labor hours on construction sites through skill gaps, travel between zones, and idle time between tasks. Every morning, a site foreman must assign 8–15 specialized crews to 20–30 tasks across multiple building zones. This is the Generalized Assignment Problem — NP-hard — where each crew has limited capacity and different efficiency on different task types.

The Problem

Site Operations · Crew Assignment

On a large construction site, each morning begins with a critical planning session: which crew handles which tasks? The site foreman must balance crew skill types (concrete, steel, electrical, plumbing, carpentry, painting, HVAC, glazing), daily hour capacities, task skill requirements, and zone locations across the site. Unlike the Linear Assignment Problem where each agent gets exactly one task, the GAP allows multiple tasks per crew subject to capacity constraints — making it NP-hard.

The cost of assigning task j to crew i captures the skill mismatch penalty (high when a crew lacks the required trade), a zone travel cost, and a productivity factor based on crew experience with that task type. Each crew has a limited number of daily hours, and every task must be assigned to exactly one qualified crew.

OR Concept Construction Mapping
Generalized Assignment Problem Formulation minimize   Σi Σj cij · xij   // total assignment cost
subject to
  Σj aij · xij ≤ bi    // crew i capacity (daily hours)
  Σi xij = 1         // each task assigned to exactly one crew
  xij ∈ {0, 1}   // binary assignment decision

Where cij is the cost of assigning task j to crew i, aij is the hours required, and bi is crew i’s daily hour capacity.

See full Assignment Problem theory

Try It Yourself

Assign crews to tasks and compare algorithms

Crew Task Assignment Optimizer

8 Crews · 20 Tasks

Ready. Select a scenario and click Solve.

Algorithm Total Cost Feasible Time
Assignment details will appear here after solving.

The Algorithms

From relaxation-based bounds to local search improvements

Key Insight
The Generalized Assignment Problem is NP-hard — even checking whether a feasible assignment exists is NP-complete. Unlike the classic LAP, no polynomial-time exact algorithm is known. In practice, we combine relaxation-based lower bounds with heuristics to find near-optimal assignments within the foreman’s morning planning window.
Relaxation · Lower Bound

Hungarian Relaxation (LAP Relaxation)

O(n³) relaxed  |  Provides lower bound

Relax the capacity constraints and solve the resulting Linear Assignment Problem using the Hungarian algorithm. This gives a lower bound on the optimal GAP cost. If the LAP solution happens to satisfy all capacity constraints, it is also optimal for the GAP. Otherwise, the gap between the LAP bound and the best feasible solution quantifies how much the capacity constraints cost.

For construction scheduling, the relaxation often reveals which crews are over-committed, guiding the foreman toward capacity-feasible adjustments.

Heuristic

Greedy Assignment

O(n · m · log(n · m))  |  No optimality guarantee

Sort all crew-task pairs by cost (ascending). Iterate through the sorted list: assign a task to a crew if the crew is qualified and has remaining capacity. This greedy approach is fast and produces a feasible solution, but it can miss globally better assignments by committing to locally cheap pairs too early.

In practice, greedy often performs within 10–20% of optimal for well-structured instances, but can degrade significantly when crew capacities are tight and skill requirements are heterogeneous — common on multi-trade construction sites.

Metaheuristic · Improvement

Local Search (Swap Neighborhood)

O(k · n · m) per iteration  |  Improves feasible solution

Starting from the greedy solution, iteratively try swapping task assignments between two crews. A swap is accepted if it reduces total cost while maintaining feasibility (both crews remain within capacity). The search continues until no improving swap exists or a maximum iteration count is reached.

Swap-based local search is the workhorse of practical GAP solvers. It typically closes 30–60% of the gap between greedy and optimal, runs in milliseconds, and is easy for site managers to understand and trust.

Real-World Complexity

Why construction crew assignment goes beyond a simple cost matrix

Beyond the Assignment Matrix

  • Multi-skill crews — Some crews carry secondary skills (e.g., a concrete crew that can also do formwork); exploiting secondary skills increases flexibility but complicates the cost model
  • Precedence constraints — Structural steel must precede cladding; electrical rough-in precedes drywall. Task ordering limits which assignments are feasible on a given day
  • Zone congestion — Assigning too many crews to the same zone causes physical congestion, crane conflicts, and safety hazards
  • Weather dependencies — Exterior tasks (glazing, roofing, concrete pours) are weather-sensitive; the foreman may need to reassign crews mid-day when conditions change
  • Overtime and subcontracting — When in-house capacity is insufficient, the foreman must decide between overtime (1.5× cost) and subcontractor call-up (2× cost, lead time)

Related Resource & Scheduling Variants

Crew assignment sits between project scheduling and resource leveling

Project Scheduling (RCPSP). The schedule dictates when each activity runs; crew assignment answers who does it. → Open Project Scheduling
Resource Leveling. Once crews are assigned, the resource histogram can be smoothed within activity float. → Open Resource Leveling
Time-Cost Tradeoff (MRCPSP). Shift modes (single / double / crashed) are crew-assignment choices embedded in the TCTP mode set. → Open Time-Cost Tradeoff
Linear / LOB Scheduling. On repetitive projects, crew assignment shifts from one-shot GAP to crew-continuity-constrained LSM. → Open Linear Scheduling
Punch List Scheduling. Closeout crew assignment is the operational-level cousin using parallel-machine scheduling. → Open Punch List
Cross-domain: Nurse Rostering. Healthcare's analogue assigns specialised nurse skills to shifts — same assignment structure, different domain. → Open Nurse Rostering

Key References

Foundational works in assignment and construction scheduling

Kuhn, H. W. (1955).
“The Hungarian method for the assignment problem.”
Naval Research Logistics, 2(1-2), 83–97. (LAP-polynomial; foundational for assignment IPs.) doi:10.1002/nav.3800020109
Munkres, J. (1957).
“Algorithms for the assignment and transportation problems.”
SIAM Journal, 5(1), 32–38. (Kuhn-Munkres \( O(n^3) \) implementation.) doi:10.1137/0105003
Ross, G. T., & Soland, R. M. (1975).
“A branch and bound algorithm for the generalized assignment problem.”
Mathematical Programming, 8(1), 91–103. (Establishes GAP branch-and-bound baseline.) doi:10.1007/BF01580430
Martello, S., & Toth, P. (1990).
Knapsack Problems: Algorithms and Computer Implementations.
Wiley. Chapter 7 is the canonical GAP reference for mathematical programmers.
Osman, I. H. (1995).
“Heuristics for the generalised assignment problem: simulated annealing and tabu search approaches.”
OR Spektrum, 17(4), 211–225. (Metaheuristic SA/TS for GAP; the pattern implemented on this page.) doi:10.1007/BF01720977
Jonker, R., & Volgenant, A. (1987).
“A shortest augmenting path algorithm for dense and sparse linear assignment problems.”
Computing, 38(4), 325–340. (The Jonker-Volgenant LAP implementation, widely used in practice.) doi:10.1007/BF02278710
Hegazy, T., & Kassab, M. (2003).
“Resource optimization using combined simulation and genetic algorithms.”
Journal of Construction Engineering and Management, 129(6), 698–705. (Construction-specific crew-task assignment with GA.) doi:10.1061/(ASCE)0733-9364(2003)129:6(698)

Need to optimize your construction operations?

From crew assignment to project scheduling and resource leveling, mathematical modeling can transform site productivity. Let’s discuss how Operations Research can work for your organization.

Disclaimer
Data shown is illustrative. Crew names, task descriptions, cost parameters, and zone layouts are representative scenarios for educational purposes and do not reflect any specific construction project or real workforce data.
Back