111 年 國立成功大學工業與資訊管理學系研究所甲組《作業研究》
第 1 題15 分
- (15%) Given the following small project, please answer the following questions:
Activity | Immediate Predecessor(s) | Duration
------- | -------- | --------
A | | 12
B | | 9
C | A | 10
D | B | 10
E | B | 24
F | A | 10
G | C | 35
H | D | 40
I | A | 15
J | E, G, H | 4
K | F, I, J | 6
a. (5%) Please draw the network.
b. (10%) What is the critical path? Why?
登入後即可作答並保存紀錄。
本題為典型的專案管理中的關鍵路徑法 (Critical Path Method, CPM) 問題,主要考驗學生繪製專案網路圖以及找出關鍵路徑的能力。
a. 繪製專案網路圖:
專案網路圖(Activity-on-Node, AON)是以節點代表活動,箭頭代表活動之間的先後順序。
- 從起始節點(Start)出發,代表專案開始。
- 活動 A、B 為起始活動,無前置活動,分別連接至 Start。
- 活動 C、F、I 的前置活動為 A,分別從 A 連接出去。
- 活動 D、E 的前置活動為 B,分別從 B 連接出去。
- 活動 G 的前置活動為 C,從 C 連接出去。
- 活動 H 的前置活動為 D,從 D 連接出去。
- 活動 J 的前置活動為 E、G、H,從 E、G、H 三個節點匯集至 J。
- 活動 K 的前置活動為 F、I、J,從 F、I、J 三個節點匯集至 K。
- 專案結束節點(End)連接至 K。
網路圖如下(文字示意,實際作答需繪製圖形):
Start -> A (12) -> C (10) -> G (35) -> J (4) -> K (6) -> End
Start -> A (12) -> F (10) -> K (6) -> End
Start -> A (12) -> I (15) -> K (6) -> End
Start -> B (9) -> D (10) -> H (40) -> J (4) -> K (6) -> End
Start -> B (9) -> E (24) -> J (4) -> K (6) -> End
b. 找出關鍵路徑:
關鍵路徑是指專案中最長的一條路徑,決定了專案的總持續時間。關鍵路徑上的活動如果延遲,則整個專案的結束時間也會延遲。我們需要計算各活動的 Early Start (ES)、Early Finish (EF)、Late Start (LS)、Late Finish (LF) 以及 Total Float (TF)。
向前計算 (Forward Pass) - 計算 ES 與 EF:
ES(Start) = 0
EF(Start) = 0
ES(A) = EF(Start) = 0; EF(A) = ES(A) + Dur(A) = 0 + 12 = 12
ES(B) = EF(Start) = 0; EF(B) = ES(B) + Dur(B) = 0 + 9 = 9
ES(C) = EF(A) = 12; EF(C) = ES(C) + Dur(C) = 12 + 10 = 22
ES(F) = EF(A) = 12; EF(F) = ES(F) + Dur(F) = 12 + 10 = 22
ES(I) = EF(A) = 12; EF(I) = ES(I) + Dur(I) = 12 + 15 = 27
ES(D) = EF(B) = 9; EF(D) = ES(D) + Dur(D) = 9 + 10 = 19
ES(E) = EF(B) = 9; EF(E) = ES(E) + Dur(E) = 9 + 24 = 33
ES(G) = EF(C) = 22; EF(G) = ES(G) + Dur(G) = 22 + 35 = 57
ES(H) = EF(D) = 19; EF(H) = ES(H) + Dur(H) = 19 + 40 = 59
ES(J) = max(EF(E), EF(G), EF(H)) = max(33, 57, 59) = 59
EF(J) = ES(J) + Dur(J) = 59 + 4 = 63
ES(K) = max(EF(F), EF(I), EF(J)) = max(22, 27, 63) = 63
EF(K) = ES(K) + Dur(K) = 63 + 6 = 69
專案總持續時間 = EF(End) = EF(K) = 69。
向後計算 (Backward Pass) - 計算 LF 與 LS:
LF(End) = EF(End) = 69
LS(End) = LF(End) = 69
LF(K) = LS(End) = 69; LS(K) = LF(K) - Dur(K) = 69 - 6 = 63
LF(J) = LS(K) = 63; LS(J) = LF(J) - Dur(J) = 63 - 4 = 59
LF(I) = LS(K) = 63; LS(I) = LF(I) - Dur(I) = 63 - 15 = 48
LF(F) = LS(K) = 63; LS(F) = LF(F) - Dur(F) = 63 - 10 = 53
LF(H) = LS(J) = 59; LS(H) = LF(H) - Dur(H) = 59 - 40 = 19
LF(G) = LS(J) = 59; LS(G) = LF(G) - Dur(G) = 59 - 35 = 24
第 2 題20 分
- (20%) An automobile manufacturer that produces sedans and SUVs (Sports Utility Vehicles).
Manufacturing is organized into four departments: sheet metal stamping, engine assembly, sedan
assembly, and SUV assembly. The capacity of each department is limited. The following table provides
the percentages of each department's monthly capacity that would be consumed by constructing a
thousand sedans or a thousand SUVs.
Department | sedan | SUV
------- | -------- | --------
sheet metal stamping | 5% | 3%
engine assembly | 4% | 5%
sedan assembly | 3% | 0%
SUV assembly | 0% | 6%
The marketing department estimates a profit of 2,500 per SUV
produced.
a. Please formulate a linear programming problem that would maximize the profit (in thousand
dollars).
b. Please solve the formulated problem from a.
c. The manager has found that the costs of increasing 1% capacity of metal stamping and increasing
1% capacity of engine assembly would cost the same. Which department the manager should invest
on?
d. Please formulate the dual problem from a.
登入後即可作答並保存紀錄。
核心觀念
本題考查線性規劃(Linear Programming, LP)之建模、圖解法求解、對偶問題(Dual Problem)建立及影子價格(Shadow Price)之管理決策應用。
- 單位與決策變數定義:
- 令 為每月生產之轎車數量(單位:千輛,即 sedans)。
- 令 為每月生產之休旅車數量(單位:千輛,即 SUVs)。
- 題幹要求利潤以千美元(thousand dollars)為單位:
- 每輛轎車利潤 $3,000 每千輛轎車利潤為 $ 千美元。
- 每輛休旅車利潤 $2,500 每千輛休旅車利潤為 $ 千美元。
- 目標函數為 (千美元)。
- 產能限制式(以滿載 100% 即 1 為上限):
- 金屬沖壓:(或 )
- 引擎組裝:(或 )
- 轎車組裝:(或 )
- 休旅車組裝:(或 )
- 對偶問題與影子價格(Shadow Price):
限制式資源每增加一單位,目標函數最優值所能增加之邊際效益即為對偶變數之值。當兩部門增加相同比例產能之成本相同時,應優先投資於影子價格較高之瓶頸部門。
解題步驟
a. 線性規劃模型建立(以千美元為單位)
b. 求解線性規劃問題
由可行解區域(Feasible Region)之頂點分析:
- 可行區域之頂點包含 、、、,以及金屬沖壓與引擎組裝之交點。
- 解聯立緊縮限制式(Binding Constraints):
前式乘 5 減後式乘 3:。
代入求得 。 - 驗證其餘兩項限制式:
- 轎車組裝:(未飽和,鬆弛量 )。
- 休旅車組裝:(未飽和,鬆弛量 )。
- 最大利潤值:
c. 產能擴充投資決策(影子價格分析)
設 分別為四項產能限制式之影子價格(千美元/100% 產能)。
由於轎車組裝與休旅車組裝未飽和,由互補鬆弛定理(Complementary Slackness),。
金屬沖壓與引擎組裝達到瓶頸,滿足對偶等式:
第 3 題15 分
- (15%) Consider the following mathematical programming problem:
Maximize
Subject to
and are integer.
Please solve the problem by dynamic programming method.
登入後即可作答並保存紀錄。
核心觀念
- 動態規劃(Dynamic Programming, DP)之乘積限制式模型:
本題為典型的非線性整數規劃問題(Nonlinear Integer Programming)。雖然目標函數為可加分離(Additively Separable),但限制式為乘積形式(Multiplicative Constraint)。在 DP 建模時,狀態轉移並非傳統的「加減法消耗資源」,而是「除法分配因子」。 - 變數可行域分析:
限制條件包含 且為整數,由於 ,任何變數皆不可為 。因此 必為正整數,且皆為 的正因數,即 。 - 貝爾曼最適性原理(Bellman's Principle of Optimality)與倒推遞迴關係式(Backward Recursion):
將三元變數的同時決策分解為 3 個階段(Stage)的循序決策,利用各階段的狀態值記錄剩餘乘積需求,由後向前逐階求解。
解題方法
採用倒推動態規劃法(Backward Dynamic Programming)求解:
1. DP 元素定義
- 階段(Stage ):,分別對應決定決策變數 。
- 狀態(State ):進入階段 時,自階段 至階段 3 尚需達成的乘積目標值。
- 初始狀態:
- 狀態集合:
- 決策變數(Decision Variable ):階段 所選取的數值,其可行集合為 的正整數因數,即 。
- 狀態轉移方程式(State Transition Equation):
- 各階段收益函數(Stage Return ):
- 遞迴關係式(Recursive Relation):
令 為在狀態 下,從階段 進行至階段 3 所能獲得的最大總收益: 邊界條件(Stage 3):
2. 逐階段遞迴計算
【Stage 3】(決定 )
在最後階段,為滿足乘積條件,必須使 :
【Stage 2】(決定 )
遞迴公式為:
- 當 時,:
- 當 時,:
- 當 時,:
- 當 時,:
Stage 2 彙整表:
| 13 | — | — | — | 13 | ||
| 24 | 19 | — | — | 24 | ||
| 46 | 30 | 43 | — | 46 |
第 4 題20 分
- The rule of a game is that one can bet any amount of money and then either wins or loses this amount of
money. The probability of winning (or losing) each game is 0.5. A smart gambler proposes a strategy to
guarantee winning one dollar for each series of games. The strategy is to bet one dollar for the first game. If he
wins, then he will bet one dollar again. If he loses, then he will bet two dollars for the next game. At this time,
if he wins, then he will start over by betting one dollar again. If he loses, then he will bet four dollars for the
third game. The process of doubling the bet continues until he wins a game. Once he wins a game, this process
starts over by betting one dollar again. Is this strategy going to work as the gambler expected? Answer the
question by calculating (1) the expected number of games needed in each series of games to win one dollar
and (2) the expected amount of money needed to win one dollar. (20%)
登入後即可作答並保存紀錄。
本題考驗對機率與期望值的理解,特別是如何分析一個有規則的隨機過程。這是一個關於賭博策略的期望值問題,需要仔細分析賭客的策略和獲利情況。
首先,我們需要理解賭客的策略:
- 如果贏,下一場下注 $1。
- 如果輸,下一場下注加倍(1 -> 2, 2 -> 4, 4 -> 8, ...)。
- 當贏一場後,下一場重新下注 $1。
- 目標是贏得 1 美元。
我們需要計算:
- 贏得 1 美元所需的平均遊戲次數。
- 贏得 1 美元所需的平均總下注金額(成本)。
分析一個「遊戲系列」:
一個遊戲系列是指從開始下注 B_kkWLP(W) = P(L) = 0.5$。
情況 1:第一場就贏。
- 下注 。
- 贏得 $1。
- 遊戲系列結束。
- 總遊戲次數 = 1。
- 總下注金額 = 1。
情況 2:第一場輸,第二場贏。
- 第一場下注 ,輸。
- 第二場下注 。
- 贏得 $2。
- 由於贏了,下一場重新下注 $1。
- 遊戲系列結束。
- 總遊戲次數 = 2。
- 總下注金額 = 。
- 淨利潤 = 。
情況 3:第一場輸,第二場輸,第三場贏。
- 第一場下注 ,輸。
- 第二場下注 ,輸。
- 第三場下注 。
- 贏得 $4。
- 由於贏了,下一場重新下注 $1。
- 遊戲系列結束。
- 總遊戲次數 = 3。
- 總下注金額 = 。
- 淨利潤 = 。
一般情況:
假設在第 場遊戲獲勝。
則前 場都輸了,第 場贏了。
下注金額為 。
第 場贏得 。
此時,賭客的淨利潤為 。
這個策略確實保證了在每次系列結束時,淨利潤是 $1 美元。
1. 計算期望的遊戲次數 (Expected number of games needed in each series):
設 為一個遊戲系列所需的平均遊戲次數。
- 贏的機率是 0.5,所需次數是 1。
- 輸然後贏的機率是 ,所需次數是 2。
- 輸、輸、然後贏的機率是 ,所需次數是 3。
- 一般來說,在第 場獲勝的機率是 。
這是一個標準的幾何分佈期望值的變形。
對於一個機率為 的幾何分佈,其期望值為 。
如果我們將「成功」定義為「在某場遊戲獲勝」,則獲勝的機率是 。
然而,這裡的「遊戲系列」是定義為「直到第一次獲勝為止」。
所以,在每次遊戲中,獲勝的機率是 。
因此,贏得一場比賽所需的平均遊戲次數是 。
讓我們驗證一下:
使用公式 ,其中 。
。
所以,平均每個遊戲系列需要 2 場遊戲。
2. 計算期望的總下注金額 (Expected amount of money needed to win one dollar):
設 為贏得 1 美元所需的平均總下注金額。
在第 場獲勝時,總下注金額是 。
在第 場獲勝的機率是 。
是無窮級數 ,這個級數是發散的(趨於無窮大)。
是一個無窮等比級數,首項 ,公比 $r = 0.5
第 5 題30 分
- People arrive at a service station according to a Poisson process with the arrival rate of six persons per hour.
The station has two servers with the same service rate of serving four customers per hour, and the service time
follows an exponential distribution. The manager of this station is considering two strategies: one queue for
the two servers and two independent queues for the two servers. For the latter case, switching lines is allowed
for customers in either line. Which strategy do you think is better? Answer the question by comparing the
expected waiting time in the system for each customer under the two strategies. You need to use the balance
equation to derive Pn, the probability of having n persons in the system, first. Then calculate the expected
number of persons in the system and the expected waiting time in the system for each person. (30%)
登入後即可作答並保存紀錄。
核心觀念
本題考查排隊理論(Queuing Theory)中多伺服器系統之平衡方程式推導、狀態機率 求解、Little's Law 之應用,以及單一隊伍(Pooled Queue, M/M/2)與獨立隊伍(Separate Queues)之效能比較。
- 到達率 人/小時(Poisson 過程)。
- 伺服器數 ,每位伺服器之服務率 人/小時(指數分佈)。
- 系統整體服務能量強度:(系統達穩態)。
解題步驟
1. 策略一:單一隊伍服務兩台伺服器(M/M/2 系統)
在穩態下,系統處於狀態 (系統中有 個人)之機率為 。
-
建立平衡方程式(Balance Equations, 進入率 = 離開率):
- 狀態 0:
- 狀態 1:
將 代入,得相鄰狀態切面平衡式:
- 狀態 (兩台伺服器皆忙碌,總服務率為 ):
由遞迴關係可得:
-
利用全機率歸一化條件求 :
因此各狀態機率為:
-
計算系統平均人數 與平均排隊人數 :
系統平均人數(含正在被服務者):
-
計算每位顧客在系統中之平均時間 (由 Little's Law: ):