108 年 國立中央大學工業管理研究所碩士班《作業研究》
第 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
subject to
登入後即可作答並保存紀錄。
核心觀念
本題要求使用對偶單純形法。其適用條件是:
- 初始基底解滿足對偶可行性:目標列的所有相對成本皆符合最大化問題的條件,即 。
- 初始基底解不一定滿足原始可行性:基底變數的右端值可有負值。
- 每次選擇右端值最負的基底變數離基,再依比值規則選擇進基變數。
- 當右端值全部非負時,即同時滿足原始可行性與對偶可行性,所得解即為最佳解。
一、標準化與初始字典
原問題為
限制式為
將第一條限制式乘以 ,得到
加入鬆弛變數 :
整理成字典形式:
令非基底變數皆為 ,初始基底解為
因此原始不可行;但目標列係數
全部小於或等於 ,所以具有對偶可行性,可以使用對偶單純形法。
二、第一次樞紐運算
1. 選擇離基變數
右端值中最負者為
因此 離基。
在 列中,係數為正的變數才可進基:
選擇最大的比值:
因此 進基,樞紐元素為 。
2. 解出
由
解得
代入 與 :
此時基底變數為 ,其中
仍有負的右端值,因此繼續進行對偶單純形法。
三、第二次樞紐運算
1. 選擇離基變數
目前唯一負的右端值為
因此 離基。
第 2 題20 分
Consider the following LP problem where and 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
subject to
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 which is the vector formed by using the coeffi-
cients associated with , which is the vector formed by using the coefficients associated
with , and which is the vector formed by using the coefficients associated with ). 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),找出對應的基本解,並判斷其是否為基本可行解。
首先,我們需要理解什麼是基本解和基本可行解。
在一個具有 個約束條件和 個變數 () 的線性規劃問題中,基本解是令 個變數為零,然後解剩餘的 個線性聯立方程組。
基本可行解是滿足所有非負約束條件 () 的基本解。
題目給定的線性規劃問題為:
Minimize
subject to
此問題有 個約束條件,變數總數為 ()。
基本解需要令 個變數為零。
題目指定的基底是由 這三個變數的係數向量構成:
基底矩陣 由這三個變數的係數向量組成:
的係數向量為
的係數向量為
的係數向量為
所以,基底矩陣 。
這是一個 的矩陣。
與此基底相對應的基本解,是將基底變數 (non-basic variables) 設定為零,然後解出基底變數 (basic variables) 的值。
在本例中,指定的基底是 。這意味著 是基底變數 (basic variables),而 是非基底變數 (non-basic variables)。
因此,我們將非基底變數設定為零:
現在,我們將這些值代入約束方程組,來求解基底變數 :
從約束 (1):
第 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.
is a binary decision variable which indicates whether the truck driver selects route or not in the
MIP model: indicates the situation where the driver selects route ; indicates the
situation where the driver does not select route .
3.a (20%):
Let the total number of routes be ( is a given number; for example, 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,並定義了變數 )
In the above, is another binary decision variable in the MIP model defined as follows.
is a binary decision variable indicating whether the truck should stop at node on route or not:
the truck will stop at node if and the truck will not stop at that node if .
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 such that ) and the reason should be quite
obvious. So in the MIP model, we want the value of to always be 0 if route is not selected; on
the other hand, the value of can be 1 or 0 if route is selected. Please develop a linear constraint
to enforce such a relationship between and
for any node which is located on route .
Fuel management
To make sure the truck will never run out of fuel before reaching the end node (永遠有足夠的
油可以抵達終點), we will need the following parameters (給定參數, 亦即它們的數值是已知的).
Fuel the amount of fuel that the truck needs to travel from node to node on route (note:
this implies that is an edge on route 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.
nonnegative decision variable (that is, ) used to record the amount of fuel that will be
pumped into the tank of the truck when it stops at node on route .
nonnegative decision variable (that is, ) used to record the amount of fuel carried in the
tank of the truck when it leaves node on route .
The following figure shows how these parameters and decision variables are associated with the
nodes on route .
🖼️【此處有附圖,請對照原卷】(圖示了路線 i,從 start node 到 end node,節點 m,變數 和參數 Fuel)
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.
, for any node located on route .
Also, we need the following constraint to control the value of , 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 is not selected causing , then will also be 0, which means no fuel can be
pumped into the truck's tank from node . On the other hand, if route is selected, we will have
which will allow the MIP model to determine an appropriate value for .)
, for any node located on any route .
3.c (15%):
Please derive a linear constraint to calculate the value of , that is, the amount of fuel in the
tank of the truck when it is leaving node on route .
, for any edge along any route .
Hint: You will need to use , , and Fuel to complete the above constraint.
登入後即可作答並保存紀錄。
核心觀念
本題考查混合整數規劃(MIP)中的:
- 二元決策變數建模。
- 「只能選一條路線」的互斥選擇限制式。
- Big-M 法連結路線選擇與節點選擇。
- 油量的流量平衡式。
定義:
- :選擇路線 ;:不選擇路線 。
- :在路線 的節點 停車;:不停車。
- :在節點 加入的油量。
- :離開節點 時油箱內的油量。
- :路線 上由節點 行駛至節點 所需的油量。
3.a 路線選擇限制式
共有 條路線,且每個 都是二元變數。題目要求「只能選擇一條路線」,因此所有路線的選擇變數總和必須等於 :
其中:
當某一條路線的 時,其餘路線的 必須為 ,因此恰好只有一條路線被選取。
3.b 路線選擇與節點選擇的連結
若路線 未被選取,即 ,則該路線上的任何節點都不能停車,因此 必須等於 。
若路線 被選取,即 ,則 可以為 或 。因此限制式為:
適用於路線 上的每一個節點 ,並且:
驗證如下:
- 當 時,。由於 為二元變數,只能有 。
- 當 時,,所以 可以為 或 。
3.c 油量平衡限制式
考慮路線 上的一條邊 。
卡車離開節點 時有 的油量,行駛至節點 後消耗: