A sewing line can have enough total labour and still miss its target, with one station waiting while another holds a growing queue. Moving a task may help, but only if the new station has the right machine, skills and place in the work sequence.
Line balancing makes those conditions explicit by assigning tasks to stations while respecting the required order and the time available at each station. A mathematical model can search many assignments, but the result is useful only when its inputs describe the floor.
Because a task either belongs to a station or it does not, the model uses binary variables and is a mixed-integer linear programming model, or MILP. A continuous linear programme that permits fractions of an indivisible task solves a different problem.
The operation times and production figures are teaching inputs intended to explain how a model is defined, solved and checked before its proposal is tested in production; they are not results from a measured factory trial.
Choose the decision before writing equations
Two common versions of the problem answer different questions. Type 1 fixes the cycle time and minimizes the number of stations, whereas Type 2 fixes the available station count and minimizes cycle time. The assembly-line balancing research site defines these standard problem types.
A question about distributing fabric between sites needs a fabric-allocation transportation model. Define its supply, destination and shipment variables separately from the station-assignment decisions used in this sewing example.
Use Type 1 when demand sets the pace and the question is how many stations are required, or Type 2 when a stated set of stations is available and the question is what cycle time they can support.
Headcount can differ from station count because one person may attend several machines, or a station may require more than one person. Such arrangements need a model that represents them, whereas the simple model here assumes one capacity-limited station for each assigned task group.
Also distinguish balancing from sequencing. Johnson's rule orders jobs through two stages under its assumptions, rather than assigning the operations of one garment to sewing stations.
Put target output and time on one basis
Required cycle time equals available production time divided by required output, so first establish whether the target means pieces per hour, shift or day.
A target of 480 pieces in 480 available minutes requires one piece per minute, whereas a target of 480 pieces per hour requires one every 0.125 minutes. The second target is eight times faster, so leaving the period off the target creates a major modelling error.
Available time must match the basis of the task times. If breaks, delays or allowances have already been treated in one part of the calculation, do not deduct or apply them again elsewhere without justification.
Use the standard minute value guide to check the method and time basis. A stale SMV from a different attachment or work method can distort the balance even when every equation is correct.
Prepare the inputs the solver needs
Create a task list with stable IDs, clear descriptions and times in one unit, recording each immediate predecessor, the machine needed, relevant skill limits and any justified grouping rule.
Map the work with the people who perform it. A missing predecessor may place an operation before the part is ready, while an unnecessary predecessor can prevent an otherwise valid improvement. Each link needs a process reason.
Input | What to record | Common problem to avoid |
|---|---|---|
Task time | Current standard time and method version | Mixing seconds with minutes |
Precedence | Which tasks must finish first | Adding an order merely because it is familiar |
Machine fit | Allowed task and station pairs | Assigning work to an unsuitable machine |
Skills | Qualified people and relevant restrictions | Using an outdated staffing plan |
Grouping | Tasks that must share a station, with reasons | Forcing unrelated tasks together |
Available time | Shift and allowance basis | Counting the same loss twice |
Keep the approved input file and update its version when a floor trial changes an assumption, allowing a fair comparison with the next solution.
Define a basic Type 2 MILP
Let i identify a task and k identify a station. Number stations in the direction of flow. Let t[i] be the task's fixed time in minutes, and let C be the cycle time to minimize.
Define x[i,k] as one when task i is assigned to station k and zero otherwise, preventing the model from dividing a task between stations.
Objective: minimize C.
Assignment rule, for every task i:
Sum over stations k of x[i,k] = 1.
Capacity rule, for every station k:
Sum over tasks i of t[i] × x[i,k] ≤ C.
Precedence rule, for every required pair a before b:
Sum over k of k × x[a,k] ≤ sum over k of k × x[b,k].
Variable limits:
x[i,k] is binary, and C ≥ 0.
While the assignment rule gives each task one home, the capacity rule prevents a station's total assigned work from exceeding C, and the precedence rule prevents a successor from appearing at an earlier station.
Although predecessor and successor may share a station, their order within that station must still follow the process requirements. The model also assumes that task times can be added without an unrecorded setup or handling penalty.
Add the constraints that make the assignment usable
Set x[i,k] = 0 when station k cannot perform task i, a restriction that can represent machine or skill limits when the station's equipment and staffing are fixed. Update those restrictions when the resource plan changes.
If tasks i and j must remain together, require x[i,k] = x[j,k] for every station k. Use this only where a real quality, handling or process reason requires the grouping, because a convenient habit is not necessarily a technical constraint.
Some limits need a richer model. Shared machines, helpers serving several stations, batch fusing and travel between areas may create interactions that a simple exclusion cannot capture, so check tools, space, safe handling and access before treating a proposed task group as feasible.
If changing between tasks creates setup time, include a valid representation of that time. Research by Zhang and Beck on balancing with setups treats sequence-dependent setup as part of the problem. It should not disappear merely because the basic teaching model omits it.
Adapt the model when station count is the objective
For Type 1, fix the required cycle time at C_target and introduce binary y[k], a variable that is one if a possible station is used and zero if it is not.
Objective: minimize the sum of y[k].
For every task and station, require x[i,k] ≤ y[k], which prevents assignment to a station marked unused. Limit each station's task load to C_target × y[k], and retain the assignment and precedence rules.
A rule such as y[k] ≥ y[k+1] keeps the used stations together in the numbering by removing equivalent patterns with empty stations between used ones.
Here C_target is a fixed input, so multiplying it by y[k] remains linear. Do not make both factors decision variables and assume the same expression is still linear, because joint choices may need a different formulation.
Check a ten-operation garment example
The example uses collar and neckline tasks with 3.52 minutes of total work. Operations four and five may occur in either order, but both must finish before operation six. All other links form a sequence.
Assume the stated groups can share the necessary tools and skills, a teaching assumption that needs to be verified on a real floor, especially where fusing and sewing tasks are grouped.
ID | Operation | Time, minutes | Must follow |
|---|---|---|---|
1 | Attach interlining to collar band | 0.42 | None |
2 | Fuse collar | 0.35 | 1 |
3 | Trim and turn collar | 0.28 | 2 |
4 | Topstitch collar edge | 0.48 | 3 |
5 | Mark collar point | 0.15 | 3 |
6 | Attach collar to neckline | 0.62 | 4 and 5 |
7 | Understitch neck seam | 0.38 | 6 |
8 | Attach main label | 0.22 | 7 |
9 | Topstitch neckline | 0.44 | 8 |
10 | Trim thread and inspect | 0.18 | 9 |
Suppose the requirement is 480 pieces in an eight-hour shift, with all 480 minutes available on the agreed model basis. The required cycle time is 480 ÷ 480 = 1.00 minute.

A content-based lower bound on station count is 3.52 ÷ 1.00 = 3.52, which means at least four stations are required because stations are whole units. The lower bound establishes a necessary capacity condition, but precedence and resource restrictions must also be checked before four stations can be considered feasible.
Verify a feasible four-station assignment
The following assignment meets the teaching model's one-minute cycle and precedence rules.
Station | Tasks | Load, minutes | Idle time against one minute |
|---|---|---|---|
1 | 1 and 2 | 0.77 | 0.23 |
2 | 3, 4 and 5 | 0.91 | 0.09 |
3 | 6 and 7 | 1.00 | 0.00 |
4 | 8, 9 and 10 | 0.84 | 0.16 |
Every task appears once in the assignment, with no predecessor placed after its successor, and the station loads sum to 3.52 minutes. The idle amounts sum to 0.48 minutes per cycle.
Balance efficiency = total work content ÷ (stations × cycle time).
Balance efficiency = 3.52 ÷ (4 × 1.00) = 88 percent.
Balance loss = 100 − 88 = 12 percent.
Four stations meet the target and match the rounded lower bound, proving the minimum station count for this example. For the related Type 2 problem, checking the feasible ordered task groupings gives a minimum cycle time of 1.00 minute with four stations.
Although the content-only cycle bound is 3.52 ÷ 4 = 0.88 minute, the indivisible tasks and precedence constraints prevent a feasible assignment at that cycle time. A lower bound is a test of possible performance, not a runnable assignment.
Examine what a fifth station would change
Keeping a one-minute target while adding a fifth station gives balance efficiency of 3.52 ÷ 5 = 70.4 percent, because the target has stayed unchanged while capacity has increased; it does not mean the extra station could never help.
Under the same teaching assumptions, a new five-station assignment can reach a 0.77-minute cycle:
Station | Tasks | Load, minutes |
|---|---|---|
1 | 1 and 2 | 0.77 |
2 | 3 and 4 | 0.76 |
3 | 5 and 6 | 0.77 |
4 | 7 and 8 | 0.60 |
5 | 9 and 10 | 0.62 |
Its theoretical steady rate is 60 ÷ 0.77, or about 77.9 pieces per hour, compared with the sixty per hour supported by the four-station assignment on the same basis. The fifth station's value therefore depends on demand, cost and whether the new grouping works in practice.
This is not a promised shift output, because start-up, feeding, variation and other unmodelled losses can change actual production. Use the capacity decision-tree guide to examine the business choice separately from the balance calculation.
Build the model in a tool of suitable size
A spreadsheet can make a small model easy to inspect when tasks are placed in rows, stations in columns and binary assignment cells at their intersections. Row sums enforce one assignment; weighted column sums calculate station loads.
The Microsoft Solver guide explains objective cells, constraints and binary variables. Its standard limit is 200 variable cells, while a forty-two-task by thirty-six-station grid already contains 1,512 binary variables, plus C for Type 2.
Use a suitable solver or a justified reduction in model size when the software cannot handle the full problem, rather than removing real constraints merely to fit a tool limit. Check the installed product's capabilities and keep formulas linear where the model requires linearity.
PuLP is a Python modelling option that can call compatible solvers. Use documentation for the installed version, because interfaces and solver installation requirements can change. Preserve the model file, input data, solver version and settings alongside the result.
Decide how operator differences enter the model
The basic formulation uses one time for each task, regardless of its station. That is an assumption to examine when operators have different skills or when the available machines run the same method differently.
If staffing and equipment are fixed, a richer model can use t[i,k], the time for task i at station k, so that its station load becomes the sum of t[i,k] multiplied by x[i,k]. These times need a sound and consistent measurement basis; they should not be guessed to make a preferred assignment win.
If the decision also assigns people to stations, extra variables and linking rules are needed, because a skill exclusion alone does not model every difference in pace or shared support. Keep the simpler formulation where it answers the decision, but state its limits before comparing its result with a more detailed model.
Read solve status before claiming an optimum
A solver may find a feasible assignment before it proves that no better one exists, and a time limit can stop the search before that proof. Report the status, best feasible objective, bound and remaining gap rather than labelling every returned solution optimal.
Gurobi's explanation of the MIP gap distinguishes the feasible objective from its bound. For a minimization example with a feasible cycle of 1.00 and a bound of 0.98, the relative gap is two percent under its stated formula.
Optimality also depends on the solver's tolerances and the model supplied, so a proven model optimum does not establish that an omitted machine limit is harmless. Check every task, station load and precedence link after solving.
An infeasible status also needs investigation because it may reflect an impossible target, a wrong unit, an accidental restriction or inconsistent data. Changing the target is only one possible response.
Use a heuristic as a practical cross-check
For comparison, a largest-candidate approach sorts tasks by descending time and selects the longest eligible task that fits the current station, with eligibility determined by precedence and all relevant floor limits.
Open the next station when no eligible task fits, documenting how ties are handled and retaining the resulting assignment for comparison. This greedy method is quick, but it need not find the best solution.
Compare both methods under the same inputs and constraints, investigating the difference if a heuristic appears to beat a claimed optimum. One model may have a different time basis, an omitted rule or an unproven solve status.
For a separate illustration, 18.6 minutes of work across thirty-six stations gives a content-based cycle bound of about 0.517 minute, implying at most about 116.1 pieces per hour before other constraints. Feasible cycles of 0.55 and 0.58 would give about 109.1 and 103.4 pieces per hour respectively.
Their balance losses of about 6.1 and 10.9 percent are conditional calculations, rather than universal targets or evidence that a particular forty-two-operation line can achieve them.
Test the assignment under real operating conditions
A static model uses fixed times, so it does not represent every cycle's variation, unexpected absence or short interruption. Measure those effects instead of assuming the balance score captures them.
The coefficient of variation, calculated as standard deviation divided by mean, can describe time variation, but there is no universal value that makes every line-balancing model valid or invalid. The consequences depend on the task, buffers and operating system.
Mixed styles require attention to their actual mix and sequence, because a good balance for one style may work poorly after a changeover. Scenario analysis can test selected conditions, while simulation can examine time-dependent queues and variation.
During a trial, record output, quality, waiting, work in progress and staffing, then investigate the gap between the model and observation before blaming one omitted constraint. Feeding problems may need the cutting-to-sewing kanban approach, while an unsuitable grouping needs a revised assignment.
Keep balance efficiency distinct from measured shift efficiency. Review sooner after a method, staffing or equipment change, and revise standard times only through the proper study process. The model should give the supervisor a traceable plan to test and improve.
Linear Programming (MILP) Formulation Cheat Sheet for Sewing Line Balancing
In industrial engineering, sewing line balancing is formulated as a Mixed-Integer Linear Program (MILP) using a binary assignment variable xi,k ∈ {0, 1} equal to 1 if sewing operation i (with standard minute value ti) is assigned to workstation k, and 0 otherwise:
MILP Model Component | Mathematical Form | Practical Meaning on the Sewing Floor |
|---|---|---|
Type 1 Objective (Fixed Takt) | Minimize | Find the fewest operators/workstations needed to meet a fixed buyer daily output target |
Type 2 Objective (Fixed Headcount) | Minimize | Maximize hourly output from an existing fixed team of m operators |
Occurrence Constraint |
| Every operation in the garment operation bulletin is assigned to exactly one workstation |
Cycle-Time Constraint |
| Total SMV loaded onto any workstation cannot exceed the line cycle time C |
Precedence Constraint |
| Predecessor operation u (e.g., side seam) must finish at or before station running successor v (e.g., hem) |
Machine-Type Compatibility |
| Prevents mixing incompatible machines (e.g., lockstitch and 5-thread overlock) on one workstation unless a dual-machine layout is approved |
Choosing a Practical Solver: For styles under 35 operations, Excel Solver (Simplex LP / Branch & Bound) or OpenSolver solves to proven optimality in seconds; for complex jackets or jeans (50–120 operations with skill matrices), use Python PuLP / CBC or Google OR-Tools CP-SAT. Validate every solver output against actual sewing line efficiency, hourly target capacity, and verified SMV inputs before moving machines on the floor.
Engineers and students who want to take linear programming and operations research into graduate study can compare accredited master's programs worldwide on MastersIndex.
References
Assembly Line Balancing research site: SALBP, for problem definitions and assumptions.
Microsoft: define and solve a problem with Solver, for spreadsheet variables, constraints and limits.
PuLP documentation, for modelling and compatible solver setup.
Gurobi: MIP gap, for feasible solutions, bounds and optimality tolerance.
Zhang and Beck: assembly-line balancing with setups, research on problems that include task-dependent setup effects.







Discussion0
Loading the discussion…