ISE / SYS 5517 · WEEK 9 · v1

排队网络
逐步计算每个站与整个系统

Queueing Networks · Detailed Bilingual Self-Study

开放网络 · 封闭网络 · 制造案例 · Excel · 离线计算器

计算器 / Calculator

学习路线:从单队列到排队网络

Study roadmap: from one queue to a network

三讲总览 / Overview

Week 7 中,你研究一条队列:顾客来了、排队、接受服务、离开。Week 9 把多个这样的站点连接起来:一个任务完成一站后,还可能去下一站,甚至回到前面的站。我们先算“每站实际有多忙”,再算整个网络的表现。

Week 7 studied one queue. Week 9 connects stations: a job may visit another station or return to a previous station. First find the traffic at each station, then evaluate network performance.

软件类比:一个请求可能依次经过解析、数据库、推理和日志服务;如果失败重试,就会再次访问某站。生产线类比:一个托盘携带工件,在加工站与运输站之间循环。

Software example: a request visits parsing, database, inference, and logging services. A retry creates another visit. Manufacturing example: a pallet circulates between processing and transport stations.

阶段 / Stage读什么 / Read完成后能做什么 / Outcome
1第1–5节 / Sections 1–5开放网络:列流量方程,求有效到达率 / Open traffic equations
2第6–12节 / Sections 6–12封闭网络:状态、权重、G表、吞吐量 / Closed network calculation
3第13–16节 / Sections 13–16制造案例、成本与课件核对 / Case study and checks
4第17–20节 / Sections 17–20计算器、Excel、练习与公式表 / Tools and review

1.站点、路由与网络边界

Stations, routing, and network boundaries

Lecture 1 · slides 2–4

站点 station 是一组服务资源及其等待队列。站点里的人数包括正在服务和正在等待的人。网络 network 是多个站点的集合。站点服务完成不一定意味着顾客离开整个网络。

A station contains service resources and a queue. Its population includes customers waiting and in service. Completing service at one station does not necessarily end the network visit.

外部到达率 αᵢ:从网络外直接进入站 i 的流量。有效到达率 λᵢ:进入站 i 的全部访问流量,包括外部输入、其他站的转入和反馈。路由概率 pᵢⱼ:在 i 完成服务后,下一站为 j 的概率。

External rate αᵢ counts entries from outside directly to station i. Effective rate λᵢ counts all visits to i, including internal returns. Routing probability pᵢⱼ is the chance that a completion at i next visits j.

pᵢ,out = 1 − Σⱼ pᵢⱼ

例如,每小时只有 10 个新请求进入网络,但每个请求平均访问数据库 3 次,数据库的访问率就可能达到 30 次/小时。这里没有凭空多出新请求,只是同一个请求被多次计数。

Ten new jobs per hour can create thirty database visits per hour if each job visits it three times on average. Visits and distinct jobs are different counts.

符号 / Symbol含义 / Meaning单位 / Unit
αᵢ外部输入 / External arrivals人/小时等 / jobs per time
λᵢ 或 Xᵢ本站总访问流量 / Station throughput访问/时间 / visits per time
pᵢⱼ路由概率 / Routing probability无单位 / dimensionless
μᵢ每台服务器的服务速率 / Rate per server服务完成/时间 / completions per time
cᵢ本站服务器数量 / Server count整数 / integer
1/μᵢ一次访问的平均服务时间 / Mean service per visit时间 / time

2.开放网络与 Jackson 条件

Open networks and Jackson assumptions

Lecture 1 · slides 3, 5

开放网络允许顾客从外部进入,经过若干站点后离开。课件使用的分解法要求:外部各输入流为独立泊松过程;服务时间为指数分布且总完成速率只依赖本站人数;队列容量无限;路由概率固定,不根据队长或历史改变。标准模型还假定相应服务与路由随机机制独立。

An open network admits external jobs and permits departures. The decomposition assumes independent external Poisson streams, exponential services with local population-dependent rates, infinite queue capacities, and fixed Markov routing, with the usual independence of the mechanisms.

先确认网络确实能把顾客送出,没有外部可达的封闭循环把顾客永久困住。然后求出每站 λᵢ,逐站检查 λᵢ < cᵢμᵢ。每站都稳定,才可使用无限容量 M/M/c 的稳态公式。

The routing must permit eventual exit rather than trap arrivals in a closed class. Solve traffic rates, then check λᵢ < cᵢμᵢ at every station before using stationary M/M/c formulas.

ρᵢ = λᵢ/(cᵢ μᵢ) < 1

3.流量方程:每站进入量从哪里来

Traffic equations: where station traffic comes from

Lecture 1 · slides 4–5

对站 i 来说,总进入量等于外部进入量,加上所有其他站完成后转入它的量。若站 j 每小时完成 λⱼ 次访问,其中 pⱼᵢ 比例送到 i,则 j 对 i 的贡献是 λⱼpⱼᵢ。注意下标:来源写在前,目的地写在后。

Total input to i equals its external input plus routed completions from all stations. Station j contributes λⱼpⱼᵢ. The first subscript identifies the source and the second the destination.

λᵢ = αᵢ + Σⱼ λⱼ pⱼᵢ

课件 Example 7.1:按箭头逐站列式

Slide Example 7.1: equations station by station

λ₁ = α₁
λ₂ = λ₁
λ₃ = α₃ + p₅₃ λ₅
λ₄ = p₂₄ λ₂
λ₅ = λ₃ + p₂₅ λ₂

站3既接收外部 α₃,又接收站5反馈;所以不能只用外部输入来计算站3的队列。课件没有给这个图的全部数值,因此下面用明确标为补充的数字例子练习。

Station 3 receives external input and feedback from station 5. Its queue must use the combined rate. The slide does not supply all numerical values, so the next numerical example is an added teaching example.

矩阵写法与转置

Matrix form and transpose

行向量 / Row: λ = α + λP
列向量 / Column: λ = α + Pᵀλ
列向量解 / Column solution: λ = (I − Pᵀ)⁻¹ α

4.开放网络完整小例子:反馈为什么增加负载

A complete open example with feedback

补充例题 / Added teaching example

每小时 6 个新任务进入 A;A 完成后全部去 B;B 完成后 25% 回 A 重做,75% 离开。A、B 都为单服务器,μA=12/小时,μB=16/小时。

Six new jobs per hour enter A. All A completions visit B. After B, 25% return to A and 75% exit. Each station has one server, with μA=12/hour and μB=16/hour.

A: μ = 12/hB: μ = 16/h6/h10.750.25 feedback
λA = 6 + 0.25λB
λB = λA

把第二式代入第一式:λA=6+0.25λA,因此 0.75λA=6,得到 λA=λB=8/小时。检查离开量:B 的 75% 离开,所以 8×0.75=6,与外部输入相等。

Substitution gives 0.75λA=6, hence both station rates are 8/hour. The exit rate is 0.75×8=6/hour, matching external input.

ρA=8/12=2/3;ρB=8/16=1/2
LA=8/(12−8)=2;LB=8/(16−8)=1
Lnetwork=2+1=3
Wnetwork=Lnetwork/6=0.5 h = 30 min

为什么最后除以 6,而不是 8?我们求的是一个“外部新任务”从进入网络到最终离开的总时间,所以用外部任务吞吐量 6/小时。8 是每站访问流量,已经把重访计入。

Divide by six because network residence time concerns one externally admitted job. Eight is a station visit rate that includes repeat visits.

每任务平均访问次数 / Visits per job: vA=vB=8/6=4/3
WA=1/(12−8)=1/4 h;WB=1/(16−8)=1/8 h
Wnetwork=(4/3)×(1/4+1/8)=1/2 h

5.每站套用 Week 7,再组合整个网络

Apply Week 7 at stations, then combine

Lecture 1 · slides 3–5;Week 7 回顾

当一个站是 M/M/1,使用本站有效 λᵢ 和每台 μᵢ。当它有多个相同服务器,就用 M/M/c。不能把一个有 c 台服务器的站直接当成服务速率 cμ 的单服务器。

Use effective station traffic in the appropriate Week 7 model. A multi-server station requires M/M/c rather than a single server of rate cμ.

M/M/1: Lᵢ=λᵢ/(μᵢ−λᵢ);Wᵢ=1/(μᵢ−λᵢ)
aᵢ=λᵢ/μᵢ;ρᵢ=λᵢ/(cᵢμᵢ)
pᵢ(0)=[Σₙ₌₀ᶜⁱ⁻¹ aᵢⁿ/n! + aᵢᶜⁱ/(cᵢ!(1−ρᵢ))]⁻¹
Cᵢ=pᵢ(0)aᵢᶜⁱ/[cᵢ!(1−ρᵢ)]
Wq,ᵢ=Cᵢ/(cᵢμᵢ−λᵢ);Wᵢ=Wq,ᵢ+1/μᵢ
Lᵢ=λᵢWᵢ;Lq,ᵢ=λᵢWq,ᵢ
Pr(N₁=n₁,…,Nₘ=nₘ)=∏ᵢ pᵢ(nᵢ)
Lnetwork=ΣᵢLᵢ
αtotal=Σᵢαᵢ;Wnetwork=Lnetwork/αtotal

6.封闭网络:人数固定,流量由系统自己决定

Closed networks: fixed population, endogenous flow

Lecture 2 · slides 2–3, 11

封闭网络中有固定 N 个顾客或托盘循环,没有外部新增和永久离开。一个托盘在站点间移动,改变的是各站人数,网络总人数始终为 N。

A closed network circulates a fixed number N of customers or pallets. Movement changes station populations but never their total.

状态 / State: n=(n₁,…,nM);Σᵢ nᵢ=N
问题 / Question开放 / Open封闭 / Closed
已知输入 / Given外部 α / External rates固定 N / Fixed population
每站访问流量 / Station rates解 λ=α+λP先解 η=ηP,再由 N 求实际流量
各站人数 / Populations标准稳态乘积下独立 / Independent in stationary product form受总人数约束而相关 / Dependent
是否要求每站 ηᵢ/(cᵢμᵢ)<1λᵢ/(cᵢμᵢ)<1η 仅相对刻度,不用该条件 / No such condition on relative weights

7.η 是相对访问量,不是本站人数概率

η measures relative visits, not occupancy

Lecture 2 · slide 4

把“服务结束后去哪里”单独看成一个离散马尔可夫链,其转移矩阵是 P。先求 η=ηP。这个方程只决定比例;可以令 Ση=1,也可以让某个参考站 η=1。

Consider the sequence of station visits as a discrete Markov chain with routing matrix P. Solve η=ηP. Only ratios are determined, so normalize the sum to one or set a reference visit ratio to one.

P = [[0, 0.75, 0.25], [0.9, 0, 0.1], [1, 0, 0]]
η₁=0.9η₂+η₃
η₂=0.75η₁
η₃=0.25η₁+0.1η₂

先取 η₁=1,则 η₂=0.75,η₃=0.325。总和 2.075。若要求和为1,结果为 (40/83,30/83,13/83)。

Set η₁=1 to obtain (1,0.75,0.325). Dividing by the sum 2.075 yields (40/83,30/83,13/83).

η₂=0.75η₁ 只表示每访问站1一次,长期平均访问站2 0.75次。站2可能服务很慢,人数很多;它的占用概率还取决于服务速率和 N,不能把 η₂直接当成站2繁忙概率。

η₂=0.75η₁ gives relative visit counts. Slow service can create a large population even at a less frequently visited station. Occupancy also depends on service and N.

8.本站权重 fᵢ(n):从流量平衡逐项递推

Local weights from successive balance ratios

Lecture 2 · slides 5–6

先定义本站相对工作量 rᵢ=ηᵢ/μᵢ。课件把它记为 ρᵢ;它与 Week 7 的利用率含义不同。若 η 是无单位相对访问数,r 的单位是时间。

Define relative workload rᵢ=ηᵢ/μᵢ. The slides call it ρᵢ, but it is not utilization. When η is a dimensionless visit ratio, r has time units.

rᵢ=ηᵢ/μᵢ = ηᵢ×平均服务时间 / mean service time
fᵢ(0)=1
fᵢ(n)=fᵢ(n−1) × rᵢ/min(n,cᵢ)

为什么分母是 min(n,cᵢ)?有 n 个顾客但只有 cᵢ 台服务器,实际忙碌的台数最多为 cᵢ。总服务速率为 min(n,cᵢ)μᵢ。

At population n, only min(n,cᵢ) servers can be busy, giving total completion rate min(n,cᵢ)μᵢ.

0≤n≤cᵢ: fᵢ(n)=rᵢⁿ/n!
n>cᵢ: fᵢ(n)=rᵢⁿ/[cᵢ! cᵢ⁽ⁿ⁻ᶜⁱ⁾]

小例子:r=6,c=2

Small example: r=6, c=2

n计算 / Calculationf(n)
0设初始值 / Set initial value1
11×6/16
26×6/218
318×6/254
454×6/2162

9.两个站、两个顾客:完整手算乘积形式

Two stations and two customers: a complete calculation

Lecture 2 · slide 3 思路;补充数值 / Added numerical example

两个单服务器站循环往返,N=2。取 η=(1,1),μ₁=2/小时,μ₂=1/小时。于是 r₁=0.5小时,r₂=1小时,且单服务器 fᵢ(n)=rᵢⁿ。

Two single-server stations alternate visits with N=2. Choose η=(1,1), μ₁=2/hour, and μ₂=1/hour. Then r=(0.5,1) hours, and fᵢ(n)=rᵢⁿ.

状态 / State权重乘积 / Product归一化概率 / Probability
(2,0)0.5²×1=0.250.25/1.75=1/7
(1,1)0.5×1=0.50.5/1.75=2/7
(0,2)1×1²=11/1.75=4/7
G₂=0.25+0.5+1=1.75
π(n₁,n₂)=f₁(n₁)f₂(n₂)/G₂

站2服务慢,所以两个人同时积在站2的概率最高。人数不能取 (2,2),因为网络里总共只有2个人。

Station 2 is slower, so both customers accumulate there most often. State (2,2) is impossible because only two customers exist.

L₁=2×(1/7)+1×(2/7)=4/7
L₂=1×(2/7)+2×(4/7)=10/7
L₁+L₂=2=N

课件 slide 3 用 N=4,因此状态为 (4,0),(3,1),(2,2),(1,3),(0,4),做法完全相同。对两个交替的单服务器站,未归一化权重是 μ₁⁻ⁿ¹ μ₂⁻ⁿ²。

Slide 3 uses N=4 and five states. The same method applies, with unnormalized weight μ₁⁻ⁿ¹μ₂⁻ⁿ².

10.G(m,n) 表:用卷积代替列出所有状态

The G(m,n) table: convolution instead of enumeration

Lecture 2 · slides 7–9

M 个站、N 个顾客,可能状态数为组合数 C(N+M−1,M−1)。例如4站5人有 C(8,3)=56个状态。课件不是说只有56种路线,而是56种人数分配。

The number of population states is C(N+M−1,M−1). Four stations and five customers give 56 distributions of population, not 56 routes.

G(m,n)=Σₖ₌₀ⁿ fₘ(k)G(m−1,n−k)
G(0,0)=1;G(0,n>0)=0
G(m,0)=1;G(1,n)=f₁(n)
最终 / Final: G(N)=G(M,N)

为什么这样分组?假设第 m 站放 k 个人,前 m−1 站就必须放 n−k 个人。第 m 站贡献 fₘ(k),前面所有合法分配合计贡献 G(m−1,n−k)。乘起来,再把 k=0到n全部加上。

If station m holds k customers, the first m−1 stations must hold n−k. Multiply their contributions and sum over all k.

继续上一节的两个站例子

Continue the two-station example

m / n012
0100
110.50.25
211.51.75
G(2,2)=f₂(0)G(1,2)+f₂(1)G(1,1)+f₂(2)G(1,0)
=1×0.25+1×0.5+1×1=1.75

计算次序:先算所有站的 f 表,再从左到右增加站点,每次填 n=0到N。这样求 G(M,N) 时,G(M,N−1) 也已经在表里,可直接用于下一节吞吐量公式。

Compute local weights first, then add stations one at a time and fill populations zero through N. The final row also supplies G(M,N−1).

11.Pace、吞吐量、忙碌服务器与利用率

Pace, throughput, busy servers, and utilization

Lecture 2 · slide 10
Pace = G(M,N−1)/G(M,N)
Xᵢ = ηᵢ × Pace
Bᵢ = Xᵢ/μᵢ = rᵢ × Pace
Uᵢ = Bᵢ/cᵢ = Xᵢ/(cᵢμᵢ)

Pace 是按所选 η 刻度定义的流动速度。Xᵢ是站 i 每单位时间完成的访问次数,Bᵢ是平均忙碌服务器数,Uᵢ是每台服务器平均忙碌比例。Bᵢ可以大于1,但不能大于cᵢ。

Pace depends on the scaling of η. Xᵢ counts station completions per time, Bᵢ counts mean busy servers, and Uᵢ is mean per-server utilization. Bᵢ can exceed one but cannot exceed cᵢ.

在两个站小例子中计算

Apply to the two-station example

Pace=G(2,1)/G(2,2)=1.5/1.75=6/7 h⁻¹
X₁=X₂=6/7 visits/h
B₁=(6/7)/2=3/7;B₂=(6/7)/1=6/7
U₁=3/7;U₂=6/7

若把所有 η 同时乘2,则 n人权重总乘2ⁿ,G(N)乘2ᴺ,而 Pace除以2。最终 ηᵢ×Pace不变。因此 η=(1,0.75,0.325)与归一化到和为1的 η 给出相同实际吞吐量。

Scaling all η by two scales G(N) by 2ᴺ and halves Pace. Actual throughput ηᵢPace remains unchanged.

12.本站人数、等待时间与全网络周期

Station populations and network cycle time

Lecture 2 · slide 10 延伸 / Derivation supplement

为了求 Lᵢ,可以先求站 i 的边缘人数概率。固定 nᵢ=k 后,其余 M−1 个站必须合计有 N−k 人。把其余站按同样卷积方法求出的归一化和记为 G₋ᵢ(N−k)。

For station population probabilities, fix nᵢ=k. The remaining stations share N−k customers. Their convolution sum is denoted G₋ᵢ(N−k).

Pr(nᵢ=k)=fᵢ(k)G₋ᵢ(N−k)/G(M,N)
Lᵢ=Σₖ₌₀ᴺ k Pr(nᵢ=k)
Lq,ᵢ=Lᵢ−Bᵢ
Wᵢ=Lᵢ/Xᵢ;Wq,ᵢ=Lq,ᵢ/Xᵢ

在小例子中:W₁=(4/7)/(6/7)=2/3小时;W₂=(10/7)/(6/7)=5/3小时。每圈各站访问一次,因此周期 Wcycle=7/3小时。也可直接用 N/Pace=2/(6/7)=7/3小时。

In the example, W₁=2/3 hour and W₂=5/3 hours. Each cycle visits both once, so cycle time is 7/3 hours, also N/Pace.

若 ηᵢ 是每产品的访问次数 / If ηᵢ is visits per product:
Xproduct = Pace
Wcycle=N/Xproduct=ΣᵢηᵢWᵢ

13.制造案例:八道工序如何变成六个站

Manufacturing case: eight operations, six stations

Lecture 3 · slides 2–5
工序 / Operation内容 / Description站点 / Station时间 / Time
1装夹 / Attach workpieceFixture2.7
2铣底面 / Mill baseMill6.0
3钻定位孔 / Drill locator holesDrill3.0
4翻面装夹 / RefixtureFixture3.0
5镗磨 / Bore and honeBore4.2
6钻孔 / Drill holesDrill3.2
7铣槽 / Mill slotsLight mill4.0
8拆卸 / DetachFixture2.0

案例按分钟解释工序时间,与“每3分钟一件”的目标及课件产量相一致。Fixture每件访问3次,平均每次时间 (2.7+3.0+2.0)/3=2.5667分钟。课件后续表使用2.9分钟,来源没有说明;为复现课件的后续网络结果,本讲义采用其后续表2.9,并保留这一差异。

Times are interpreted as minutes, consistent with the three-minute production target. Fixture averages (2.7+3.0+2.0)/3=2.5667 minutes from the process plan, but later slides use 2.9 without explanation. Subsequent calculations use 2.9 to reproduce the network table.

Drill每件访问2次,所以平均每次 (3.0+3.2)/2=3.1分钟。加工完成后进入Transport,运输完成后进入加工站。课件每件计8次运输,每次平均2分钟。Transport设100个服务器;当托盘数小于100,它相当于不需要排队的延迟站。

Drill averages 3.1 minutes across two visits. Processing alternates with Transport, with eight transport visits per product and two minutes per visit. Transport has 100 servers, so for fewer than 100 pallets it behaves as a delay station.

站 / Station每件访问 η平均服务 s (min)工作量 r=ηs (min)服务器 c
Fixture32.98.73
Mill16.06.02
Drill23.16.23
Bore14.24.22
Light mill14.04.02
Transport82.016.0100

14.计数矩阵、路由概率与相对访问次数

Count matrix, routing probabilities, and visit ratios

Lecture 3 · slides 4–7

先数每完成一件产品时,各站之间发生几次转移,得到Count Matrix。每个加工站下一站都是Transport,所以对应行只有最后一列非零。Transport每件分别送去Fixture 3次、Mill 1次、Drill 2次、Bore 1次、Light mill 1次。

Count station-to-station transitions per product. Each processing station next visits Transport. Transport visits Fixture three times, Mill once, Drill twice, Bore once, and Light mill once.

来源 / FromFixtureMillDrillBoreLight millTransport
Fixture000003
Mill000001
Drill000002
Bore000001
Light mill000001
Transport312110

每行除以该行总和,就变成路由概率 P。因此五个加工站下一站去Transport的概率都是1。Transport那一行除以8。

Divide each row by its row sum to get P. Each processing station routes to Transport with probability one. Divide the Transport row by eight.

Ptransport = (3/8,1/8,2/8,1/8,1/8,0)
η = (3,1,2,1,1,8)
归一化 / Sum-one version: η/16=(3/16,1/16,2/16,1/16,1/16,8/16)

这套聚合路由保留各站访问次数比例,但不保留每件产品严格固定的八道加工顺序。它是课件用于性能估计的Markov近似,不应理解成真实工件会任意跳过工艺要求。

This aggregate Markov routing preserves visit ratios but not the exact ordered eight-operation route. It is the slide model for performance approximation, not a literal claim that workpieces can skip required operations.

课件矩阵求η到底做了什么

What the slide matrix calculation does

(Pᵀ−I)η=0
把其中一行替换为全1 / Replace one row with ones
右端对应行设1,其余为0 / RHS: 1 for normalization, 0 otherwise
Aη=b;η=A⁻¹b

课件“(P′−I)*4”的标题并非普通乘以4:其显示出来的矩阵实际把最后一行改成全1来加入归一化条件。不要照标题把所有矩阵元素乘4。

The slide label “(P′−I)*4” does not match ordinary scalar multiplication. The displayed matrix replaces its final row by ones to impose normalization.

15.目标产量、瓶颈与基准配置

Production target, bottlenecks, and the baseline

Lecture 3 · slides 7–8

目标每3分钟一件,即20件/小时。每站每件工作量为rᵢ分钟,cᵢ台设备理论最大成品产量为 cᵢ/rᵢ 件/分钟。按确定性容量初选 cᵢ=ceil(rᵢ/3)。

The target is one product every three minutes, or 20/hour. Station i has rᵢ minutes of work per product, so its capacity bound is cᵢ/rᵢ products per minute. An initial deterministic sizing rule is ceil(rᵢ/3).

站 / Stationr/3c理论产能 / Capacity (products/h)
Fixture2.9320.689655
Mill2220.000000
Drill2.066667329.032258
Bore1.4228.571429
Light mill1.333333230.000000

这只检查长期工作量,并没有考虑随机服务导致的等待和设备被饿住。基准配置(3,2,3,2,2),N=36,用G表得到 Pace≈0.322528件/分钟,即19.351705件/小时,与课件19.352一致。

Capacity sizing ignores waiting and starvation from random service. With configuration (3,2,3,2,2) and N=36, convolution gives 19.351705 products/hour, matching the slide’s 19.352.

Wcycle = 36/19.351705 = 1.860301 h
成本 / Cost = 3×20 + 2×200 + 3×75 + 2×180 + 2×150
= 1,345 千美元 / thousand dollars

16.方案表复核:哪些原值需要特别注意

Checking the case study alternatives

Lecture 3 · slides 9–10;独立复算 / Independent recomputation

下表“课件值”保留原始数字;“复算”使用上面的r=(8.7,6,6.2,4.2,4,16)、Transport c=100及表中明确写出的N。周期统一用 N/成品吞吐量。

Slide values are preserved below. Recomputed values use the stated workloads, Transport c=100, and the displayed population N. Cycle time is N divided by product throughput.

配置 / ConfigurationN课件产量 / Slide /h复算产量 / Recomputed /h课件周期 / Slide h复算周期 / Recomputed h
3,2,3,2,23619.35219.3517051.861.860301
4,2,3,2,23619.94819.9479220.801.804699
3,3,3,2,23620.07920.6212760.931.745770
3,3,3,2,22620.07920.0792850.931.294867
4,3,3,2,21920.06020.0600590.950.947156

20.079与N=26相符,而不是N=36。即便用N=26,总周期也应为26/20.079≈1.295小时,仍不是0.93。课件没有定义另一种可解释全部这些数值的flowtime边界,所以这里不替它臆测。

The 20.079 throughput matches N=26, not N=36. At N=26 the full cycle is about 1.295 hours, not 0.93. The slides do not define another flowtime boundary that resolves all entries.

基准Mill只有20件/小时理论能力,因此有限N下实际产量不能超过这个上界。增加Mill有针对性。进一步加Fixture,能够以更少托盘达到20件/小时。课件方案6给(4,3,3,2,2)、N=19、20.060件/小时,这组吞吐量和周期可以复现。

The baseline Mill has a 20/hour capacity bound. Adding a Mill is targeted. Adding a Fixture afterward can meet the target with fewer pallets. Option 6 at N=19 reproduces both its throughput and cycle time.

方案 / Option课件成本 k$按列出单价复算 k$说明 / Note
基准 / Baseline15251345差180 / Difference 180
加Mill / Add Mill16751545课件相对基准仅加150,Mill标价200 / Slide delta differs from Mill unit price
加Mill与Fixture / Add both16601565未给出足够信息解释价差 / Unexplained cost difference

学习时可以分开回答:如果题目要求依据课件表做管理选择,就引用课件产量与成本并注明“按课件”。如果要求从模型独立计算,就明确写出参数、N及周期边界,不混用两套数字。

When asked to interpret the slide table, label the numbers as slide values. When asked to calculate independently, state parameters, N, and the definition of cycle time.

敏感性分析:服务时间误差10%

Sensitivity: service-time error of 10%

平均服务时间增加10%,新的μ是μ/1.1,不是0.9μ。r相应乘1.1。如果所有站服务时间统一乘1.1且N不变,则全部时间按1.1缩放,吞吐量除以1.1。若只有某一站改变,就重算G表,识别瓶颈变化。

A 10% increase in mean service time changes μ to μ/1.1 and multiplies r by 1.1. If every station scales this way, throughput divides by 1.1 and times multiply by 1.1. A change at one station requires recomputation.

17.离线计算器:亲手改变N与服务器配置

Offline calculator: change population and server counts

补充工具 / Added learning tool

下方计算器使用与手算相同的权重递推和卷积。默认是制造案例。输入每站的η、平均服务时间和服务器数,再指定N。把η解释为每件产品访问次数时,Pace就是产品/时间。小例子使用小时,制造案例使用分钟。

The calculator uses the same weight recursion and convolution as the hand calculations. Enter η, mean service time, server count, and N. If η counts visits per product, Pace is products per time. The small example uses hours and the manufacturing case minutes.

每行:站名, η, 平均服务时间, 服务器数。请使用英文逗号。

One station per line: name, η, mean service time, server count.

G(m,n) 全表 / Full convolution table

18.Excel逐格操作:权重、G表和矩阵

Excel: local weights, convolution, and matrices

补充操作 / Added workflow

A.先练两站小例子,不用矩阵函数

A. Two-station example without matrix functions

设置A1为n,B1为f₁,C1为f₂。在A2:A4填0、1、2。两站都是单服务器,r₁=0.5,r₂=1。

Set headers n, f₁, and f₂ in A1:C1. Fill A2:A4 with zero, one, two. Both stations have one server, with r₁=0.5 and r₂=1.

单元格 / Cell输入 / Formula结果 / Result
B2=11
B3=B2*0.5/MIN(A3,1)0.5
B4=B3*0.5/MIN(A4,1)0.25
C2=11
C3=C2*1/MIN(A3,1)1
C4=C3*1/MIN(A4,1)1
E2:G(2,0)=B2*C21
E3:G(2,1)=B3*C2+B2*C31.5
E4:G(2,2)=B4*C2+B3*C3+B2*C41.75
E6:Pace=E3/E40.857142857 /h
E7:周期 / Cycle=2/E62.333333333 h

B.多服务器权重的通用逐行公式

B. General local-weight recursion

若H1放η,H2放平均服务时间,H3放c,A列放n,B2为f(0)=1,则B3输入下式后向下拖动。先统一时间单位。

Put η in H1, mean service time in H2, server count in H3, and n in column A. Set B2=1, then fill the following formula down from B3.

=B2*($H$1*$H$2)/MIN(A3,$H$3)

这就是 f(n)=f(n−1)×η×服务时间/min(n,c)。无需先算阶乘。G表每项使用“新站权重顺序”乘“旧G行倒序”再相加,初学时先像上面的E4逐项写开。

This implements f(n)=f(n−1)ηs/min(n,c) without factorials. A G entry is a sum of new-station weights times old G values in reverse population order. Start by writing each term explicitly.

C.开放网络矩阵与Excel函数

C. Open traffic equations in Excel

若P放在A2:B3,外部α列放D2:D3,列向量使用I−TRANSPOSE(P)。本例P=[[0,1],[0.25,0]],α=(6,0)。

For source-row P=[[0,1],[0.25,0]] in A2:B3 and external α=(6,0) in D2:D3, use I−TRANSPOSE(P).

=MMULT(MINVERSE({1,-0.25;-1,1}),D2:D3)

结果为两行8、8。较新Excel会自动溢出到相邻单元格;旧版可能需要先选两个纵向单元格再以数组方式输入。若Excel地区设置用分号作函数分隔符,需要按本机规则调整。

The result is the column (8,8). Dynamic-array Excel spills the result. Older versions may require selecting two vertical cells and confirming as an array formula. Regional separators can differ.

D.Excel如何求封闭网络η

D. Closed-network visit ratios in Excel

先构造A=Pᵀ−I,再把最后一行替换成全1,b=(0,…,0,1)ᵀ。对这些实际单元格范围使用下式。原始I−Pᵀ是奇异矩阵,不能直接对它MINVERSE。

Build A=Pᵀ−I, replace its last row by ones, and use b=(0,…,0,1)ᵀ. Apply the formula to the actual cell ranges. The unmodified I−Pᵀ is singular.

=MMULT(MINVERSE(A所在的单元格范围),b所在的单元格范围)

上面是位置说明,不是可原样粘贴的有效Excel公式。请将中文位置名换成实际范围,例如H2:M7与O2:O7。

The last line is a range template, not a directly executable formula. Replace the placeholders with actual ranges such as H2:M7 and O2:O7.

19.自测练习:先作答,再展开

Self-check exercises with answers

补充练习 / Added practice
开放反馈例子中,为什么每站λ=8却网络外部输入只有6?Why are station rates eight when external input is six?

因为25%的任务反馈,同一个外部任务可多次访问。每站访问数/任务=8/6=4/3。

Feedback causes repeat visits. Each external job averages 4/3 visits per station.

η=(3,1,2,1,1,8)的和不是1,有错吗?Must η=(3,1,2,1,1,8) sum to one?

没有。它表示每件产品相对访问次数。只有把η选为路由链概率时才要求和为1。

No. These are visits per product. Sum-one normalization is an alternative scale.

c=2、r=3,求f(0),f(1),f(2),f(3)。For c=2 and r=3, find weights zero through three.

1,3,4.5,6.75。第三次仍除以2,因为最多只有两台服务器忙。

1, 3, 4.5, 6.75. Above population two the divisor stays two.

两站、N=2例子,Pr(n₁=0)是多少?What is Pr(n₁=0) in the two-station example?

状态只能是(0,2),其概率为4/7。

Only state (0,2) qualifies, with probability 4/7.

算出rᵢ=6,能判断该站利用率大于1吗?Does rᵢ=6 imply utilization above one?

不能。r是相对工作量,Uᵢ=rᵢPace/cᵢ才是实际利用率。

No. Actual utilization is rᵢPace/cᵢ.

4站5人有多少种人数状态?How many states for four stations and five customers?

C(8,3)=56。Excel可输入=COMBIN(8,3)。

56. Excel: =COMBIN(8,3).

N=19,产量20.060/小时,总周期多少?At N=19 and throughput 20.060/hour, what is cycle time?

19/20.060≈0.94716小时,约56.83分钟。

About 0.94716 hours or 56.83 minutes.

所有平均服务时间增加10%,μ乘0.9对吗?Does a 10% increase in mean service time multiply μ by 0.9?

不对。μ应除以1.1。全部站同幅增加时吞吐量也除以1.1。

No. Divide μ by 1.1. If all stations scale together, throughput also divides by 1.1.

20.公式速查与逐页对应

Formula reference and slide mapping

三份课件共26页 / 26 source slides
目标 / Goal公式 / Formula先确认 / Check
开放有效流量 / Open ratesλ=α+λPP行是来源 / P source rows
开放稳定 / Open stabilityλᵢ<cᵢμᵢ逐站检查 / Every station
开放网络总时间 / Open residenceW=ΣLᵢ/Σαᵢ除外部输入 / External throughput
封闭访问比例 / Closed visitsη=ηP任意共同刻度 / Common scaling
相对工作量 / Relative workloadrᵢ=ηᵢ/μᵢ不是利用率 / Not utilization
本站权重 / Local weightfᵢ(0)=1; fᵢ(n)=fᵢ(n−1)rᵢ/min(n,cᵢ)未归一化 / Unnormalized
状态概率 / State probabilityπ(n)=∏fᵢ(nᵢ)/G(M,N)Σnᵢ=N
G卷积 / ConvolutionG(m,n)=Σₖfₘ(k)G(m−1,n−k)G(0,0)=1
流动速度 / PaceG(M,N−1)/G(M,N)与η同刻度 / Same η scale
站吞吐 / ThroughputXᵢ=ηᵢPace访问/时间 / visits per time
忙碌数 / Busy countBᵢ=rᵢPace≤cᵢ
利用率 / UtilizationUᵢ=Bᵢ/cᵢ0≤U≤1
站时间 / Station timeWᵢ=Lᵢ/Xᵢ; Wq,ᵢ=(Lᵢ−Bᵢ)/Xᵢ本站访问流量 / Station flow
周期 / CycleN/Xproductη按每产品访问数 / visits per product
来源 / Source页 / Slides本讲义 / Sections
Lecture 11课程标题 / Course title
Lecture 121:网络结构 / Network structure
Lecture 132、5:Jackson条件及分解 / Assumptions and decomposition
Lecture 143:Example 7.1方程 / Example traffic equations
Lecture 153–5:流量计算 / Traffic calculations
Lecture 21课程标题 / Course title
Lecture 22–36、9:封闭状态 / Closed states
Lecture 247:η与路由 / Visits and routing
Lecture 25–68–9:权重及乘积 / Weights and product form
Lecture 27–910:G表 / G convolution
Lecture 21011–12:性能指标 / Performance measures
Lecture 211下方补充:dummy station / Dummy station note
Lecture 31课程标题 / Course title
Lecture 32–313:工艺与站点 / Process plan
Lecture 34–614、18:计数与路由矩阵 / Routing matrices
Lecture 37–813、15:参数与初选 / Parameters and baseline
Lecture 39–1016:方案与敏感性 / Alternatives and sensitivity

Dummy station:把开放场景近似成封闭模型

Dummy station: approximating an open setting

Lecture 2 slide 11 提到用dummy station接收离开者并调节再次进入的速度。其服务机制必须按目标输入建模:单服务器站在非空时总返回速率可设为α;无限服务器站每顾客速率ν则总返回速率为nν,属于有限来源效应。不能仅把N设得很大就声称得到原来的开放系统。还需检查dummy是否经常空、真实站拥堵及输出指标的边界。

A dummy station receives departures and controls re-entry. A single server can return jobs at total rate α while nonempty. An infinite-server dummy with per-customer rate ν returns at nν, creating finite-source behavior. Merely increasing N does not automatically reproduce an open system. Check dummy starvation and the intended measurement boundary.

来源、补充与适用范围

Sources, additions, and scope

依据用户提供的三份Week 9课件,教师Christopher Slon,课程ISE/SYS 5517。开放两站反馈例子、封闭两站N=2例子、Excel操作、计算器、练习与独立复算为学习补充。课件中的案例原值与本讲义复算值已分开标注。数学内容按指数服务、同类顾客、固定Markov路由的乘积形式模型解释,未扩展为任意网络都成立。

Based on the three supplied Week 9 decks by Christopher Slon for ISE/SYS 5517. Added material includes the numerical open and closed examples, Excel steps, calculator, exercises, and independent verification. Slide values are distinguished from recomputed values. The treatment uses the stated product-form assumptions, not arbitrary queueing networks.

阅读方式:顶部切换中文、英文或中英对照;目录跳转;公式框点击复制文本;打印可另存PDF。全文、图和计算器不依赖网络或外部字体。浏览器打印时会展开答案;计算器输入区隐藏,但当前结果保留。

Use the language selector, table of contents, click-to-copy formula boxes, and browser print-to-PDF. Text, diagrams, and calculator work offline. Printing expands answers, hides inputs, and retains current results.