Twinworks Bottleneck Analysis

Find the constraint of a production line and test fixes: ranked bottlenecks with what-if gains.

A Twinworks project (.twinworks.json, format "twinworks-project") or a bare model with "nodes" and "links". Times in seconds, lengths in metres. Leave empty and pick a template instead.

More options
h

Overrides the model setting.

Try an example: ·

More about this tool

Part of Twinworks

How it works

Ranks the stations of a Twinworks factory model by how often they constrain the line (active-period method: sole and shifting bottleneck shares), explains the dominant loss (working, breakdowns, setups, waiting for operators) and simulates typical improvements of the top bottleneck — an extra server, a 10 % faster cycle, faster repairs, shorter setups, more operators or a bigger buffer — with paired confidence intervals.

  • Each replication records, per station, every active period (uninterrupted time working, in setup, under repair/maintenance or waiting for an operator; starved and blocked times end a period).
  • At every instant the station with the longest current active period is the bottleneck. Where the periods of consecutive bottlenecks overlap, both are shifting bottlenecks; otherwise the station is the sole bottleneck (Roser, Nakano & Tanaka 2001).
  • Stations are ranked by their sole + shifting share averaged over all replications (votes = how often a station was the top bottleneck of a replication); ties are broken by active percentage, then votes. The dominant state and the recommendations use the station states of replication 1.
  • What-if options for the top station are simulated with the same seeds as the baseline (common random numbers); the gain interval is a paired Student-t interval of the throughput differences.

Improvement options are illustrative single changes; real fixes have costs and side effects that the model may not capture.

Sources

Part of Twinworks

  • Twinworks Factory digital twin & production simulation

    Model a production line, simulate it and find the bottleneck — free.

    Open Twinworks

Related tools

How to use the Twinworks Bottleneck Analysis

Find which station really limits a production line, see why it does, and compare simulated fixes such as an extra server, a faster cycle or a bigger buffer.

What it is for

Ask three people on a shop floor where the bottleneck is and you'll often get three answers: the machine with the longest queue, the one with the highest utilization, the one that breaks down most. In a line with variability the constraint can also move around from minute to minute. This tool settles it with the active-period method (Roser, Nakano & Tanaka): at every moment, the station that has been working without interruption the longest is the bottleneck. Where consecutive bottlenecks overlap, both count as shifting.

You give it a Twinworks model or pick a template. It simulates several replications, ranks every station by how often it constrained the line, names the dominant reason (working, breakdowns, setups or waiting for an operator) and, if you leave what-if switched on, tests typical improvements of the top station with the same random numbers as the baseline. You get the gain of each option with a paired confidence interval.

The options are illustrative single changes. Real fixes cost money and may have side effects the model doesn't capture.

Worked example

The first example uses the bottleneck demo template: five stations (Face, Bore, Hone, Wash, Leak test) with 2-place buffers, OP20 Bore breaking down now and then, and OP30 Hone with a highly variable cycle. It ran 5 replications of 8 h.

"OP30 Hone" is the main bottleneck (50.2% of the time; best tested fix: Add a parallel server at "OP30 Hone" (1 → 2), +4.89 parts/h).

Averaged over the five replications, the ranking was OP30 Hone at 50.2 % (34.1 % sole, 16.2 % shifting), then OP20 Bore at 49.5 %, OP40 Wash at 16.3 %, OP10 Face at 6.8 % and the leak test at 0.9 %. The hone and the bore are nearly tied, and the bore was even top in 3 of 5 replications, so the tool adds a note that both are constraints. Baseline throughput was 97.9 parts/h. The what-if results:

Worked example
Option at OP30 HoneGain (parts/h)95 % interval
Second parallel server+4.892.42 – 7.35
Cycle time −10 %+3.692.10 – 5.27
Buffer B2 2 → 5 places+2.512.31 – 2.72

Doubling the hone only buys about 5 %. That's the clue: the recommendations say OP20 Bore will probably limit the line next. With two stations sharing the constraint, fixing one alone has a small effect.

How to read the result

  • Sole / shifting / total: share of time the station was the only bottleneck, a shifting one, and both together.
  • Active %: time working, in setup, under repair or waiting for an operator. Starved and blocked time doesn't count.
  • Dominant state: what fills the active time. "Busy" calls for more capacity; "down" for faster repairs or better maintenance.
  • Top in replications (votes): in how many replications the station came out on top. The shares and the ranking are means over all replications.
  • What-if: throughput and gain per option. An interval entirely above zero is a real improvement, not noise.

Tips and common mistakes

  • Look at the votes, not just the rank. The ranking uses the mean share over all replications, while the votes count which station topped each one. Here OP20 Bore topped 3 of 5 replications although OP30 Hone has the slightly higher mean. Close values mean a shifting bottleneck.
  • A high starving share for the bottleneck (11.3 % here) means lost output upstream. A bigger buffer in front of it is often the cheapest fix.
  • Compare gains with their intervals, not just their means. Overlapping options may be equally good.
  • After choosing a fix, change the model and run the analysis again. The constraint will move.

FAQ

Why isn't the most utilized station always the bottleneck?

Utilization ignores blocking and starving patterns. A station can be busy most of the time yet rarely hold up the line, while another with less utilization causes long interruptions.

What does "shifting" mean?

The bottleneck role passed from one station to another and both were active during the hand-over. Lines with similar stations show a lot of shifting.

Can I test my own improvement?

Edit the model (for example servers, cycle or buffer capacity) and run it again, or use the Buffer & Parameter Sweep for a range of values.

Why use the same seeds for every option?

Common random numbers mean the options see the same arrivals and failures, so the difference comes from the change, not luck.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://twinworksbottleneckanalysis.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://twinworksbottleneckanalysis.usefulweb.site/mcp · tool name twinworks_bottleneck_analysis
Example request
curl -s -X POST https://twinworksbottleneckanalysis.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"template":"bottleneck-buffer-sizing","replications":5,"horizonHours":8}'
Feedback · ideas & bug reports welcome