112 年 國立臺灣大學工業工程學研究所碩士班產業與服務系統工程組《作業研究》

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

第 1 題15 分

Consider the following linear programming (LP) model:
Maximize cxcx
Subject to
Ax≤bAx \leq b
x≥0x \geq 0

(a) (5 points) Let x1x_1 and x2x_2 be feasible points of the LP. Write down the convex combination of x1x_1 and x2x_2.
(b) (5 points) Let x′x' be a point belonging to the convex combination in (a). Show that x′x' is also feasible.
(c) (5 points) Justify that the objective value of x′x' is not better than the optimal objective value.

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

這一題的完整詳解

本題考查線性規劃中可行區域的凸性性質。

核心觀念:線性規劃的可行區域是一個凸集(convex set)。凸集的定義是指,若集合中任兩點的連線段上的所有點都屬於該集合,則該集合為凸集。

(a) 可行組合的定義
設 x1x_1 和 x2x_2 是線性規劃問題的兩個可行點。它們的凸組合(convex combination)可以表示為 λx1+(1−λ)x2\lambda x_1 + (1-\lambda) x_2,其中 0≤λ≤10 \leq \lambda \leq 1。

(b) 證明凸組合點的可行性
線性規劃的可行區域是由一組線性不等式 Ax≤bAx \leq b 和非負約束 x≥0x \geq 0 所定義的。我們需要證明,若 x1x_1 和 x2x_2 是可行點,則其凸組合 x′=λx1+(1−λ)x2x' = \lambda x_1 + (1-\lambda) x_2 (0≤λ≤10 \leq \lambda \leq 1) 也滿足這些約束。

  1. 非負約束 x′≥0x' \geq 0:
    由於 x1≥0x_1 \geq 0 且 x2≥0x_2 \geq 0,且 λ≥0\lambda \geq 0,1−λ≥01-\lambda \geq 0,因此:
    x′=λx1+(1−λ)x2≥λ(0)+(1−λ)(0)=0x' = \lambda x_1 + (1-\lambda) x_2 \geq \lambda(0) + (1-\lambda)(0) = 0。
    所以,x′x' 滿足非負約束。

  2. 線性約束 Ax′≤bAx' \leq b:
    由於 x1x_1 和 x2x_2 是可行點,我們有 Ax1≤bAx_1 \leq b 和 Ax2≤bAx_2 \leq b。
    考慮 Ax′Ax':
    Ax′=A(λx1+(1−λ)x2)Ax' = A(\lambda x_1 + (1-\lambda) x_2)
    根據矩陣運算的分配律:
    Ax′=λ(Ax1)+(1−λ)(Ax2)Ax' = \lambda (Ax_1) + (1-\lambda) (Ax_2)

🔒

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

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

免費註冊

第 2 題15 分

A company has an order from a customer for requiring 9 CNC machines, to be delivered 3 units each month over the next three months. The CNC machines can be shipped to the customer at the end of the same month in which the machines are assembled, or the machines can be stored as inventory for delivery during later months. The inventory holding cost is $400 per machine per month. The company has no current inventory of these CNC machines and desires none after the completion of this contract. The company will determine a production schedule that minimizes the total cost. The production data of assembling the CNC machines are summarized as follows.

Month 1Month 2Month 3
Regular production capacity (units)223
Regular production cost per unit$2500$2900$3000
Overtime production capacity (units)221
Overtime production cost per unit$2800$3400$3200

(a) (10 points) Construct a Transportation Tableau for the problem.
(b) (5 points) Use the Northwest Corner Method to find an initial solution.

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

這一題的完整詳解

核心觀念

本題考查「運輸問題(Transportation Problem)」的建模,以及「西北角法(Northwest Corner Method)」求初始基本可行解。

  • 每一個生產方式視為一個供給點:
    第 1、2、3 月的正常工時與加班生產。
  • 每一個交貨月份視為一個需求點:
    每月需求量均為 33 台。
  • 生產後若延後交貨,每台每月增加庫存持有成本 400400。
  • 各生產方式的供給量為其生產能力。
  • 總供給量為
2+2+2+2+3+1=122+2+2+2+3+1=12

總需求量為

3+3+3=93+3+3=9

供給多於需求 33 台,因此加入一個「虛擬需求點」表示未使用的生產能力,需求量為 33,其運輸成本設為 00。

生產於第 ii 月、供應第 jj 月的單位成本為

生產成本+400(j−i),j≥i\text{生產成本}+400(j-i), \qquad j\geq i

若生產月份晚於交貨月份,則不可行,該格以 MM 或「—」表示。


解題方法

成本計算

例如:

  • 第 1 月正常生產,供應第 2 月:
2900+400=33002900+400=3300
  • 第 1 月加班生產,供應第 3 月:
3200+2(400)=40003200+2(400)=4000
  • 第 2 月加班生產,供應第 3 月:
3400+400=38003400+400=3800

虛擬需求點的成本均為 00,代表該生產能力不使用。


(a)Transportation Tableau

令供給列依序為:

  • R1R_1:第 1 月正常生產
  • O1O_1:第 1 月加班生產
  • R2R_2:第 2 月正常生產
  • O2O_2:第 2 月加班生產
  • R3R_3:第 3 月正常生產
  • O3O_3:第 3 月加班生產

需求欄依序為第 1、2、3 月交貨,以及虛擬需求點。

生產來源第1月交貨第2月交貨第3月交貨未使用能力供給量
第1月正常 R1R_1250025002900+400=33002900+400=33003000+800=38003000+800=38000022
第1月加班 O1O_1280028003400+400=38003400+400=38003200+800=40003200+800=40000022
第2月正常 R2R_2MM290029003000+400=34003000+400=34000022
第2月加班 O2O_2MM340034003400+400=38003400+400=38000022
第3月正常 R3R_3MMMM300030000033
第3月加班 O3O_3MMMM320032000011
需求量333312

其中:

  • MM 表示生產時間晚於交貨時間,不允許運輸。
  • 「未使用能力」欄的需求量為 33,用來平衡供需。
  • 00 成本表示該生產能力不使用,不代表真的生產後免費保存。

(b)西北角法初始解

依照西北角法,從左上角開始分配。

第一步:R1R_1 配給第 1 月

xR1,1=min⁡(2,3)=2x_{R_1,1}=\min(2,3)=2

第 1 月尚餘需求 11,R1R_1 生產能力用罄。

第二步:O1O_1 配給第 1 月

xO1,1=min⁡(2,1)=1x_{O_1,1}=\min(2,1)=1

第 1 月需求滿足,O1O_1 尚餘能力 11。

第三步:O1O_1 配給第 2 月

xO1,2=min⁡(1,3)=1x_{O_1,2}=\min(1,3)=1
🔒

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

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

免費註冊

第 3 題20 分

NTUIIE has four teachers to offer the following courses each semester: Operations Research (OR), Production Planning (PP), Quality Control (QC), and Data Analysis (DA). The effectiveness of each teacher in teaching each class is shown in the following table. Each teacher can teach one course during the semester, and all these four courses are provided.

ORPPQCDA
Teacher A9855
Teacher B9568
Teacher C5886
Teacher D7589

(a) (10 points) Use the Hungarian Method to solve the teaching assignment problem that maximizes the total effectiveness.
(b) (10 points) Assume that a goal of achieving effectiveness level of about 7 in each course is set by the school, and deviations from this goal in any courses have equal weight. Formulate a goal programming model that determines the teaching assignment.

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

這一題的完整詳解

核心觀念

本題考查兩個主題:

  1. 指派問題(assignment problem):四位教師各教一門課,且每門課恰由一位教師教授。目標是使總教學效果最大。
  2. 目標規劃(goal programming):以各課程教學效果 77 為目標,最小化各課程偏離目標的總偏差。

令

xij={1,教師 i 教授課程 j,0,否則。x_{ij}= \begin{cases} 1,&\text{教師 }i\text{ 教授課程 }j,\\ 0,&\text{否則。} \end{cases}

(a)以匈牙利法求最大總教學效果

步驟一:將最大化問題轉成最小化問題

表中最大效果值為 99,令成本矩陣為

cij=9−eij,c_{ij}=9-e_{ij},

其中 eije_{ij} 為原始教學效果。如此一來,總成本越小,總教學效果越大,因為四位教師各分配一門課:

∑cij=4(9)−∑eij=36−∑eij.\sum c_{ij}=4(9)-\sum e_{ij}=36-\sum e_{ij}.

因此,原問題等價於最小化下列成本矩陣:

ORPPQCDA
A0144
B0431
C4113
D2410

步驟二:列減法

每列最小值皆為 00,因此列減法後矩陣不變。

步驟三:欄減法

各欄最小值為:

  • OR 欄:00
  • PP 欄:11
  • QC 欄:11
  • DA 欄:00

將 PP 欄與 QC 欄各減去 11,得到:

ORPPQCDA
A0034
B0321
C4003
D2300

步驟四:選取互不衝突的零元素

選取下列四個互不位於同列、同欄的零元素:

  • A–PP
  • B–OR
  • C–QC
  • D–DA

因此指派結果為:

教師課程原始教學效果
APP8
BOR9
CQC8
DDA9

總教學效果為

8+9+8+9=34.8+9+8+9=34.

由於已找到四個互不衝突的零元素,匈牙利法可停止;此指派即為最佳指派。


(b)目標規劃模型

變數定義

令:

  • xij=1x_{ij}=1:教師 ii 教授課程 jj
  • xij=0x_{ij}=0:否則
  • dj−d_j^-:課程 jj 的效果低於目標 77 的不足偏差
  • dj+d_j^+:課程 jj 的效果超過目標 77 的超額偏差

其中

dj−≥0,dj+≥0.d_j^-\ge 0,\qquad d_j^+\ge 0.

目標函數

題目指出各課程偏離目標的權重相同,因此最小化所有不足偏差與超額偏差:

min⁡Z=dOR−+dOR++dPP−+dPP++dQC−+dQC++dDA−+dDA+.\min Z= d_{\mathrm{OR}}^-+d_{\mathrm{OR}}^+ +d_{\mathrm{PP}}^-+d_{\mathrm{PP}}^+ +d_{\mathrm{QC}}^-+d_{\mathrm{QC}}^+ +d_{\mathrm{DA}}^-+d_{\mathrm{DA}}^+.

目標限制式

每門課的實際教學效果加上不足偏差、扣除超額偏差後,等於目標值 77:

9xA,OR+9xB,OR+5xC,OR+7xD,OR+dOR−−dOR+=7,9x_{A,\mathrm{OR}}+9x_{B,\mathrm{OR}} +5x_{C,\mathrm{OR}}+7x_{D,\mathrm{OR}} +d_{\mathrm{OR}}^- -d_{\mathrm{OR}}^+=7,
🔒

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

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

免費註冊

第 4 題15 分

A mysterious disease is spreading on a small island, where the population is n. In any single period, two random people from the population meet and interact. If one of the two is infected and the other is not, the disease is transmitted to the healthy person with probability p; otherwise, no disease transmission takes place.

(a) (6 points) Setup a Markov chain model and determine the transition probability matrix.
(b) (9 points) Assuming that the process starts at time 0 with a single person infected, n = 5, and p = 0.1, what is the mean time that the disease takes to infect the whole population?
(You might need:
r -1 0 1 2]
| 0 0 1 0]
| 3 3 3 3]
| 0 0 1 0]
| 0 0 0 1]
| 0 0 0 1]
LO 0 0 1]

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

這一題的完整詳解

核心觀念

令 XtX_t 表示第 tt 期結束後,島上已感染的人數。由於下一期的感染情形只取決於目前感染人數 XtX_t,與過去感染歷程無關,因此 {Xt}\{X_t\} 是馬可夫鏈。

狀態空間為

S={0,1,2,…,n}.\mathcal{S}=\{0,1,2,\ldots,n\}.

其中:

  • 00:沒有感染者;
  • nn:全體人口皆感染。

狀態 00 與 nn 都是吸收狀態。疾病只會新增感染者,不會自行痊癒,因此每一期感染人數最多增加 11。


(a) 轉移機率矩陣

假設目前有 ii 人感染,則有 n−in-i 人尚未感染。

從全體人口中任選兩人,兩人一感染、一未感染的配對數為

i(n−i).i(n-i).

全體任選兩人的配對數為

(n2)=n(n−1)2.\binom{n}{2}=\frac{n(n-1)}{2}.

因此,選到「一人感染、一人健康」配對的機率為

i(n−i)(n2)=2i(n−i)n(n−1).\frac{i(n-i)}{\binom{n}{2}} = \frac{2i(n-i)}{n(n-1)}.

在此情況下,疾病以機率 pp 傳給健康者,所以

Pi,i+1=pi(n−i)(n2)=2pi(n−i)n(n−1).P_{i,i+1} = p\frac{i(n-i)}{\binom{n}{2}} = \frac{2pi(n-i)}{n(n-1)}.

若沒有成功傳染,感染人數維持為 ii,故

Pi,i=1−2pi(n−i)n(n−1).P_{i,i} = 1-\frac{2pi(n-i)}{n(n-1)}.

其餘轉移皆不可能,因此

Pi,j=0若 j∉{i,i+1}.P_{i,j}=0 \quad\text{若 }j\notin\{i,i+1\}.

特別地,00 與 nn 為吸收狀態:

P0,0=1,Pn,n=1.P_{0,0}=1,\qquad P_{n,n}=1.

若依狀態順序 0,1,…,n0,1,\ldots,n 排列,轉移矩陣為

P=[100⋯0001−q1q1⋯00001−q2⋱00⋮⋮⋱⋱⋱⋮000⋯1−qn−1qn−1000⋯01],P= \begin{bmatrix} 1 & 0 & 0 & \cdots & 0 & 0\\ 0 & 1-q_1 & q_1 & \cdots & 0 & 0\\ 0 & 0 & 1-q_2 & \ddots & 0 & 0\\ \vdots & \vdots & \ddots & \ddots & \ddots & \vdots\\ 0 & 0 & 0 & \cdots & 1-q_{n-1} & q_{n-1}\\ 0 & 0 & 0 & \cdots & 0 & 1 \end{bmatrix},

其中

qi=2pi(n−i)n(n−1),i=1,2,…,n−1.q_i=\frac{2pi(n-i)}{n(n-1)},\qquad i=1,2,\ldots,n-1.

(b) 感染全體人口的平均時間

🔒

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

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

免費註冊

第 5 題35 分

The NTU mobile shop is now selling the newest ePhone and managing its own inventory. In the morning of day (i+1)(i + 1) when the shop opens, it has Si+AiS_i + A_i ePhones on hands, where SiS_i is the stock level and AiA_i is the ordered quantity at the end of day ii. The ordered AiA_i phones will always arrive before the shop opens on day (i+1)(i + 1). The demand of ePhone on day ii, expressed as DiD_i, occurs during business hours and follows a probability distribution. The inventory control and ordering criteria of the shop are summarized below.

  • The shop can only hold 0 to 2 phones at the beginning of the day, i.e., 0≤Si+Ai≤20 \leq S_i + A_i \leq 2.

  • The shop doesn't allow backorders, i.e., Si≥0S_i \geq 0.

  • The penalty cost of unsatisfied demand is 3 per phone.

  • Each order issued at the end of the day yields an order handling cost 2 and the variable cost is 4 per phone.

  • The day-to-day demands are i.i.d. and follow the probability distribution:

    Demand Di=dD_i = d012
    Probability p(Di=d)p(D_i = d)0.40.30.3

(a) (5 points) What is the balance equation of the shop regarding Si,Si+1,Ai,Di+1S_i, S_{i+1}, A_i, D_{i+1}?
(b) (10 points) Let psisi+1(ai)p_{s_i s_{i+1}}(a_i) indicate the probability from the current (stock level sis_i, ordering action aia_i) to the next stock level si+1s_{i+1}. Write down the complete transition probability matrix of all possible psisi+1(ai)p_{s_i s_{i+1}}(a_i).
(c) (10 points) Let c(s,a)c(s, a) denote the incurred cost after taking the ordering action aa at the stock level ss. List and calculate all the possible costs c(s,a)c(s, a) by varying ss and aa.
(d) (10 points) The shop currently uses a deterministic ordering policy as shown below. Calculate its expected cost under this policy.

Stock Level ss012
Ordering Action aa200

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

這一題的完整詳解

核心觀念

本題考查有限狀態存貨控制的庫存平衡式、馬可夫轉移機率,以及含缺貨罰款的期望成本。

訂貨量 aa 到貨後,隔日營業開始時的可用庫存為 s+as+a。由於不允許欠單,需求超過庫存的部分視為未滿足需求,期末庫存不會低於 00。因此,下一期庫存為

Si+1=max⁡{Si+Ai−Di+1, 0}.S_{i+1}=\max\{S_i+A_i-D_{i+1},\,0\}.

其中 0≤Si+Ai≤20\leq S_i+A_i\leq 2,且訂貨量為非負整數。

解題方法

先依可用庫存 x=s+ax=s+a 計算下一期庫存的機率分布,再以訂貨成本加上期望缺貨罰款,計算各狀態與行動的期望成本。政策的長期平均成本則以其穩態機率加權各狀態成本。

(a) 庫存平衡式

Si+1=max⁡{Si+Ai−Di+1, 0}.S_{i+1}=\max\{S_i+A_i-D_{i+1},\,0\}.

等價地,也可寫成 Si+1=max⁡{Si+Ai−Di+1,0}S_{i+1}=\max\{S_i+A_i-D_{i+1},0\};需求超過可用庫存時,未滿足的數量不會形成欠單。

(b) 完整轉移機率

令 x=s+ax=s+a。當 x=0x=0 時,下一期庫存必為 00;當 x=1x=1 時,需求為 00 才留下 11 支;當 x=2x=2 時,需求為 0、1、20、1、2 時分別留下 2、1、02、1、0 支。

下表列出所有可行的 (s,a)(s,a),欄位為下一期庫存 si+1s_{i+1}:

目前庫存 ss訂貨量 aaps,0(a)p_{s,0}(a)ps,1(a)p_{s,1}(a)ps,2(a)p_{s,2}(a)
001.000
010.60.40
020.30.30.4
100.60.40
110.30.30.4
200.30.30.4

例如 (s,a)=(1,0)(s,a)=(1,0) 時,可用庫存為 11;需求 00 的機率為 0.40.4,隔日庫存為 11;需求 11 或 22 的總機率為 0.60.6,隔日庫存為 00。

(c) 各狀態與行動的期望成本

令 x=s+ax=s+a。每次下單的固定處理成本為 $2,變動成本為每支 $4;若 a=0a=0,則沒有訂單處理成本。當日未滿足需求的期望量為

E[(D−x)+]=∑d=02p(D=d)max⁡{d−x,0}.\mathbb{E}[(D-x)^+] =\sum_{d=0}^{2}p(D=d)\max\{d-x,0\}.

因此,採取行動後的期望成本為

c(s,a)={0,a=0,2+4a,a>0+3E[(D−x)+].c(s,a)= \begin{cases} 0, & a=0,\\ 2+4a, & a>0 \end{cases} +3\mathbb{E}[(D-x)^+].

可用庫存 x=0x=0 時,期望未滿足需求量為 0.3(1)+0.3(2)=0.90.3(1)+0.3(2)=0.9,缺貨罰款期望為 $2.70;x=1x=1 時,期望未滿足需求量為 0.30.3,缺貨罰款期望為 $0.90;

🔒

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

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

免費註冊

其他考古題

112 年臺灣大學的其他科目

臺灣大學《作業研究》其他年度