108 年 國立中央大學工業管理研究所碩士班《作業研究》

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

第 1 題30 分

Find the optimal solution to the following linear programming (LP) problem by using one of
these two methods: the dual simplex method, or the dual simplex tableau method. You must show a
detailed calculation process to receive full points. Note: You will receive 0 points if you use any other
method to solve this problem.

Maximize −10x1−15x2−25x3−10x4−15x5-10x_1 - 15x_2 - 25x_3 - 10x_4 - 15x_5
subject to
x1+x2+2x3+x4+3x5≥4x_1 + x_2 + 2x_3 + x_4 + 3x_5 \ge 4
−6x1+6x2−9x3−3x4−3x5≤−9-6x_1 + 6x_2 - 9x_3 - 3x_4 - 3x_5 \le -9
x1,x2,x3,x4,x5≥0x_1, x_2, x_3, x_4, x_5 \ge 0

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

這一題的完整詳解

核心觀念

本題要求使用對偶單純形法。其適用條件是:

  • 初始基底解滿足對偶可行性:目標列的所有相對成本皆符合最大化問題的條件,即 cˉj≤0\bar c_j\le 0。
  • 初始基底解不一定滿足原始可行性:基底變數的右端值可有負值。
  • 每次選擇右端值最負的基底變數離基,再依比值規則選擇進基變數。
  • 當右端值全部非負時,即同時滿足原始可行性與對偶可行性,所得解即為最佳解。

一、標準化與初始字典

原問題為

max⁡Z=−10x1−15x2−25x3−10x4−15x5\max Z=-10x_1-15x_2-25x_3-10x_4-15x_5

限制式為

x1+x2+2x3+x4+3x5≥4x_1+x_2+2x_3+x_4+3x_5\ge 4 −6x1+6x2−9x3−3x4−3x5≤−9-6x_1+6x_2-9x_3-3x_4-3x_5\le -9

將第一條限制式乘以 −1-1,得到

−x1−x2−2x3−x4−3x5≤−4-x_1-x_2-2x_3-x_4-3x_5\le -4

加入鬆弛變數 s1,s2s_1,s_2:

−x1−x2−2x3−x4−3x5+s1=−4-x_1-x_2-2x_3-x_4-3x_5+s_1=-4 −6x1+6x2−9x3−3x4−3x5+s2=−9-6x_1+6x_2-9x_3-3x_4-3x_5+s_2=-9

整理成字典形式:

s1=−4+x1+x2+2x3+x4+3x5s_1=-4+x_1+x_2+2x_3+x_4+3x_5 s2=−9+6x1−6x2+9x3+3x4+3x5s_2=-9+6x_1-6x_2+9x_3+3x_4+3x_5 Z=−10x1−15x2−25x3−10x4−15x5Z=-10x_1-15x_2-25x_3-10x_4-15x_5

令非基底變數皆為 00,初始基底解為

s1=−4,s2=−9s_1=-4,\qquad s_2=-9

因此原始不可行;但目標列係數

−10, −15, −25, −10, −15-10,\ -15,\ -25,\ -10,\ -15

全部小於或等於 00,所以具有對偶可行性,可以使用對偶單純形法。


二、第一次樞紐運算

1. 選擇離基變數

右端值中最負者為

s2=−9s_2=-9

因此 s2s_2 離基。

在 s2s_2 列中,係數為正的變數才可進基:

變數x1x3x4x5列係數6933目標列係數−10−25−10−15比值 cˉj/a2j−53−259−103−5\begin{array}{c|cccc} \text{變數} & x_1 & x_3 & x_4 & x_5\\ \hline \text{列係數} & 6 & 9 & 3 & 3\\ \text{目標列係數} & -10 & -25 & -10 & -15\\ \text{比值 } \bar c_j/a_{2j} &-\frac{5}{3}&-\frac{25}{9}&-\frac{10}{3}&-5 \end{array}

選擇最大的比值:

−53-\frac{5}{3}

因此 x1x_1 進基,樞紐元素為 66。

2. 解出 x1x_1

由

s2=−9+6x1−6x2+9x3+3x4+3x5s_2=-9+6x_1-6x_2+9x_3+3x_4+3x_5

解得

x1=32+x2−32x3−12x4−12x5+16s2x_1=\frac32+x_2-\frac32x_3-\frac12x_4-\frac12x_5+\frac16s_2

代入 s1s_1 與 ZZ:

s1=−52+2x2+12x3+12x4+52x5+16s2s_1=-\frac52+2x_2+\frac12x_3+\frac12x_4+\frac52x_5+\frac16s_2 Z=−15−25x2−10x3−5x4−10x5−53s2Z=-15-25x_2-10x_3-5x_4-10x_5-\frac53s_2

此時基底變數為 x1,s1x_1,s_1,其中

x1=32,s1=−52x_1=\frac32,\qquad s_1=-\frac52

仍有負的右端值,因此繼續進行對偶單純形法。


三、第二次樞紐運算

1. 選擇離基變數

目前唯一負的右端值為

s1=−52s_1=-\frac52

因此 s1s_1 離基。

🔒

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

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

免費註冊

第 2 題20 分

Consider the following LP problem where s1,s2s_1, s_2 and s3s_3 are so-called slack variables; that is,
as you know, they are variables added to the constraints of the original problem for the purpose of
changing the "<" or ">" sign in the original constraints to an " = " sign.
Minimize x1+5x2+5x3x_1 + 5x_2 + 5x_3
subject to
x1+s1=4x_1 + s_1 = 4
x2+s2=4x_2 + s_2 = 4
−x1+2x3+s3=4-x_1 + 2x_3 + s_3 = 4
x1,x2,x3,s1,s2,s3≥0x_1, x_2, x_3, s_1, s_2, s_3 \ge 0

Suppose we want to use the first three columns of the coefficient matrix in the above constraints
as a basis (that is, this basis will consist of [1,0,−1]T[1, 0, -1]^T which is the vector formed by using the coeffi-
cients associated with x1x_1, [0,1,0]T[0, 1, 0]^T which is the vector formed by using the coefficients associated
with x2x_2, and [0,0,2]T[0, 0, 2]^T which is the vector formed by using the coefficients associated with x3x_3). What
is the basic feasible solution associated with such a basis? Or, explain why there is no basic feasible
solution associated with that basis. (求解與上述指定基底相對應的「基本可行解」,或說明該基
本可行解根本就不存在。) Note: You must use LP-related mathematics to solve this problem; oth-
erwise, you will receive 0 points. (必需以LP相關的數學計算來求解本問題,否則沒有分數。)

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

這一題的完整詳解

本題考驗對線性規劃基本解 (Basic Solution) 與基本可行解 (Basic Feasible Solution) 的定義與判斷。題目要求我們根據一個指定的基底 (basis),找出對應的基本解,並判斷其是否為基本可行解。

首先,我們需要理解什麼是基本解和基本可行解。
在一個具有 mm 個約束條件和 nn 個變數 (n≥mn \ge m) 的線性規劃問題中,基本解是令 n−mn-m 個變數為零,然後解剩餘的 m×mm \times m 個線性聯立方程組。
基本可行解是滿足所有非負約束條件 (≥0\ge 0) 的基本解。

題目給定的線性規劃問題為:
Minimize Z=x1+5x2+5x3Z = x_1 + 5x_2 + 5x_3
subject to
x1+s1=4(1)x_1 + s_1 = 4 \quad (1)
x2+s2=4(2)x_2 + s_2 = 4 \quad (2)
−x1+2x3+s3=4(3)-x_1 + 2x_3 + s_3 = 4 \quad (3)
x1,x2,x3,s1,s2,s3≥0x_1, x_2, x_3, s_1, s_2, s_3 \ge 0

此問題有 m=3m=3 個約束條件,變數總數為 n=6n=6 (x1,x2,x3,s1,s2,s3x_1, x_2, x_3, s_1, s_2, s_3)。
基本解需要令 n−m=6−3=3n-m = 6-3 = 3 個變數為零。

題目指定的基底是由 x1,x2,x3x_1, x_2, x_3 這三個變數的係數向量構成:
基底矩陣 BB 由這三個變數的係數向量組成:
x1x_1 的係數向量為 (10−1)\begin{pmatrix} 1 \\ 0 \\ -1 \end{pmatrix}
x2x_2 的係數向量為 (010)\begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix}
x3x_3 的係數向量為 (002)\begin{pmatrix} 0 \\ 0 \\ 2 \end{pmatrix}

所以,基底矩陣 B=(100010−102)B = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ -1 & 0 & 2 \end{pmatrix}。
這是一個 3×33 \times 3 的矩陣。

與此基底相對應的基本解,是將基底變數 (non-basic variables) 設定為零,然後解出基底變數 (basic variables) 的值。
在本例中,指定的基底是 x1,x2,x3x_1, x_2, x_3。這意味著 x1,x2,x3x_1, x_2, x_3 是基底變數 (basic variables),而 s1,s2,s3s_1, s_2, s_3 是非基底變數 (non-basic variables)。
因此,我們將非基底變數設定為零:
s1=0s_1 = 0
s2=0s_2 = 0
s3=0s_3 = 0

現在,我們將這些值代入約束方程組,來求解基底變數 x1,x2,x3x_1, x_2, x_3:
從約束 (1): x1+s1=4  ⟹  x1+0=4  ⟹  x1=4x_1 + s_1 = 4 \implies x_1 + 0 = 4 \implies x_1 = 4

🔒

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

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

免費註冊

第 3 題50 分

This question is about developing a mixed-integer programming (MIP) model which will help a truck driver make optimal decisions.
Consider the situation where a truck driver makes money by traveling along a route, picking up
goods from some of the nodes on that route, and then dropping the goods off at some other nodes.
Two of the major decisions that this truck driver must make are route selection and node selection.

Route selection
Route selection is about selecting a route along which the truck will travel to pick up and deliver
goods. There are several routes that the truck driver can select, and the rule is that the driver can select
only one of them. The following figure shows the case where there are a total of three routes and the
driver will select one of them. Note: In the general situation, the number of routes is an arbitrary (任
意) integer (as long as it is positive) and these routes may have different number of nodes.
🖼️【此處有附圖,請對照原卷】(圖示了三條路線,每條路線從 start node 到 end node,中間經過一些節點 m)

We will define a decision variable (決策變數) as follows to handle route selection.
rir_i is a binary decision variable which indicates whether the truck driver selects route ii or not in the
MIP model: ri=1r_i = 1 indicates the situation where the driver selects route ii; ri=0r_i = 0 indicates the
situation where the driver does not select route ii.

3.a (20%):
Let the total number of routes be RR (RR is a given number; for example, R=3R = 3 in the above
figure). Please develop a linear constraint (線性限制式,亦即連結式子中的決策變數所使用的符
號,不是加號就是減號) to make sure this route selection requirement will always be met: The truck
driver can only select one route.

Node selection
After making the route selection decision, the next decision that the truck driver must make is
node selection, which means the driver must decide where (i.e., at which nodes) to stop along the
selected route so that the truck can be refueled (加油). The driver must select these nodes very care-
fully to make sure that the truck always carries enough fuel in its tank (油箱) to reach the end node,
or at least the truck can reach the next node where it can get another refuel. (Since refueling the truck
takes time and other fixed costs, it is obvious that the driver would not want to stop the truck unless
it is necessary.) The following figure shows the modeling approach that we will use to handle node
selection.
🖼️【此處有附圖,請對照原卷】(圖示了一條路線,從 start node 到 end node,中間經過節點 m,並定義了變數 si,ms_{i,m})

In the above, si,ms_{i,m} is another binary decision variable in the MIP model defined as follows.
si,ms_{i,m} is a binary decision variable indicating whether the truck should stop at node mm on route ii or not:
the truck will stop at node mm if si,m=1s_{i,m} = 1 and the truck will not stop at that node if si,m=0s_{i,m} = 0.

3.b (15%):
When deciding where to stop the truck, the driver only needs to consider those nodes which are
located on the selected route (that is, some route ii such that ri=1r_i = 1) and the reason should be quite
obvious. So in the MIP model, we want the value of si,ms_{i,m} to always be 0 if route ii is not selected; on
the other hand, the value of si,ms_{i,m} can be 1 or 0 if route ii is selected. Please develop a linear constraint
to enforce such a relationship between rir_i and si,ms_{i,m}
for any node mm which is located on route ii.

Fuel management
To make sure the truck will never run out of fuel before reaching the end node (永遠有足夠的
油可以抵達終點), we will need the following parameters (給定參數, 亦即它們的數值是已知的).
Fueli,m,n_{i,m,n} the amount of fuel that the truck needs to travel from node mm to node nn on route ii (note:
this implies that (m,n)(m, n) is an edge on route ii as shown in the figure below)
TankCap the capacity of the tank onboard the truck (油箱容量)
BigNum a very big positive number (the value of BigNum can be preset to "999,999,999,999," for
example)

We also need the following decision variables.
gi,mg_{i,m} nonnegative decision variable (that is, gi,m≥0g_{i,m} \ge 0) used to record the amount of fuel that will be
pumped into the tank of the truck when it stops at node mm on route ii.
fi,mf_{i,m} nonnegative decision variable (that is, fi,m≥0f_{i,m} \ge 0) used to record the amount of fuel carried in the
tank of the truck when it leaves node mm on route ii.
The following figure shows how these parameters and decision variables are associated with the
nodes on route ii.
🖼️【此處有附圖,請對照原卷】(圖示了路線 i,從 start node 到 end node,節點 m,變數 fi,m,gi,mf_{i,m}, g_{i,m} 和參數 Fueli,m,n_{i,m,n})

Obviously, we need the following equation as a constraint to make sure that the truck will never
carry fuel more than the capacity of its tank.
fi,m≤TankCapf_{i,m} \le \text{TankCap}, for any node mm located on route ii.

Also, we need the following constraint to control the value of gi,mg_{i,m}, so that fuel may be pumped
into the truck's tank only from nodes which are located on the selected route. (In the following con-
straint, if route ii is not selected causing ri=0r_i = 0, then gi,mg_{i,m} will also be 0, which means no fuel can be
pumped into the truck's tank from node mm. On the other hand, if route ii is selected, we will have
ri=1r_i = 1 which will allow the MIP model to determine an appropriate value for gi,mg_{i,m}.)
gi,m≤ri×BigNumg_{i,m} \le r_i \times \text{BigNum}, for any node mm located on any route ii.

3.c (15%):
Please derive a linear constraint to calculate the value of fi,nf_{i,n}, that is, the amount of fuel in the
tank of the truck when it is leaving node nn on route ii.
fi,n=‾f_{i,n} = \underline{\hspace{2em}}, for any edge (m,n)(m, n) along any route ii.
Hint: You will need to use fi,mf_{i,m}, gi,ng_{i,n}, rir_i and Fueli,m,n_{i,m,n} to complete the above constraint.

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

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

這一題的完整詳解

核心觀念

本題考查混合整數規劃(MIP)中的:

  1. 二元決策變數建模。
  2. 「只能選一條路線」的互斥選擇限制式。
  3. Big-M 法連結路線選擇與節點選擇。
  4. 油量的流量平衡式。

定義:

  • ri=1r_i=1:選擇路線 ii;ri=0r_i=0:不選擇路線 ii。
  • si,m=1s_{i,m}=1:在路線 ii 的節點 mm 停車;si,m=0s_{i,m}=0:不停車。
  • gi,mg_{i,m}:在節點 mm 加入的油量。
  • fi,mf_{i,m}:離開節點 mm 時油箱內的油量。
  • Fueli,m,n\mathrm{Fuel}_{i,m,n}:路線 ii 上由節點 mm 行駛至節點 nn 所需的油量。

3.a 路線選擇限制式

共有 RR 條路線,且每個 rir_i 都是二元變數。題目要求「只能選擇一條路線」,因此所有路線的選擇變數總和必須等於 11:

∑i=1Rri=1\sum_{i=1}^{R} r_i=1

其中:

ri∈{0,1},i=1,…,Rr_i\in\{0,1\},\qquad i=1,\ldots,R

當某一條路線的 ri=1r_i=1 時,其餘路線的 rir_i 必須為 00,因此恰好只有一條路線被選取。


3.b 路線選擇與節點選擇的連結

若路線 ii 未被選取,即 ri=0r_i=0,則該路線上的任何節點都不能停車,因此 si,ms_{i,m} 必須等於 00。

若路線 ii 被選取,即 ri=1r_i=1,則 si,ms_{i,m} 可以為 00 或 11。因此限制式為:

si,m≤ris_{i,m}\le r_i

適用於路線 ii 上的每一個節點 mm,並且:

si,m∈{0,1}s_{i,m}\in\{0,1\}

驗證如下:

  • 當 ri=0r_i=0 時,si,m≤0s_{i,m}\le 0。由於 si,ms_{i,m} 為二元變數,只能有 si,m=0s_{i,m}=0。
  • 當 ri=1r_i=1 時,si,m≤1s_{i,m}\le 1,所以 si,ms_{i,m} 可以為 00 或 11。

3.c 油量平衡限制式

考慮路線 ii 上的一條邊 (m,n)(m,n)。

卡車離開節點 mm 時有 fi,mf_{i,m} 的油量,行駛至節點 nn 後消耗:

🔒

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

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

免費註冊

其他考古題