109 年 國立成功大學工業與資訊管理學系研究所甲組《作業研究》

📄 試題原卷 免費註冊後即可對照原始考卷 PDF免費註冊

第 I.1. 題20 分

Consider the following linear programming problem and its resulting final simplex tableau.
Maximize Z=ax1+bx2Z = ax_1 + bx_2
subject to
x1≤cx_1 \le c
x2≤6x_2 \le 6
6x1+dx2≤366x_1 + dx_2 \le 36
x1,x2≥0x_1, x_2 \ge 0.

Given that 0<a<b0 < a < b, 0<d<60 < d < 6, and c+d>6c + d > 6, its resulting final simplex tableau is given as:

B.V.x1x_1x2x_2x3x_3x4x_4x5x_5RHS
Z00010/32/3e
x3x_30012/3-1/63
x2x_2010106
x1x_1100-2/31/62

Identify the values of a, b, c, d, and e.

🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 1 頁

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

x3,x4,x5x_3,x_4,x_5 為三個限制式的剩餘變數:

x1+x3=cx_1+x_3=c x2+x4=6x_2+x_4=6 6x1+dx2+x5=366x_1+dx_2+x_5=36

最終單純形表中,基底變數為 x3,x2,x1x_3,x_2,x_1,非基底變數為 x4,x5x_4,x_5。令非基底變數 x4=x5=0x_4=x_5=0,即可由 RHS 求得目前基底解。

解題方法

由表格各列可寫成:

x3+23x4−16x5=3x_3+\frac23x_4-\frac16x_5=3 x2+x4=6x_2+x_4=6 x1−23x4+16x5=2x_1-\frac23x_4+\frac16x_5=2

因此令 x4=x5=0x_4=x_5=0,得到:

x3=3,x2=6,x1=2x_3=3,\qquad x_2=6,\qquad x_1=2

求 cc

由第一個限制式:

x1+x3=cx_1+x_3=c

代入 x1=2, x3=3x_1=2,\ x_3=3:

c=2+3=5c=2+3=5

求 dd

由第三個限制式:

6x1+dx2+x5=366x_1+dx_2+x_5=36

代入 x1=2, x2=6, x5=0x_1=2,\ x_2=6,\ x_5=0:

6(2)+d(6)=366(2)+d(6)=36 12+6d=3612+6d=36 d=4d=4

求 a,ba,b

將表格中的 x1,x2x_1,x_2 表示式寫出:

x1=2+23x4−16x5x_1=2+\frac23x_4-\frac16x_5 x2=6−x4x_2=6-x_4

代入目標函數:

Z=ax1+bx2=a(2+23x4−16x5)+b(6−x4)=(2a+6b)+(2a3−b)x4−a6x5\begin{aligned} Z &=ax_1+bx_2\\ &=a\left(2+\frac23x_4-\frac16x_5\right)+b(6-x_4)\\ &=(2a+6b)+\left(\frac{2a}{3}-b\right)x_4-\frac{a}{6}x_5 \end{aligned}

表格的目標列表示:

Z+103x4+23x5=eZ+\frac{10}{3}x_4+\frac23x_5=e

因此:

Z=e−103x4−23x5Z=e-\frac{10}{3}x_4-\frac23x_5

比較 x5x_5 的係數:

−a6=−23-\frac{a}{6}=-\frac23
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 I.2. 題15 分

Given 4 decision alternatives and 4 states of nature, consider the following Profits in the payoff table.

State 1State 2State 3State 4
Alternative1-505090125
Alternative2-203580160
Alternative3-4070100110
Alternative4-602085140

(i) Which decision alternative should be chosen using the Maximin payoff criterion?
(ii) Which decision-alternative should be chosen using the Minimax Regret criterion?

Consider the following prior probabilities for the states of nature.

State 1State 2State 3State 4
Probability0.10.50.20.2

(iii) Which decision alternative should be chosen using the Bayes' decision rule?
(iv) What is the highest amount you would be willing to pay for the perfect information (assuming decisions are based on the Bayes' decision rule)?
(v) Suppose the true probabilities for the states of nature 3 and 4 (State 3 & State 4) are both 0.2, let p be the prior probability of States 1. At which value of p does the optimal decision alternative shifts from one to another using Bayes' desicion rule?
(a) p = 0.25
(b) p = 0.38
(c) p = 0.53
(d) p = 0.59.

🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 1 頁

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查決策分析中的四種方法:

  • Maximin payoff:先找每個方案的最低報酬,再選其中最高者。
    max⁡i{min⁡jPij}\max_i\{\min_j P_{ij}\}
  • Minimax Regret:先計算各狀態下的遺憾值,再選最大遺憾最小的方案。
    Rij=該狀態最高報酬−PijR_{ij}=\text{該狀態最高報酬}-P_{ij}
  • Bayes’ decision rule:以先驗機率加權計算期望報酬,選擇期望值最高者。
    EMVi=∑jpjPijEMV_i=\sum_j p_jP_{ij}
  • Expected Value of Perfect Information(EVPI):
    EVPI=EVwith PI−max⁡(EMVi)EVPI=EV_{\text{with PI}}-\max(EMV_i)

(i) Maximin payoff criterion

各方案的最低報酬為:

方案最低報酬
Alternative 1−50-50
Alternative 2−20-20
Alternative 3−40-40
Alternative 4−60-60

取最低報酬中的最大值:

max⁡{−50,−20,−40,−60}=−20\max\{-50,-20,-40,-60\}=-20

因此應選擇 Alternative 2。


(ii) Minimax Regret criterion

各狀態的最高報酬為:

  • State 1:−20-20
  • State 2:7070
  • State 3:100100
  • State 4:160160

因此遺憾值表為:

方案State 1State 2State 3State 4最大遺憾
Alternative 130302020101035353535
Alternative 20035352020003535
Alternative 32020000050505050
Alternative 440405050151520205050

最小的最大遺憾為:

min⁡{35,35,50,50}=35\min\{35,35,50,50\}=35

所以 Alternative 1 與 Alternative 2 並列為最佳方案。


(iii) Bayes’ decision rule

先驗機率為:

P(S1,S2,S3,S4)=(0.1,0.5,0.2,0.2)P(S_1,S_2,S_3,S_4)=(0.1,0.5,0.2,0.2)

各方案的期望報酬如下:

EMV1=(−50)(0.1)+(50)(0.5)+(90)(0.2)+(125)(0.2)=63EMV_1=(-50)(0.1)+(50)(0.5)+(90)(0.2)+(125)(0.2)=63 EMV2=(−20)(0.1)+(35)(0.5)+(80)(0.2)+(160)(0.2)=63.5EMV_2=(-20)(0.1)+(35)(0.5)+(80)(0.2)+(160)(0.2)=63.5 EMV3=(−40)(0.1)+(70)(0.5)+(100)(0.2)+(110)(0.2)=73EMV_3=(-40)(0.1)+(70)(0.5)+(100)(0.2)+(110)(0.2)=73 EMV4=(−60)(0.1)+(20)(0.5)+(85)(0.2)+(140)(0.2)=49EMV_4=(-60)(0.1)+(20)(0.5)+(85)(0.2)+(140)(0.2)=49

比較:

73>63.5>63>4973>63.5>63>49

因此應選擇 Alternative 3。


(iv) 完全資訊的最高願付價格

若擁有完全資訊,每一個狀態都可選擇該狀態下報酬最高的方案:

  • State 1 選 Alternative 2,報酬 −20-20
  • State 2 選 Alternative 3,報酬 7070
  • State 3 選 Alternative 3,報酬 100100
  • State 4 選 Alternative 2,報酬 160160

因此:

EVwith PI=(−20)(0.1)+(70)(0.5)+(100)(0.2)+(160)(0.2)=85EV_{\text{with PI}} =(-20)(0.1)+(70)(0.5)+(100)(0.2)+(160)(0.2)=85

沒有完全資訊時,最佳期望報酬為 7373,所以:

EVPI=85−73=12EVPI=85-73=12

最高願意支付 12。


(v) 機率改變時的最佳方案轉換點

已知:

P(S1)=p,P(S3)=0.2,P(S4)=0.2P(S_1)=p,\qquad P(S_3)=0.2,\qquad P(S_4)=0.2

由機率總和為 11:

P(S2)=1−p−0.2−0.2=0.6−pP(S_2)=1-p-0.2-0.2=0.6-p

因此 0≤p≤0.60\le p\le0.6。

各方案的期望報酬為:

EMV1=(−50)p+50(0.6−p)+90(0.2)+125(0.2)=73−100pEMV_1=(-50)p+50(0.6-p)+90(0.2)+125(0.2) =73-100p
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 I.3. 題15 分

Consider the following non-linear programming model:
Minimize f(x)=x12+x22−4x1−4x2+3f(x) = x_1^2 + x_2^2 - 4x_1 - 4x_2 + 3
subject to: g1(x)=2x12+2x22−12≤0g_1(x) = 2x_1^2 + 2x_2^2 - 12 \le 0

Write down the Lagrange function and the KKT conditions for this problem and find the points satisfying these conditions.

登入後即可作答並保存紀錄。

這一題的完整詳解

本題考查非線性規劃中的拉格朗日乘數法(Lagrange Multiplier Method)與 KKT (Karush-Kuhn-Tucker) 條件。

核心觀念:
對於一個最小化問題:
Minimize f(x)f(x)
subject to gi(x)≤0g_i(x) \le 0 for i=1,…,mi=1, \dots, m.

拉格朗日函數定義為:L(x,λ)=f(x)+∑i=1mλigi(x)L(x, \lambda) = f(x) + \sum_{i=1}^m \lambda_i g_i(x),其中 λi≥0\lambda_i \ge 0。

KKT 條件是一組必要條件,對於可微函數,若點 x∗x^* 是最優解,則存在 λ∗≥0\lambda^* \ge 0 使得以下條件成立:

  1. Stationarity (平穩性): ∇xL(x∗,λ∗)=∇f(x∗)+∑i=1mλi∗∇gi(x∗)=0\nabla_x L(x^*, \lambda^*) = \nabla f(x^*) + \sum_{i=1}^m \lambda_i^* \nabla g_i(x^*) = 0
  2. Primal Feasibility (原始可行性): gi(x∗)≤0g_i(x^*) \le 0 for all ii.
  3. Dual Feasibility (對偶可行性): λi∗≥0\lambda_i^* \ge 0 for all ii.
  4. Complementary Slackness (互補鬆弛性): λi∗gi(x∗)=0\lambda_i^* g_i(x^*) = 0 for all ii.

解題步驟:

1. 寫下拉格朗日函數 (Lagrange Function):
給定目標函數 f(x1,x2)=x12+x22−4x1−4x2+3f(x_1, x_2) = x_1^2 + x_2^2 - 4x_1 - 4x_2 + 3
以及約束條件 g1(x1,x2)=2x12+2x22−12≤0g_1(x_1, x_2) = 2x_1^2 + 2x_2^2 - 12 \le 0.
引入拉格朗日乘數 λ1≥0\lambda_1 \ge 0.

拉格朗日函數 L(x1,x2,λ1)L(x_1, x_2, \lambda_1) 為:
L(x1,x2,λ1)=f(x1,x2)+λ1g1(x1,x2)L(x_1, x_2, \lambda_1) = f(x_1, x_2) + \lambda_1 g_1(x_1, x_2)
L(x1,x2,λ1)=(x12+x22−4x1−4x2+3)+λ1(2x12+2x22−12)L(x_1, x_2, \lambda_1) = (x_1^2 + x_2^2 - 4x_1 - 4x_2 + 3) + \lambda_1 (2x_1^2 + 2x_2^2 - 12)

【答案】
L(x1,x2,λ1)=x12+x22−4x1−4x2+3+λ1(2x12+2x22−12)L(x_1, x_2, \lambda_1) = x_1^2 + x_2^2 - 4x_1 - 4x_2 + 3 + \lambda_1(2x_1^2 + 2x_2^2 - 12)

2. 寫下 KKT 條件 (KKT Conditions):
我們需要計算梯度。
∇f(x1,x2)=(∂f∂x1,∂f∂x2)=(2x1−4,2x2−4)\nabla f(x_1, x_2) = (\frac{\partial f}{\partial x_1}, \frac{\partial f}{\partial x_2}) = (2x_1 - 4, 2x_2 - 4)
∇g1(x1,x2)=(∂g1∂x1,∂g1∂x2)=(4x1,4x2)\nabla g_1(x_1, x_2) = (\frac{\partial g_1}{\partial x_1}, \frac{\partial g_1}{\partial x_2}) = (4x_1, 4x_2)

KKT 條件如下:

  • Stationarity (平穩性): ∇f(x)+λ1∇g1(x)=0\nabla f(x) + \lambda_1 \nabla g_1(x) = 0
    ∂L∂x1=(2x1−4)+λ1(4x1)=0  ⟹  2x1−4+4λ1x1=0\frac{\partial L}{\partial x_1} = (2x_1 - 4) + \lambda_1 (4x_1) = 0 \implies 2x_1 - 4 + 4\lambda_1 x_1 = 0 (1)
    ∂L∂x2=(2x2−4)+λ1(4x2)=0  ⟹  2x2−4+4λ1x2=0\frac{\partial L}{\partial x_2} = (2x_2 - 4) + \lambda_1 (4x_2) = 0 \implies 2x_2 - 4 + 4\lambda_1 x_2 = 0 (2)
    (注意:由於目標函數和約束條件的對稱性,可以預期 x1=x2x_1=x_2 的情況會比較簡單,或者 x1,x2x_1, x_2 的解會是對稱的。)

  • Primal Feasibility (原始可行性): g1(x1,x2)≤0g_1(x_1, x_2) \le 0
    2x12+2x22−12≤02x_1^2 + 2x_2^2 - 12 \le 0 (3)

  • Dual Feasibility (對偶可行性): λ1≥0\lambda_1 \ge 0 (4)

  • Complementary Slackness (互補鬆弛性): λ1g1(x1,x2)=0\lambda_1 g_1(x_1, x_2) = 0
    λ1(2x12+2x22−12)=0\lambda_1 (2x_1^2 + 2x_2^2 - 12) = 0 (5)

【答案】
KKT 條件為:

  1. 2x1−4+4λ1x1=02x_1 - 4 + 4\lambda_1 x_1 = 0
  2. 2x2−4+4λ1x2=02x_2 - 4 + 4\lambda_1 x_2 = 0
  3. 2x12+2x22−12≤02x_1^2 + 2x_2^2 - 12 \le 0
  4. λ1≥0\lambda_1 \ge 0
  5. λ1(2x12+2x22−12)=0\lambda_1 (2x_1^2 + 2x_2^2 - 12) = 0

3. 尋找滿足 KKT 條件的點 (Find the points satisfying these conditions):
我們需要考慮兩種互補鬆弛性的情況:
Case 1: λ1=0\lambda_1 = 0 (約束條件是鬆弛的)
Case 2: 2x12+2x22−12=02x_1^2 + 2x_2^2 - 12 = 0 (約束條件是主動的)

Case 1: λ1=0\lambda_1 = 0
將 λ1=0\lambda_1 = 0 代入 Stationarity 條件 (1) 和 (2):
(1) 2x1−4+4(0)x1=0  ⟹  2x1−4=0  ⟹  x1=22x_1 - 4 + 4(0)x_1 = 0 \implies 2x_1 - 4 = 0 \implies x_1 = 2.
(2) 2x2−4+4(0)x2=0  ⟹  2x2−4=0  ⟹  x2=22x_2 - 4 + 4(0)x_2 = 0 \implies 2x_2 - 4 = 0 \implies x_2 = 2.

現在檢查 Primal Feasibility (3):
2x12+2x22−12≤02x_1^2 + 2x_2^2 - 12 \le 0
2(2)2+2(2)2−12=2(4)+2(4)−12=8+8−12=16−12=42(2)^2 + 2(2)^2 - 12 = 2(4) + 2(4) - 12 = 8 + 8 - 12 = 16 - 12 = 4.
4≤04 \le 0 是 False。
因此,點 (x1,x2)=(2,2)(x_1, x_2) = (2, 2) 不滿足原始可行性條件。
這意味著最優解一定發生在約束邊界上,即 Case 2。

Case 2: 2x12+2x22−12=02x_1^2 + 2x_2^2 - 12 = 0
此時約束條件是主動的,即 2x12+2x22=122x_1^2 + 2x_2^2 = 12, 或 x12+x22=6x_1^2 + x_2^2 = 6.
從 Stationarity 條件 (1) 和 (2)(假設 x1,x2≠0x_1, x_2 \ne 0):
(1) 2x1−4=−4λ1x1  ⟹  2x1−44x1=−λ1  ⟹  x1−22x1=−λ12x_1 - 4 = -4\lambda_1 x_1 \implies \frac{2x_1 - 4}{4x_1} = -\lambda_1 \implies \frac{x_1 - 2}{2x_1} = -\lambda_1
(2) 2x2−4=−4λ1x2  ⟹  2x2−44x2=−λ1  ⟹  x2−22x2=−λ12x_2 - 4 = -4\lambda_1 x_2 \implies \frac{2x_2 - 4}{4x_2} = -\lambda_1 \implies \frac{x_2 - 2}{2x_2} = -\lambda_1

所以,我們有:
x1−22x1=x2−22x2\frac{x_1 - 2}{2x_1} = \frac{x_2 - 2}{2x_2}
x1−2x1=x2−2x2\frac{x_1 - 2}{x_1} = \frac{x_2 - 2}{x_2}
1−2x1=1−2x21 - \frac{2}{x_1} = 1 - \frac{2}{x_2}
2x1=2x2\frac{2}{x_1} = \frac{2}{x_2}
x1=x2x_1 = x_2 (假設 x1,x2≠0x_1, x_2 \ne 0)

現在將 x1=x2x_1 = x_2 代入約束條件 x12+x22=6x_1^2 + x_2^2 = 6:
x12+x12=6x_1^2 + x_1^2 = 6
2x12=62x_1^2 = 6
x12=3x_1^2 = 3
x1=±3x_1 = \pm\sqrt{3}

由於 x1=x2x_1 = x_2, 我們有兩個可能的點:
Point A: (x1,x2)=(3,3)(x_1, x_2) = (\sqrt{3}, \sqrt{3})
Point B: (x1,x2)=(−3,−3)(x_1, x_2) = (-\sqrt{3}, -\sqrt{3})

我們還需要檢查 λ1≥0\lambda_1 \ge 0.
從 x1−22x1=−λ1\frac{x_1 - 2}{2x_1} = -\lambda_1:
對於 Point A: (x1,x2)=(3,3)(x_1, x_2) = (\sqrt{3}, \sqrt{3})
−λ1=3−223=3−236-\lambda_1 = \frac{\sqrt{3} - 2}{2\sqrt{3}} = \frac{3 - 2\sqrt{3}}{6}.
由於 3≈1.732\sqrt{3} \approx 1.732, 23≈3.4642\sqrt{3} \approx 3.464.
所以 3−2<0\sqrt{3} - 2 < 0.
−λ1<0  ⟹  λ1>0-\lambda_1 < 0 \implies \lambda_1 > 0.
λ1=−3−223=2−323=23−36>0\lambda_1 = -\frac{\sqrt{3} - 2}{2\sqrt{3}} = \frac{2 - \sqrt{3}}{2\sqrt{3}} = \frac{2\sqrt{3} - 3}{6} > 0.
這個點滿足 λ1≥0\lambda_1 \ge 0.

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 II.1. 題15 分

People arrive at a barber shop according to a Poisson process with a mean of one person per hour. The time taken by the barber for a haircut is an exponential random variable with a mean of thirty minutes.
(a) Suppose the barber does not allow people to enter when he is busy, calculate L (the expected number of customers in the barber shop), W (the expected time that a customer spends in the barber shop), and Po (the probability that no customer is in the barber shop).
(b) Suppose the barber works for ten hours a day. How many customers are lost every day if he does not allow people to enter when he is busy?

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

  • 本題屬於排隊論的 M/M/1/1 (Erlang B) 系統:
    • 到達過程為泊松過程,率 λ=1\lambda =1 人/小時。
    • 服務時間為指數分布,平均 3030 分鐘(0.50.5 小時),服務率 μ=10.5=2\mu =\frac{1}{0.5}=2 人/小時。
    • 系統容量上限為 11(只有理髮師在服務,沒有等候排隊),若理髮師忙碌則不允許新客人進入,屬於 「阻斷」 (loss) 系統。
  • 重要指標
    • 系統利用率 ρ=λμ=0.5\rho =\frac{\lambda}{\mu}=0.5。
    • 稱為「阻斷機率」PblockP_{\text{block}},即系統已滿(有客人在服務)時的機率。
    • 平衡分布 PnP_n(系統中 nn 位客人的機率)在 M/M/1/1 中僅有 n=0,1n=0,1 兩個可能。

解題方法

  1. 求平衡分布
    M/M/1/1 的平衡方程式為
λP0=μP1,P0+P1=1.\lambda P_0 = \mu P_1 , \qquad P_0+P_1=1 .

代入 λ=1,  μ=2\lambda=1,\;\mu=2,得

P1=λμP0=ρP0.P_1 = \frac{\lambda}{\mu}P_0 = \rho P_0 .

結合正規化條件

P0+ρP0=1  ⟹  P0=11+ρ,P1=ρ1+ρ.P_0+ \rho P_0 =1 \;\Longrightarrow\; P_0 =\frac{1}{1+\rho},\quad P_1 =\frac{\rho}{1+\rho}.

其中 ρ=0.5\rho=0.5,故

P0=11.5=23,P1=0.51.5=13.P_0=\frac{1}{1.5}= \frac23 ,\qquad P_1=\frac{0.5}{1.5}= \frac13 .
  1. 期望系統內客量 LL

L=∑n=01nPn=0⋅P0+1⋅P1=P1=13.L = \sum_{n=0}^{1} n P_n = 0\cdot P_0 + 1\cdot P_1 = P_1 = \frac13 .

  1. 客人平均逗留時間 WW
    只要客人能進入系統,就立即接受服務,無等待時間。
    有效到達率(實際接受服務的到達率)

λeff=λ(1−Pblock)=λ(1−P1)=1(1−13)=23  人/小時.\lambda_{\text{eff}} = \lambda (1-P_{\text{block}})=\lambda (1-P_1)=1\left(1-\frac13\right)=\frac23\;\text{人/小時}.

依照 Little 定理 L=λeffWL = \lambda_{\text{eff}} W,得到

W=Lλeff=1323=0.5 小時=30 分鐘.W = \frac{L}{\lambda_{\text{eff}}}= \frac{\frac13}{\frac23}=0.5\ \text{小時}=30\ \text{分鐘}.

  1. 系統空閒機率 P0P_0
    由上步已得 P0=23P_0=\dfrac23。

解題技巧與常見陷阱

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 II.2. 題20 分

Consider a deterministic inventory problem which does not allow stock out.
Denote dd as the demand per unit time, kk as the setup cost for ordering one batch of amount QQ, cc as the unit cost of the commodity, and hh as the inventory holding cost per unit per unit time.
(a) Formulate the total cost TC per unit time if an amount QQ is ordered each period, and find the optimal Q∗Q^*, i.e. the economic order quantity (EOQ).
(b) If the cost of the commodity cdcd is ignored (TC=TC-cd), show that the optimal total cost is TC=2hkdTC = \sqrt{2hkd}, and the ratio of the total cost associated with a non-optimal quantity to that associated with the optimal quantity Q∗Q^* is TCTC∗=12(Q∗Q+QQ∗)\frac{TC}{TC^*} = \frac{1}{2} (\frac{Q^*}{Q} + \frac{Q}{Q^*}).
(c) If the order quantity is twice of the optimal order quantity Q∗Q^*, then how much percent of the total cost will be increased as compared to the optimal cost TC∗TC^*?

登入後即可作答並保存紀錄。

這一題的完整詳解

本題考查存貨管理中的經濟訂購量(Economic Order Quantity, EOQ)模型。

核心觀念:
EOQ 模型是針對確定性需求、無缺貨情況下的訂購決策模型。其目標是最小化總存貨成本,總成本包含訂購成本、持有成本(及商品成本,但常被獨立討論或忽略)。

參數定義:

  • dd: 需求率 (demand rate) - 單位時間內的需求量。
  • kk: 每次訂購成本 (setup cost per order)。
  • cc: 每單位商品成本 (unit cost)。
  • hh: 每單位商品每單位時間的持有成本 (holding cost per unit per unit time)。
  • QQ: 訂購量 (order quantity)。

假設:

  • 需求率 dd 為常數且確定。
  • 訂購提前期(lead time)為常數。
  • 無缺貨(no stockout)。
  • 訂購成本 kk 為固定值。
  • 持有成本 hh 與持有量成正比。

(a) Formulate the total cost TC per unit time and find the optimal Q∗Q^* (EOQ).
假設我們以固定週期或固定時間間隔來訂購,或者當存貨降至零時就訂購。
為了求出單位時間(例如一年)的總成本 TC,我們需要考慮:

  1. 商品成本 (Annual Purchase Cost): 每年總需求量 ×\times 每單位成本。
    假設分析的時間單位為一年。則年需求量為 d×1d \times 1 (如果 dd 的單位是每年)。
    若 dd 是單位時間的需求率,則年需求量為 D=d×TyearD = d \times T_{year}。
    題目中 dd 是「demand per unit time」,假設我們考慮的時間單位是 1,則總需求量為 dd。
    年度商品成本 = c×dc \times d。
    然而,在 EOQ 的標準推導中,通常是考慮「平均持有成本」和「總訂購成本」。商品成本 c×dc \times d 是一個常數,不會影響 Q∗Q^* 的決定。

  2. 訂購成本 (Annual Ordering Cost):
    每年訂購次數 = 總需求量 / 每次訂購量 = d/Qd / Q。
    每年訂購成本 = (每年訂購次數) ×\times (每次訂購成本) = (d/Q)×k(d/Q) \times k.

  3. 持有成本 (Annual Holding Cost):
    平均庫存量 = Q/2Q / 2 (假設存貨從 QQ 均勻下降至 0)。
    每年持有成本 = (平均庫存量) ×\times (每單位持有成本率) = (Q/2)×h(Q/2) \times h.

總成本 TC (不含商品成本) per unit time:
TC(Q)=dQk+Q2hTC(Q) = \frac{d}{Q}k + \frac{Q}{2}h

為了找到最佳訂購量 Q∗Q^*,我們對 TC(Q)TC(Q) 對 QQ 微分並令其等於零:
dTCdQ=−dkQ2+h2\frac{dTC}{dQ} = -\frac{dk}{Q^2} + \frac{h}{2}
令 dTCdQ=0\frac{dTC}{dQ} = 0:
−dkQ2+h2=0-\frac{dk}{Q^2} + \frac{h}{2} = 0
h2=dkQ2\frac{h}{2} = \frac{dk}{Q^2}
Q2=2dkhQ^2 = \frac{2dk}{h}
Q∗=2dkhQ^* = \sqrt{\frac{2dk}{h}}

這是經濟訂購量 (EOQ) 的公式。
這裡的 dd 是需求率,如果我們考慮的是「單位時間」的總成本,而 dd 就是該單位時間的需求量,那麼這個公式是正確的。

【答案】
總成本 TC per unit time (不含商品成本): TC(Q)=dkQ+hQ2TC(Q) = \frac{dk}{Q} + \frac{hQ}{2}
最佳訂購量 (EOQ): Q∗=2dkhQ^* = \sqrt{\frac{2dk}{h}}

(b) If the cost of the commodity cd is ignored, show that the optimal total cost is TC∗=2hkdTC^* = \sqrt{2hkd}, and the ratio of the total cost associated with a non-optimal quantity to that associated with the optimal quantity Q∗Q^* is TCTC∗=12(Q∗Q+QQ∗)\frac{TC}{TC^*} = \frac{1}{2} (\frac{Q^*}{Q} + \frac{Q}{Q^*}).

Part 1: Show TC∗=2hkdTC^* = \sqrt{2hkd}
將 Q∗Q^* 代入 TC(Q)TC(Q) 的公式:
TC∗(Q∗)=dkQ∗+hQ∗2TC^*(Q^*) = \frac{dk}{Q^*} + \frac{hQ^*}{2}
Substitute Q∗=2dkhQ^* = \sqrt{\frac{2dk}{h}}:
TC∗(Q∗)=dk2dkh+h22dkhTC^*(Q^*) = \frac{dk}{\sqrt{\frac{2dk}{h}}} + \frac{h}{2}\sqrt{\frac{2dk}{h}}
TC∗(Q∗)=dkh2dk+h22dkhTC^*(Q^*) = dk \sqrt{\frac{h}{2dk}} + \frac{h}{2}\sqrt{\frac{2dk}{h}}
TC∗(Q∗)=d2k2h2dk+h242dkhTC^*(Q^*) = \sqrt{\frac{d^2k^2h}{2dk}} + \sqrt{\frac{h^2}{4}\frac{2dk}{h}}
TC∗(Q∗)=dkh2+hdk2TC^*(Q^*) = \sqrt{\frac{dkh}{2}} + \sqrt{\frac{hdk}{2}}
TC∗(Q∗)=2dkh2=4⋅dkh2=2dkhTC^*(Q^*) = 2 \sqrt{\frac{dkh}{2}} = \sqrt{4 \cdot \frac{dkh}{2}} = \sqrt{2dkh}

這裡的 dd 是需求率。如果題目中的 dd 是指「年度總需求量」,則公式就是 2hDk\sqrt{2hDk}。
題目說是 "demand per unit time",且 TC 是 "per unit time"。所以 dd 就是該單位時間的需求量。
因此,TC∗=2dkhTC^* = \sqrt{2dkh}。
題目寫的是 2hkd\sqrt{2hkd},這與我們的結果一致。

Part 2: Show the ratio TCTC∗=12(Q∗Q+QQ∗)\frac{TC}{TC^*} = \frac{1}{2} (\frac{Q^*}{Q} + \frac{Q}{Q^*})
我們有 TC(Q)=dkQ+hQ2TC(Q) = \frac{dk}{Q} + \frac{hQ}{2}。
我們有 TC∗(Q∗)=dkQ∗+hQ∗2=2dkhTC^*(Q^*) = \frac{dk}{Q^*} + \frac{hQ^*}{2} = \sqrt{2dkh}。

考慮比值 TC(Q)TC∗(Q∗)\frac{TC(Q)}{TC^*(Q^*)}:
TC(Q)TC∗(Q∗)=dkQ+hQ22dkh\frac{TC(Q)}{TC^*(Q^*)} = \frac{\frac{dk}{Q} + \frac{hQ}{2}}{\sqrt{2dkh}}
TC(Q)TC∗(Q∗)=dkQ2dkh+hQ22dkh\frac{TC(Q)}{TC^*(Q^*)} = \frac{dk}{Q\sqrt{2dkh}} + \frac{hQ}{2\sqrt{2dkh}}
TC(Q)TC∗(Q∗)=dkQ2dkh+hQ22dkh\frac{TC(Q)}{TC^*(Q^*)} = \frac{dk}{Q\sqrt{2dk}\sqrt{h}} + \frac{hQ}{2\sqrt{2dk}\sqrt{h}}
TC(Q)TC∗(Q∗)=d2k2Q22dkh+h2Q222dkh\frac{TC(Q)}{TC^*(Q^*)} = \frac{\sqrt{d^2k^2}}{\sqrt{Q^2}\sqrt{2dk}\sqrt{h}} + \frac{\sqrt{h^2Q^2}}{2\sqrt{2dk}\sqrt{h}}
TC(Q)TC∗(Q∗)=dkQ2dkh+hQ22dkh\frac{TC(Q)}{TC^*(Q^*)} = \frac{dk}{Q\sqrt{2dkh}} + \frac{hQ}{2\sqrt{2dkh}}

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 II.3. 題15 分

For a Markov chain with the one-step transition probability matrix P shown on the right,
P=(0123401/43/40011/21/200200103001/32/340001)P = \begin{pmatrix} 0 & 1 & 2 & 3 & 4 \\ 0 & 1/4 & 3/4 & 0 & 0 \\ 1 & 1/2 & 1/2 & 0 & 0 \\ 2 & 0 & 0 & 1 & 0 \\ 3 & 0 & 0 & 1/3 & 2/3 \\ 4 & 0 & 0 & 0 & 1 \end{pmatrix}

(a) find P∗=lim⁡n→∞P(n)P^* = \lim_{n\to\infty} P(n).
(b) Starting with state 1, what is the probability of being in state 1 in the long run?
(c) Suppose the initial state of being in state [0, 1, 2, 3, 4] is selected randomly according to the probability of [0.1, 0.2, 0.3, 0.4, 0]. What is the probability of being in state 1 in the long run?

🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 2 頁

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

圖中的第一列與第一欄是狀態標籤 0,1,2,3,40,1,2,3,4,不屬於機率矩陣本身。因此實際轉移矩陣為

P=(1434000121200000100001323010000).P= \begin{pmatrix} \frac14&\frac34&0&0&0\\ \frac12&\frac12&0&0&0\\ 0&0&1&0&0\\ 0&0&\frac13&\frac23&0\\ 1&0&0&0&0 \end{pmatrix}.

狀態 22 是吸收狀態。狀態 33 最終會以機率 11 進入狀態 22,因為連續留在狀態 33 的機率為

(23)n⟶0.\left(\frac23\right)^n\longrightarrow 0.

狀態 44 一步便會轉移至狀態 00。狀態 0,10,1 形成封閉且不可約的常返類別。


解題方法

先求狀態 {0,1}\{0,1\} 內的穩態機率。其子矩陣為

Q=(14341212).Q= \begin{pmatrix} \frac14&\frac34\\ \frac12&\frac12 \end{pmatrix}.

設穩態分配為 π=(π0,π1)\boldsymbol{\pi}=(\pi_0,\pi_1),則

πQ=π,π0+π1=1.\boldsymbol{\pi}Q=\boldsymbol{\pi},\qquad \pi_0+\pi_1=1.

由第二個平衡方程式:

π1=34π0+12π1\pi_1=\frac34\pi_0+\frac12\pi_1

可得

12π1=34π0⟹π1=32π0.\frac12\pi_1=\frac34\pi_0 \quad\Longrightarrow\quad \pi_1=\frac32\pi_0.

代入 π0+π1=1\pi_0+\pi_1=1:

π0+32π0=1⟹π0=25,π1=35.\pi_0+\frac32\pi_0=1 \quad\Longrightarrow\quad \pi_0=\frac25,\qquad \pi_1=\frac35.

因此:

  • 從狀態 00 或 11 出發,長期分布為 (25,35,0,0,0)\left(\frac25,\frac35,0,0,0\right)。
  • 從狀態 22 出發,永遠停留在狀態 22。
  • 從狀態 33 出發,最終進入狀態 22。
  • 從狀態 44 出發,先進入狀態 00,再依照 {0,1}\{0,1\} 的穩態比例分布。

所以

P∗=lim⁡n→∞Pn=(2535000253500000100001002535000).P^*=\lim_{n\to\infty}P^n = \begin{pmatrix} \frac25&\frac35&0&0&0\\ \frac25&\frac35&0&0&0\\ 0&0&1&0&0\\ 0&0&1&0&0\\ \frac25&\frac35&0&0&0 \end{pmatrix}.

(a) 答案

P∗=(2535000253500000100001002535000)\boxed{ P^*= \begin{pmatrix} \frac25&\frac35&0&0&0\\ \frac25&\frac35&0&0&0\\ 0&0&1&0&0\\ 0&0&1&0&0\\ \frac25&\frac35&0&0&0 \end{pmatrix} }

(b) 從狀態 11 出發,長期處於狀態 11 的機率

長期轉移機率由 P∗P^* 的第 11 列決定:

Pr⁡(Xn=1∣X0=1)⟶P11∗=35.\Pr(X_n=1\mid X_0=1) \longrightarrow P^*_{11} =\frac35.

因此答案為

35=0.6\boxed{\frac35=0.6}
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 II.3. 題15 分

  1. For a Markov chain with the one-step transition probability matrix PP shown on the right,
P=(1434000121200000100001323010000)P= \begin{pmatrix} \frac{1}{4} & \frac{3}{4} & 0 & 0 & 0 \\ \frac{1}{2} & \frac{1}{2} & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & \frac{1}{3} & \frac{2}{3} & 0 \\ 1 & 0 & 0 & 0 & 0 \end{pmatrix}

(a) find P∗=lim⁡n→∞P(n)P^*=\lim_{n\to\infty}P^{(n)}.

(b) Starting with state 1, what is the probability of being in state 1 in the long run?

(c) Suppose the initial state of being in state [0,1,2,3,4][0, 1, 2, 3, 4] is selected randomly according to the probability of [0.1,0.2,0.3,0.4,0][0.1, 0.2, 0.3, 0.4, 0]. What is the probability of being in state 1 in the long run? (15%)

🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 2 頁

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題評量離散時間馬可夫鏈(Discrete-Time Markov Chain, DTMC)​的狀態分類與長期極限行為分析,核心觀念包含:

  1. 狀態分類(State Classification):
    • 互通(Communicating)與不可約閉集合(Closed Irreducible Classes)。
    • 遞歸狀態(Recurrent States)與暫態(Transient States)、吸收狀態(Absorbing States)。
  2. 極限轉移矩陣(Long-Run Transition Matrix P∗P^*):
    • 若狀態集合為非週期且正遞歸(Positive Recurrent and Aperiodic),則極限機率等於其穩態機率分佈 π\boldsymbol{\pi},滿足 π=πP\boldsymbol{\pi} = \boldsymbol{\pi} P 且 ∑πi=1\sum \pi_i = 1。
    • 若起始於暫態,其長期極限行為取決於最終被各遞歸閉合集合吸收的吸收機率(Absorption Probabilities)。
  3. 任意起始分佈下的長期機率(Unconditional Long-Run Probability):
    • 給定初始狀態機率分佈向量 α=[α0,α1,α2,α3,α4]\boldsymbol{\alpha} = [\alpha_0, \alpha_1, \alpha_2, \alpha_3, \alpha_4],系統在長期處於狀態 jj 的機率為:
lim⁡n→∞P(Xn=j)=∑iαiPij∗=(αP∗)j\lim_{n \to \infty} P(X_n = j) = \sum_{i} \alpha_i P^*_{ij} = (\boldsymbol{\alpha} P^*)_j

解題方法

依考卷原頁圖,單步轉移機率矩陣 PP 之狀態空間為 {0,1,2,3,4}\{0, 1, 2, 3, 4\},其轉移機率矩陣之正確數值如下:

P=(1/43/40001/21/200000100001/32/3010000)P = \begin{pmatrix} 1/4 & 3/4 & 0 & 0 & 0 \\ 1/2 & 1/2 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 1/3 & 2/3 & 0 \\ 1 & 0 & 0 & 0 & 0 \end{pmatrix}

步驟一:分析馬可夫鏈之狀態轉移結構與分群

  1. 子集合 {0,1}\{0, 1\}:

    • 從狀態 00 可轉移至 00(機率 1/41/4)與 11(機率 3/43/4)。
    • 從狀態 11 可轉移至 00(機率 1/21/2)與 11(機率 1/21/2)。
    • 由 00 與 11 出發皆無法前往 {2,3,4}\{2, 3, 4\},故 {0,1}\{0, 1\} 為一閉合不可約遞歸集合(Recurrent Class)。
    • 因 P00=1/4>0P_{00} = 1/4 > 0(存在自身環),故該類別為非週期(Aperiodic)。
  2. 子集合 {2}\{2\}:

    • P22=1P_{22} = 1,進入狀態 22 後即無法離開,故狀態 22 為吸收狀態(Absorbing State),自成一個遞歸類別。
  3. 狀態 33:

    • P32=1/3P_{32} = 1/3,P33=2/3P_{33} = 2/3。
    • 由於有機率 1/31/3 轉移至吸收狀態 22 且無法返回,故狀態 33 為暫態(Transient State)。
    • 自狀態 33 出發,歷經 nn 步後進入狀態 22 的機率為:
lim⁡n→∞P32(n)=∑k=0∞(23)k(13)=1\lim_{n \to \infty} P_{32}^{(n)} = \sum_{k=0}^{\infty} \left(\frac{2}{3}\right)^k \left(\frac{1}{3}\right) = 1
 即起始於狀態 $3$ 最終以機率 $1$ 被狀態 $2$ 吸收。

4. 狀態 44:

  • P40=1P_{40} = 1。
  • 自狀態 44 出發,僅需一步即以機率 11 進入狀態 00,進而落入閉合集合 {0,1}\{0, 1\},故狀態 44 為暫態(Transient State)。

步驟二:計算各小題解答

(a) 求 P∗=lim⁡n→∞P(n)P^* = \lim_{n \to \infty} P^{(n)}

  1. 計算遞歸類別 {0,1}\{0, 1\} 的穩態分佈:
    設穩態向量為 π{0,1}=(π0,π1)\boldsymbol{\pi}_{\{0,1\}} = (\pi_0, \pi_1),滿足:
{π0=14π0+12π1π0+π1=1\begin{cases} \pi_0 = \frac{1}{4}\pi_0 + \frac{1}{2}\pi_1 \\ \pi_0 + \pi_1 = 1 \end{cases}

由第一式整理得:

34π0=12π1  ⟹  π1=32π0\frac{3}{4}\pi_0 = \frac{1}{2}\pi_1 \implies \pi_1 = \frac{3}{2}\pi_0

代入機率總和式:

π0+32π0=1  ⟹  52π0=1  ⟹  π0=25=0.4\pi_0 + \frac{3}{2}\pi_0 = 1 \implies \frac{5}{2}\pi_0 = 1 \implies \pi_0 = \frac{2}{5} = 0.4 π1=35=0.6\pi_1 = \frac{3}{5} = 0.6

因此,凡起始於狀態 00 或 11 者,長期機率分佈皆為:

[0.4,0.6,0,0,0][0.4, 0.6, 0, 0, 0]
  1. 起始於狀態 22:
    狀態 22 為吸收狀態,其長期機率分佈為:
[0,0,1,0,0][0, 0, 1, 0, 0]
  1. 起始於狀態 33:
    最終以機率 11 被狀態 22 吸收,其長期機率分佈為:
[0,0,1,0,0][0, 0, 1, 0, 0]
  1. 起始於狀態 44:
    一步直接進入狀態 00,之後的行為等同於起始於狀態 00,其長期機率分佈為:
[0.4,0.6,0,0,0][0.4, 0.6, 0, 0, 0]

綜合上述各列,極限轉移矩陣 P∗P^* 為:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

其他考古題