111 年 國立臺灣大學工業工程學研究所碩士班產業與服務系統工程組《作業系統》
第 1 題20 分
A manufacturer produces two products subjected to two types of resources and sets the selling prices at 10. The production quantity decision for these products ( and ) of maximizing the revenue can be formulated as the following linear programming (LP) model:
(a) Since the Consumer Price Index surges by most recently, the manufacturer considers to raise the prices for both products by (), and thus the selling prices will become and . Find out how affects the objective value by using parametric programming.
(b) Because of delay of the shipment, the availability of the resource used for the first constraint is affected (). Determine how in the range of affects the objective value while the selling prices remains the same as 10.
登入後即可作答並保存紀錄。
核心觀念
本題考查線性規劃的敏感度分析:
- 目標函數係數變動:分析產品售價改變時,最佳解與最佳目標值如何變化。
- 右手邊資源限制變動:分析資源可用量改變時,最佳解與最大收益如何變化。
- 參數規劃:將價格或資源變動量視為參數,找出不同參數區間下的最適基底與目標值函數。
原始限制式的可行域頂點為
各頂點的收益如下:
因此原始問題的最佳解為
(a) 售價同時增加
解題方法
價格變動後,目標函數為
將其整理為
由於可行域不變,只需比較各個頂點在新目標函數下的收益。
各頂點目標值
在 :
在 :
在 :
原點的目標值為 ,不會成為最佳解。
比較最佳頂點
先比較 與 :
再比較 與 :
對所有 均成立,因此 不會成為最佳解。
所以:
參數化結果
當 :
當 :
此時目標函數為
因此第二條限制式成為等收益線,線段
上介於 與 的所有可行點皆為最佳解,且
當 :
因此最大收益函數為
在 時,兩段函數數值相同;最佳解則由單一點擴展為一條線段上的多重最佳解。
(b) 第一項資源減少
第一條限制式改為
令
則問題變為
先判斷可行性
因為 ,所以
要有可行解,必須滿足
因此:
- :問題可行。
- :第一條限制式右側為負數,問題無可行解。
以下分析 。
第 2 題15 分
A company develops 4 possible new products (say, products A, B, C, and D) and wants to decide which of these products will actually be produced and at what levels. If product i is manufactured, the corresponding setup cost, , will be incurred and the selling price will be set at ( and ). In addition, based on the marketing survey, some guidelines for the production plan are suggested:
- At most three products can be produced.
- If product A is produced, product B can't be produced.
- If product C is produced, product D should also be produced.
- Product A can be produced only if either product C or D is produced.
Please formulate a mixed integer programming model to maximize the profit.
登入後即可作答並保存紀錄。
核心觀念
本題考查「固定設置成本(fixed setup cost)」與「生產決策邏輯」的混合整數規劃模型。
- 生產數量是連續變數。
- 是否生產某產品是 – 整數變數。
- 只要產品 被生產,就必須支付固定設置成本 。
- 各項生產限制以二元變數之間的邏輯關係表示。
題目未提供市場需求上限、產能上限與單位生產成本。以下假設產品 的最大可生產量為 ,且未提供單位生產成本,因此利潤只包含銷售收入與設置成本。
決策變數
令
其中 ,為連續變數。
令
其中 。
目標函數
產品 的銷售收入為 ,若生產該產品,則需支付固定設置成本 。因此最大化總利潤:
生產量與生產決策的連結
若產品未被生產,則生產量必須為零;若產品被生產,生產量不得超過其上限:
例如:
當 時,;當 時,產品 A 才能有正的生產量。
若題目要求「只要宣告生產就必須達到最小生產量」,可再加入:
本題未給定最小生產量,因此不需要加入此限制。
行銷規則的模型化
1. 最多生產三種產品
2. 若生產 A,則不可生產 B
邏輯關係為
可寫成:
因此 A、B 不得同時被選取。
3. 若生產 C,則必須生產 D
邏輯關係為
第 3 題15 分
There is a communication network consisting of 6 nodes and 9 directed arcs where denotes the arc cost linked nodes and as shown below.
🖼️【此處有附圖,請對照原卷】
(a) (5 points) List all possible paths starting from node 0 to node 5.
(b) (10 points) Use the information obtained from (a) to formulate a programming model that disconnects the communication from node 0 to node 5 with the minimal cost.
登入後即可作答並保存紀錄。
核心觀念
這題考的是有向網路的最小成本斷路模型。若要切斷節點 到節點 的所有通路,必須在每一條由 通往 的路徑上,至少移除一條弧。這也可視為以最低成本選出一組弧,使其涵蓋所有路徑。
令 表示是否移除弧 :
解題方法
依照圖中的箭頭方向,網路共有以下九條弧:
由節點 出發,依箭頭逐段列出所有抵達節點 的路徑:
每條路徑都必須至少移除一條弧,因此對每條路徑分別加入「路徑上弧的 總和至少為 1」的限制。
數學模型
目標函數是最小化所有移除弧的總成本:
第 4 題15 分
The IIE produces two similar types of laptops, Laptop A and Laptop B. It costs dollars to produce units of Laptop A, and it costs dollars to produce units of Laptop B. Let , and represent the total number of laptops produced. Since the two types of laptops are similar, all of the laptops will be sold for the same price and consumers will pay dollars for each unit of the laptops. If IIE wants to maximize the total profits, how many Laptop A and Laptop B should be produced?
登入後即可作答並保存紀錄。
解題步驟
- 利潤函數
- 以 表示
- 對 求偏導
第 5 題15 分
The NTU farm decided to keep goats on-site at the end of the last year. And, at the end of each year, NTU farm will need to decide how many goats to sell or keep. The profit from selling a goat in the year is , and the goats kept at the end of a year will double in number at the end of the next year. The NTU farm plans to sell all the goats at the end of the th year. The objective is to maximize the total profit over the years.
(a) (7 points) Develop a general dynamic programming model for this problem and clearly define all the variables and the recursive equation for your model.
(b) (8 points) Solve the problem for the NTU farm when goats, years, $$65, and $60.
登入後即可作答並保存紀錄。
核心觀念
本題屬於動態規劃(Dynamic Programming, DP)中的多階段決策過程(Multi-Stage Decision Process)與庫存/生產控制模型。
- 貝爾曼最佳化原理(Bellman's Principle of Optimality):
無論初始狀態與初始決策為何,後續決策相對於由前一決策所形成的狀態,皆必須構成最佳策略。求解時通常採用**逆向遞迴(Backward Induction)**由最後一階段倒推至第一階段。 - 動態規劃四大要素:
- 階段(Stage, ):代表時間(年度 )。
- 狀態(State, ):進入階段 時可用的資源量(第 年底賣羊決策前的山羊總數)。
- 決策(Decision, ):在階段 所做的選擇(第 年底賣出的山羊數量)。
- 狀態轉移(State Transition):決定下一階段狀態的物理規則(本題為保留的山羊在下一年數量翻倍)。
解題方法
(a) 動態規劃模型建構(General Dynamic Programming Model)
1. 符號與變數定義:
- 階段(Stage):,代表第 年。
- 狀態變數(State Variable):在第 年年底、執行賣出決策前,農場擁有的山羊總數()。
- 初始狀態:去年底(第 年底)保留 隻山羊,經過一年繁殖翻倍,故第 年底的初始可用山羊數為 。
- 決策變數(Decision Variable):在第 年年底決定賣出的山羊數量,限制條件為 且 為整數。
- 狀態轉移方程式(State Transition Equation):
第 年底賣出 隻後,保留 隻,經過一年後數量翻倍,故下一年度可用山羊數為: - 即時收益(Immediate Return):第 年賣羊獲得之利潤為 。
- 價值函數(Value Function / Optimal Value Function):
令 表示從第 年開始直到第 年結束,在第 年底初始山羊數為 的條件下所能獲得的最大累積總利潤。
2. 遞迴關係式(Recursive Equation / Bellman Equation):
- 終點邊界條件(Terminal Stage ):
題目規定第 年底必須將所有山羊全部賣出,故決策為 : - 中間階段遞迴式(Stage ):
- 求解目標:求出 與對應之最佳決策序列 。
(b) 數值求解($$$60)
由初始條件可知,第 年底可用山羊數為 。利用逆向遞迴法(Backward Induction)依序計算各階段:
步驟 1:階段 3(,最後一年)
- 終點條件:必須賣出所有山羊()。
- 價值函數:
- 最佳決策:。
步驟 2:階段 2()
- 遞迴方程式:
- 代入 :
第 6 題10 分
The NTUIIE sells printers to NTU students. The inventory policy of the NTUIIE is to have at least 2 printers at the beginning of a week. The demand per week is estimated to be: 0 with probability 0.25, 1 with probability 0.3, 2 with probability 0.35, and 3 with probability 0.1. Unfilled demands will be backlogged and fulfilled in the next period. The inventory policy is to place an order of 4 printers whenever the inventory level drops below 2 printers at the end of a week. When an order is placed at the end of a week, the supplier will deliver the printers to NTUIIE at the beginning of the next week.
(a) (5 points) Model the inventory level of NTUIIE as a Markov chain.
(b) (5 points) Suppose that the week starts with 3 printers in stock. Find the probability that an order will be placed at the end of the next week.
登入後即可作答並保存紀錄。
核心觀念
本題屬於**隨機過程(Stochastic Processes)中離散時間馬可夫鏈(Discrete-Time Markov Chain, DTMC)在存貨控制模型(Inventory Control Model)**的應用。
- 馬可夫性質(Markov Property):
系統在第 期的狀態分佈僅取決於第 期的狀態,而與第 期之前的歷史無關:
- 狀態定義與轉移機制(State Definition & Transition Mechanism):
- 設 為第 週週初(訂單送達後)的庫存量。
- 設 為第 週的需求量,其機率分佈為:
- 第 週週末庫存量為 。
- 存貨策略(Reorder Rule):
- 若 :不訂貨,下週週初庫存 。
- 若 :於週末下單訂購 4 台印表機,並於下週週初送達,故下週週初庫存 。
- 全機率定理(Law of Total Probability):
求多步或特定事件機率時,對中間狀態進行分割與條件機率加權求和:
解題方法
(a) 將 NTUIIE 庫存量模型化為馬可夫鏈
步驟 1:確定狀態空間(State Space)
設 表示第 週**週初(訂單送達後)**的印表機庫存量。
分析 可能的數值:
- 當 時,最大需求 ;最小需求 。
- 當 時,最大需求 ;最小需求 。
因此,週初庫存狀態空間為 4 個狀態:
步驟 2:計算狀態轉移機率矩陣
定義轉移機率 ,其中 :
-
自狀態 出發:
- (機率 )
- (機率 )
- (機率 )
- (機率 )
- 對應狀態列向量 :
-
自狀態 出發:
- (機率 )
- (機率 )
- (機率 )
- (機率 )
- 對應狀態列向量 :
-
自狀態 出發:
- (機率 )
- (機率 )
- (機率 )
- (機率 )
- 對應狀態列向量 :
-
自狀態 出發:
- (機率 )
- (機率 )
第 7 題10 分
The NTU Mart is trying to decide how many cash registers to keep open. Suppose that the customer arrival process is a Poisson process with a rate of 0.6 customers per minute. Let the checkout time for a customer be exponentially distributed, and the average checkout time is 2 minutes per customer. It costs 2 per customer per minute.
(a) (5 points) Model the number of customers in the cash register area as a queueing system.
(b) (5 points) How many registers should the NTU Mart open to minimize the expected cost?
登入後即可作答並保存紀錄。
核心觀念
本題屬於作業系統與作業研究(Operations Research)中的排隊理論(Queueing Theory)與排隊經濟學分析(Queueing Economics)。
-
排隊模型識別(Kendall's Notation):
- 顧客到達過程為卜瓦松過程(Poisson Process),時間間隔服從指數分布 第一個符號為 M (Markovian/Memoryless)。
- 結帳服務時間服從指數分布(Exponential Distribution) 第二個符號為 M。
- 收銀機數量為平行運作的服務通道數 第三個符號為 。
- 系統採用先到先服務(FCFS)且容量無限制 完整模型記為 排隊模型。
-
穩態條件(Steady-State Condition):
系統服務率必須大於到達率,即系統利用率 。否則佇列長度會趨近於無限大,系統無法達到穩態。 -
期望成本函數(Expected Cost Function):
期望總成本為「收銀機營運成本」與「顧客等候成本」之和:
(或僅計算佇列中等待顧客成本 )
解題方法
(a) 建模推導
將台大超市(NTU Mart)收銀區的顧客數建立為 排隊模型,相關參數如下:
- 顧客到達率():。
- 單一收銀機服務率():平均結帳時間 。
- 服務通道數():開放的收銀機數量。
- 服務強度/流量率():。
- 系統利用率():。
(b) 最佳收銀機數量計算
步驟 1:單位統一與穩定性檢查
- 單位統一(以「小時」為時間單位):
- 每台收銀機營運成本 $。
- 每位顧客等候成本 $$。
- 穩態條件約束:
由於收銀機台數 必須為正整數,故 。當 時系統無法維持穩定。
步驟 2:計算 模型之穩態指標與成本
系統內無顧客的穩態機率 公式為:
等待機率(Erlang-C 公式) 與佇列平均顧客數 分別為:
系統內平均總顧客數 (包含佇列中與正在結帳者):
當 時:
- 計算 :
- 計算 與 $L