# Chapter 3 Introduction to Linear Programming

Document Sample

```					Chapter 3

Introduction to
Linear Programming
p.49
3.1 What Is a Linear Programming
Problem?
 「線性」(linear),指模式中之所有函數均為線性函數；
「規劃」(programming),指planning,而非
computer programming 中程式之意。
 數學規劃(mathematical programming)是將問題以
目標函數(object function)及限制式(constraint)等數
學式表示出來的一種模式。當所有數學式均為線性時,則
數學規劃即是線性規劃。
 Linear Programming (LP,線性規劃) is a tool for
solving optimization problems(最佳化問題).
 Linear programming problems involve
important terms that are used to describe linear
programming.
2
p.49
Example 1: Giapetto’s Woodcarving
 Giapetto manufactures wooden soldiers and trains.
 Each soldier built:
 Sell for \$27 and uses \$10 worth of raw
materials.
costs by \$14.
 Requires 2 hours of finishing labor.
 Requires 1 hour of carpentry labor.
 Each train built:
 Sell for \$21 and used \$9 worth of raw
materials.
costs by \$10.
 Requires 1 hour of finishing labor.
 Requires 1 hour of carpentry labor.           3
 Each week Giapetto can obtain:
 All needed raw material.
 Only 100 finishing hours.
 Only 80 carpentry hours.
 Demand for the trains is unlimited.
 At most 40 soldiers are bought each week.
 Giapetto wants to maximize weekly profit
(revenues – costs).
 Formulate a mathematical model of Giapetto’s
situation that can be used maximize weekly profit.

4
Example 1: Solution
 The Giapetto solution model incorporates the
characteristics shared by all LP problems.
Decision variables(決策變數) should describe
 x1 = number of soldiers produced each week
 x2 = number of trains produced each week
The decision maker wants to maximize (usually
revenue or profit) or minimize (usually costs)
some function of the decision variables. This
function to maximized or minimized is called the
objective function(目標函數).
 For the Giapetto problem, fixed costs do not
depend upon the the values of x1 or x2.
5
 Giapetto’s weekly profit can be expressed in
terms of the decision variables x1 and x2:
Weekly profit =weekly revenue
– weekly raw material costs
– the weekly variable costs
= 3x1 + 2x2
 Thus, Giapetto’s objective is to chose x1 and x2
to maximize weekly profit. The variable z
denotes the objective function value of any LP.
 Giapetto’s objective function is
Maximize z = 3x1 + 2x2
 The coefficient of an objective function variable
is called an objective function coefficient
(目標函數係數).
6
 As x1 and x2 increase, Giapetto’s objective
function grows larger.
 For Giapetto, the values of x1 and x2 are limited
by the following three restrictions called
constraints(限制式) :
 Each week, no more than 100 hours of
finishing time may be used. (2 x1 + x2 ≤ 100)
 Each week, no more than 80 hours of
carpentry time may be used. (x1 + x2 ≤ 80)
 Because of limited demand, at most 40
soldiers should be produced. (x1 ≤ 40)

7
 The coefficients of the decision variables in the
constraints are called the technological coefficient.
 The number on the right-hand side of each constraint
is called the constraint’s right-hand side (rhs,
RHS，右手邊常數).
 To formulate of an LP , the following question must
be answered for each decision variable.
Can the decision variable only assume
nonnegative (非負值) values, or is the decision
variable allowed to assume both positive (正值),
and negative (負值)values,?
If the decision variable can assume only
nonnegative values, the sign restriction xi ≥ 0
If the variable can assume both positive and
negative values, the decision variable xi is
unrestricted in sign (urs，不受正負限制) .            8
 For the Giapetto problem model, combining the
sign restrictions x1≥0 and x2≥0 with the
objective function and constraints yields the
following optimization model:

Max z = 3x1 + 2x2     (objective function)
Subject to (s.t.)
2 x1 + x2 ≤ 100 (finishing constraint)
x1 + x2 ≤ 80 (carpentry constraint)
x1      ≤ 40 (constraint on demand for soldiers)
x1      ≥ 0    (sign restriction)
x2 ≥ 0    (sign restriction)
9
p.52
Linear function & Linear inequalities
 A function f(x1, x2, …, xn of x1, x2, …, xn is a
linear function(線性函數) if and only if
for some set of constants, c1, c2, …, cn,
f(x1, x2, …, xn) = c1x1 + c2x2 + … + cnxn.

 For any linear function f(x1, x2, …, xn) and any
number b, the inequalities f(x1, x2, …, xn) ≤ b
and f(x1, x2, …, xn) ≥ b are linear inequalities
(線性不等式).

10
p.53
Optimization
 A LP problem is an optimization(最佳化) problem
for which we do the following:
 Attempt to maximize (or minimize) a linear
function (called the objective function) of the
decision variables.
 The values of the decision variables must
satisfy a set of constraints. Each constraint
must be a linear equation or inequality.
 A sign restriction is associated with each
variable. For any variable xi, the sign
restriction specifies either that xi must be
nonnegative (xi ≥ 0) or that xi may be
unrestricted in sign.
11
 The objective function(目標函數) for an LP
must be a linear function of the decision
variables has two implications:
 The contribution of the objective function
from each decision variable is
proportional(成比例性) to the value of the
decision variable. For example, the
contribution to the objective function for 4
soldiers is exactly fours times the
contribution of 1 soldier.
 The contribution to the objective function for
any variable is independent(獨立) of the
other decision variables. For example, no
matter what the value of x2, the
manufacture of x1 soldiers will always
contribute 3x1 dollars to the objective
function.
12
 Each LP constraint(限制式) must be a linear
inequality(線性不等式) or linear equation (線性
等式) has two implications:
1.The contribution of each variable to the left-
hand side of each constraint is proportional
to the value of the variable. For example, it
takes exactly 3 times as many finishing hours
to manufacture 3 soldiers as it does 1 soldier.
2.The contribution of a variable to the left-hand
side of each constraint is independent of the
values of the variable. For example, no
matter what the value of x1, the manufacture
of x2 trains uses x2 finishing hours and x2
carpentry hours.

13
p.53
Linear Programming 之假設

 Proportionality Assumption(成比例性假設)
指函數中,各個項目對於該函數之貢獻和變數之值成比例
指函數中,各個項目彼此獨立,因此相互可進行加減運算
 Divisibility assumption (可分性假設)
要求所有變數可為任何實數,未必是整數
 Certainty assumption (確定性假設)
所有係數均為已知常數
(objective function coefficients, right-hand side,
and technological coefficients)

14
p.53
Proportionality Assumption (1)

 目標函數中，產品獲得的利潤與產品的數量完全成固定比例

例如：生產1單位產品的利潤為100元，
生產2單位產品的利潤則為200元。

 功能限制式中，生產產品所需的時間與數量完全成固定比例

例如：生產1單位需要3小時機器的時間，
生產2單位需要6小時機器的時間。

15
Proportionality Assumption (2)

 對實務上問題，成比例性之假設未必成立。
 當大量生產時，單位生產成本隨著生產數量之增加而
降低(經濟規模) 。
 學習曲線及設置成本等因素，使生產初期之單位生產
成本高於生產後期之單位生產成本。
 以市場考量，當稱產數量過多時，須降價銷售，單位
利潤隨著生產數量之增加而遞減。
 因此，應用線性規劃時，若違反太多成比例性之假設，
則必須以其他方法，如：非線性規劃(nonlinear
programming)，做為求解工具。(Chapter 11)

16
p.53

 目標函數中，P1產品的利潤和P2產品的利潤彼此獨立，
因此可相加而得到總利潤。
 功能限制式中，無論生產多少P2產品，生產1單位P1產
品均固定需要3小時機器的時間。

17
實際情況下，可加性有時也會有不適用的情形。
當產品相互競爭時，一產品銷售量增加，另一產品銷
售量就會降低。
當產品有互補作用時，一產品銷售量增加，另一產品
銷售量也提高。(例：電腦和印表機、粉筆和板擦)
製造過程中，也許兩產品的生產共同使用一台機器，
此時若有規模經濟的現象，單位生產時間因生產數量
增加而降低或機器需顯著的設置時間時，使得一產品
的單位生產時間隨另一產品生產數量的增加而降低。
若共同使用的機器有逐漸老舊現象，生產數量越多反
而越慢，則一產品的單位生產時間隨著另一產品生產
數量的增加而增加。
因此，應用線性規劃時，必須確認各函數中的各個項目
18
是否完全獨立，確保可加性假設的合理性。
p.54
Divisibility Assumption

 有些問題的變數本身可以是非整數，例如，生產20.4m
的布匹，或是投資301.51萬元。
 有些問題的變數必須是整數，例如，每天生產10部車。
 在大多數情況下，當變數的值足夠大時，即使代表問題
實際意義的變數必須是整數，只要將所得到的變數值取
整數，以四捨五入、無條件捨去或無條件進入等方式，
即可得到一個合理的整數解。
例如，若x1=10.6，則整數解x1=11 (四捨五入)。
 當變數的值相當小時，或是當變數代表yes or no的意義
時，則將所得到的實數取其整數，並不是可行的方法，
此時以整數規劃（integer programming）求解。
(Chapter 9)

19
Certainty Assumption

 係數不為隨機變數、機率值或不確定值。
例如,假設每生產1箱的產品可獲得\$7,000利潤，此常數
\$7,000是假設為已知的。
 在實際情況下，確定性假設經常無法完全滿足。
 線性規劃大多數的係數都是對未來情況的預估值，
或多或少都會有不確定的成分。
 大多數的係數隨著時間而不斷有小或大的變動。
 求解線性規劃時，除了得到最佳解外，經常做敏感度分析
（sensitivity analysis）以瞭解當係數變動時，最佳解
會如何改變。(Chapter 5,6)

20
p.54
Feasible Region and Optimal Solution
 The feasible region(可行區域) of an LP is the
set of all points satisfying all the LP’s
constraints and sign restrictions.
 For a maximization problem, an optimal
solution(最佳解) to an LP is a point in the
feasible region with the largest objective
function value.
 Similarly, for a minimization problem, an
optimal solution is a point in the feasible
region with the smallest objective function
value.

21
Exercise ： P.55 #1
Farmer Jones must determine how many acres of corn
and wheat to plane this year. An acre of wheat yields
25 bushels of wheat and requires 10 hours of labor
per week. An acre of corn yields 10 bushels of corn
and requires 4 hours of labor per week. All wheat can
be sold at 4\$ a bushel, and all corn can be sold at \$3
a bushel. Seven acres of land and 40 hours per week
of labor are available. Government regulation require
that at least 30 bushels of corn be produced during
the current year. Let x1 = number of acres of corn
planted, and x2 = number of acres of wheat planted.
Using these decision variables, formulate an LP whose
solution will tell Farmer Jones how to maximize the
total revenue from wheat and corn.
22
Exercise ： P.55 #1
 x1 = number of acres of corn planted
x2 = number of acres of wheat planted
 max z = 30x1 + 100x2
s.t. x1 +     x2  7     (Land Constraint)
4x1 + 10x2  40       (Labor Constraint)
10x1           30     (Govt. Constraint)
x1  0, x2  0

23
Exercise ： P.55 #3

 x1= number of bushels of corn produced
1 bushel of corn uses 1/10 acre of land and 4/10 hours of labor
 x2= number of bushels of wheat produced
1 bushel of wheat uses 1/25 acre of land and 10/25 hours of labor
 max z = 3x1 + 4x2
s.t.   x1/10 + x2/25  7             (Land Constraint)
4x1/10 + 10x2/25  40           (Labor Const.)
x1               30           (Govt. Const.)
x1  0, x2  0

24
Exercise ： P.55 #4
Truckco manufactures two types of trucks: 1 and 2.
Each truck must go through the painting shop and
assembly shop. If the painting shop were completely
devoted to painting Type 1 trucks, then 800 per day
could be painted; if the painting shop were
completely devoted to painting Type 2 trucks, then
700 per day could be painted.
If the assembly shop were completely devoted to
assembling truck 1 engines, then 1,500 per day
could be assembled; if the assembly shop were
completely devoted to assembling truck 2 engines,
then 1,200 per day could be assembled.
Each Type 1 truck contributes \$300 to profit;
Each Type 2 truck contributes \$500,
Formulate an LP that will maximize Truckco’s profit.
25
Exercise：p.55 #5

Why don’t we allow an LP to have < or > constraints?

26
To Find solution by the followings：

 Graphical method (圖解法)
 若LP只有兩個變數，則以下列三步驟求解：
STEP 1. 繪製非負限制式(或不受正負限制)之範圍
STEP 2. 繪製各功能限制式之範圍，並決定可行區域
STEP 3. 繪製目標函數之線條，並決定最佳解
 Algebra method (代數法)
 Simplex method (單體法) (Chapter 4)

27
p.56
3.2 The Graphical Solution to a
Two-Variable LP Problem
 Any LP with only two variables can be solved
graphically (圖解).
 The variables are always labeled x1 and x2
and the coordinate axes the x1 and x2 axes.
X2

4

Satisfies 2x1 + 3x2 ≥ 6
3

2

1

Satisfies 2x1 + 3x2 ≤ 6                                  X1

P.56 Fig. 1
-1             1   2   3   4

-1

28
 Since the Giapetto LP has two variables,
it may be solved graphically.
 The feasible region is the set of all points
satisfying the constraints.

2 x1 + x2 ≤ 100      (finishing constraint)
x1 + x2 ≤ 80       (carpentry constraint)
x1 ≤ 40      (demand constraint)
x1 ≥ 0       (sign restriction)
x2 ≥ 0        (sign restriction)

29
X2

100
B
 The set of points
finishing constraint       Feasible Region
satisfying the
Giapetto LP is               D

80
bounded by the
five sided polygon                                       demand constraint
DGFEH. Any point

60
on or in the                          G
interior of this
polygon (the                     z = 100
shade area) is in      40                                      carpentry constraint
the feasible region.
20

F
z = 180
z = 60
E                         C
P.57 Fig. 2
A
H                                                         30
10    20           40    50      60          80 X1
 Having identified the feasible region for the
Giapetto LP, a search can begin for the optimal
solution which will be the point in the feasible
region with the largest z-value.
 To find the optimal solution, graph a line on
which the points have the same z-value. In a
max problem, such a line is called an isoprofit
line while in a min problem, this is called the
isocost line. The figure shows the isoprofit
lines for z = 60, z = 100, and z = 180

31
 A constraint is binding if the left-hand and right-
hand side of the constraint are equal when the
optimal values of the decision variables are
substituted into the constraint.
In the Giapetto LP, the finishing and carpentry
constraints are binding.
 A constraint is nonbinding if the left-hand side
and the right-hand side of the constraint are
unequal when the optimal values of the decision
variables are substituted into the constraint.
In the Giapetto LP, the demand constraint for
wooden soldiers is nonbinding since at the
optimal solution (x1 = 20), x1 < 40.

32

P.59 Fig. 3
33
Exercise : which are convex sets？

（○）       （○）        （×）          （×）

34
35
Polyhedron

36
37
p.59
 A set of points S is a convex (凸集合) set if the
line segment jointing any two pairs of points in S
is wholly contained in S.
 For any convex set S, a point p in S is an
extreme point (極點) if each line segment that
lines completely in S and contains the point P
has P as an endpoint of the line segment.
 Extreme points are sometimes called corner
points (角點),, because if the set S is a polygon,
the extreme points will be the vertices, or
corners, of the polygon.
 The feasible region for the Giapetto LP will be
a convex set.

38
p.60
Example 2 : Dorian Auto

 Dorian Auto manufactures luxury cars and trucks.
 The company believes that its most likely
customers are high-income women and men.
 To reach these groups, Dorian Auto has embarked
on an ambitious TV advertising campaign and will
purchase 1-mimute commercial spots on two type
of programs: comedy shows and football games.

39
 Each comedy commercial is seen by 7 million
high income women and 2 million high-income
men and costs \$50,000.
 Each football game is seen by 2 million high-
income women and 12 million high-income men
and costs \$100,000.
 Dorian Auto would like for commercials to be
seen by at least 28 million high-income women
and 24 million high-income men.
 Use LP to determine how Dorian Auto can meet
its advertising requirements at minimum cost.

40
Example 2: Solution
 Dorian decides how many comedy and football ads
should be purchased, so the decision variables are
 x1 = number of 1-minute comedy ads
 x2 = number of 1-minute football ads
 Dorian wants to minimize total advertising cost.
 The objective functions is min z = 50 x1 + 100x2
 Dorian faces the following the constraints.
 Commercials must reach at least 28 million
high-income women. (7x1 + 2x2 ≥ 28)
 Commercials must reach at least 24 million
high-income men. (2x1 + 12x2 ≥ 24)
 The sign restrictions are necessary, so x1, x2 ≥ 0.
41
 Like the Giapetto LP, The Dorian LP has a
convex feasible region (p.61 Fig.4).
 The feasible region for the Dorian problem,
however, contains points for which the value of
at least one variable can assume arbitrarily
large values.
 Such a feasible region is called an unbounded
feasible region (無窮可行區域).

42
 To solve this LP      X2
graphically begin
by graphing the       14 B
feasible region.
High-income women constraint
12

10
min z = 50 x1 + 100x2                          Feasible
Region
s.t. 7x1 + 2x2 ≥ 28     8
(unbounded)
2x1 + 12x2 ≥ 24     6
x1, x2 ≥ 0.                                       z = 600
4    z = 320
High-income men constraint
2                  E
D
A                              C
p.61 Figure 4                    2                                                X1
4      6     8       10   12    14
43
 Since Dorian wants to minimize total
advertising costs, the optimal solution to the
problem is the point in the feasible region with
the smallest z value.
 An isocost line with the smallest z value passes
through point E and is the optimal solution at
x1 = 3.4 and x2 = 1.4.
 Both the high-income women and high-income
men constraints are satisfied, both constraints
are binding.

44
p.62
Does the Dorian model meet the
four assumptions of LP?
 The Proportionality Assumption is violated because
at a certain point advertising yields diminishing
returns.
 Even though the Additivity Assumption was used in
writing: (Total viewers) = (Comedy viewer ads) +
(Football ad viewers) many of the same people might
view both ads, double-counting of such people would
occur thereby violating the assumption.
 The Divisibility Assumption is violated if only 1-
minute commercials are available. Dorian is unable to
purchase 3.6 comedy and 1.4 football commercials.
 The Certainty assumption is also violated because
there is no way to know with certainty how many
viewers are added by each type of commercial.
45
Exercise：p.63 #1~#6
Graphically solved problem 1 of page 55.
(Exercise of slice 22)

46
p.63
3.3 Special Cases
 The Giapetto and Dorian LPs each had a unique
optimal solution.
 Some types of LPs do not have unique solutions.
 Some LPs have an infinite number of solutions
(alternative optimal solutions ,擇一最佳解 or
multiple optimal solutions ,多重最佳解).
 Some LPs have no feasible solutions
(infeasible solutions,無解).
 Some LP are unbounded.There are points in the
feasible region with arbitrarily large (in a max
problem) z-values. (unbounded solution,無窮解)

47
 The technique of goal programming is often
used to choose among alternative optimal
solutions.
 no feasible solutions and unbounded solution are
called no optimal solutions(無最佳解).
 It is possible for an LP’s feasible region to be
empty, resulting in an infeasible LP.
 Because the optimal solution to an LP is the best
point in the feasible region, an infeasible LP has
no optimal solution.
 For a max problem, an unbounded LP occurs if it
is possible to find points in the feasible region
with arbitrarily large z-values, which corresponds
to a decision maker earning arbitrarily large
revenues or profits.
48
Other Examples：
 Alternative Optimal Solutions
Example 3 (p.63 Fig.5)
max z  3x1  2x2
1         1
s.t.    x1       x2  1
40        60
1         1
x1       x2  1
50        50
x1 , x2  0

49
Other Examples：
 Infeasible Solution
Example 4 (p.65, Fig.6)
max z  3x1  2x2
1       1
s.t.    x1     x2  1
40      60
1       1
x1     x2  1
50      50
x1  30
x 2  20
x1 , x2  0
50
Other Examples：
 Unbounded Solution
Example 5 (p.67, Fig.7)
max z  2x1  x2
s.t. x1  x2  1
2x1  x2  6
x1 , x2  0

51
p.67
 Every LP with 2-variables must fall into one of
the following four cases.
 The LP has a unique optimal solution.
 The LP has alternative or multiple optimal
solutions: Two or more extreme points are
optimal, and the LP will have an infinite
number of optimal solutions.
 The LP is infeasible: The feasible region
contains no points.
 The LP unbounded: There are points in the
feasible region with arbitrarily large z-values
(max problem) or arbitrarily small z-values
(min problem).
52
Exercise 1：p.68 #1
Graphically solve the following LP：

max z  x1  x2
s.t.   x1  x2  4
x1  x2  5
x1, x2  0

No feasible solution

53
Exercise 2： p.68 #2
Graphically solve the following LP：

max z  4x1  x2
s.t.   8x1  2x2 ≤16
5x1  2x2 ≤12
x1, x2 ≥ 0

Alternative optimal solutions

54
Exercise 3： p.68 #3
Graphically solve the following LP：

max z  -x1  3x2
s.t.   x1 - x2 ≤ 4
x1  2x2 ≥ 4
x1, x2 ≥ 0

Unbounded solution

55
Exercise 4： p.68 #4
Graphically solve the following LP：

max z  3x1  x2
s.t.   2x1  x2 ≤ 6
x1  3x2 ≤ 9
x1, x2 ≥ 0

x1 = 3, x2 = 0, z = 9

56
p.69
Example 6: Diet Problem (飲食問題)
 以最低成本滿足各種營養成分的要求
 一般農場之牛羊雞鴨飼養
 My diet requires that all the food I get come from
one of the four “basic food groups”.
 The following four foods are available for
consumption: brownies, chocolate ice cream, cola
and pineapple cheesecake.
 Each brownie costs 50¢, each scoop of chocolate
ice cream costs 20¢, each bottle of cola costs 30¢,
and each piece of pineapple cheesecake costs 80¢.
 Each day, I must ingest at least 500 calories, 6 oz
of chocolate, 10 oz of sugar, and 8 oz of fat.

57
 The nutritional content per unit of each food is
given. (Table 2)
 Formulate a linear programming model that can be
used to satisfy my daily nutritional requirements at
minimum cost.

Table 2
Type of food    Calories   Chocolate   Sugar      Fat
Brownie           400         3         2          2
Chocolate ice
200         2         2          4
cream
Cola              150         0         4          1
Pineapple         500         0         4          5

58
Example 6: Solution

 We define the decision variables:
x1 = number of brownies eaten daily
x2 = number of scoops of chocolate ice cream
eaten daily
x3 = bottles of cola drunk daily
x4 = pieces of pineapple cheesecake eaten daily

59
 My objective is to minimize the cost of my diet.
 The total cost of any diet may be determined from
the following relation:
(total cost of diet) = (cost of brownies) +
(cost of ice cream) +
(cost of cola) +
(cost of cheesecake).
 The decision variables must satisfy four constraints:
Daily calorie intake must be at least 500 calories.
Daily chocolate intake must be at least 6 oz.
Daily sugar intake must be at least 10 oz.
Daily fat intake must be at least 8 oz.

60
Table 2

Cost    No. of
Type of food       Calories   Chocolate    Sugar      Fat
(¢)      food

Brownie              400          3          2        2         50       x1
Chocolate
200          2          2        4         20       x2
Ice cream
Cola                 100          0          4        1         30       x3
Pineapple
500          0          4        5         80       x4
cheesecake
constraints         500         6         10       8

min z = 50x1 + 20x2 + 30x3 + 80x 4
s.t. 400x1 + 200x2 + 150x3 + 500x 4 ≥500 (Colorie constraint)
3x1 +     2x2                         ≥ 6 (Chocolate constraint)
2x1 +     2x2 +    4x3 +       4x 4 ≥10         (Suger constraint)
2x1 +     4x2 +       x3 +     5x 4 ≥ 8            (Fat constraint)
xi ≥ 0 (i = 1,2,3,4)                                               n
(Sign restrictio61)
Example 6：

The optimal solution x1=x4=0, x2=3, x3=1, z=90

62
Exercise：p.71 #2

 Table 3.
 Let x1 = Number of valves ordered each month from
supplier 1
x2 = Number of valves ordered each month from
supplier 2
x3 = Number of valves ordered each month from
supplier 3

63
Table 3
Supplier      L      M       S      Cost   No. of valve
1         40      40      20      5         x1
2         30      35      35      4         x2
3         20      20      60      3         x3
constraint    500    300    300            xi  700

min z = 5x1 + 4x2 + 3x3
s.t. 0.4x1 + 0.3x2 + 0.2x3  500
0.4x1 + 0.35x2 + 0.2x3  300
0.2x1 + 0.35x2 + 0.60x3  300
x1  700, x2  700, x3  700
x1  0, x2  0, x3  0

64
p.72
3.5 A Work-Scheduling Problem
(人力安排問題)
 管理者如何在不同時段,安排適當之人力,以滿足人力需
求,並使人事成本最低？
 Many applications of linear programming
involve determining the minimum-cost method
for satisfying workforce requirements.
 One type of work scheduling problem is a static
scheduling problem.
 In reality, demands change over time, workers
take vacations in the summer, and so on, so
the post office does not face the same situation
each week. This is a dynamic scheduling
problem.
 Example 7. Table 4.
65
p.72
Example 7：Post Office problem(1)

Let xi= number of employees beginning work on day i
Min z = x1+x2+x3+x4+x5+x6+x7
s.t. x1         +x4+x5+x6+x7  17 (Monday constraint)
x1+x2         +x5+x6+x7  13 (Tuesday constraint)
x1+x2+x3          +x6+x7  15 (Wednesday constraint)
x1+x2+x3+x4           +x7  19 (Thursday constraint)
x1+x2+x3+x4+x5              14 (Friday constraint)
x2+x3+x4+x5+x6          16 (Saturday constraint)
x3+x4+x5+x6+x7  11 (Sunday constraint)
xi  0 ( i = 1,2,3,4,5,6,7) (sign restrictions)

66
 The optimal solution is
67       4       10                22                10
z      , x1  , x2     , x3  2, x4     , x5  0, x6     , x7  5
3       3        3                 3                 3

 To find a reasonable answer in which all variables
are integers.

z  25, x1  2, x2  4, x3  2, x4  8, x5  0, x6  4, x7  5

67
Exercise：p.75

Let x1 = Number of fulltime employees (FTE)
who start work on Sunday
x2 = Number of FTE who start work on Monday
：
x7 = Number of FTE who start work on Saturday
x8 = Number of part-time employees (PTE)
who start work on Sunday
：
x14 = Number of PTE who start work on Saturday

68
min z = 15(8)(5)(x1 + x2 + ...x7)+10(4)(5)(x8 + ...x14)
s.t. 8(x1+x4+x5+x6+x7)+4(x8+x11+x12+x13+x14)  88 (Sunday)
8(x1+x2+x5+x6+x7)+4(x8+x9+x12+x13+x14)  136 (Monday)
8(x1+x2+x3+x6+x7)+4(x8+x9+x10+x13+x14)  104 (Tuesday)
8(x1+x2+x3+x4+x7)+4(x8+x9+x10+x11+x14)  120 (Wednesday)
8(x1+x2+x3+x4+x5)+4(x8+x9+x10+x11+x12)  152 (Thursday)
8(x2+x3+x4+x5+x6)+4(x9+x10+x11+x12+x13)  112 (Friday)
8(x3+x4+x5+x6+x7)+4(x10+x11+x12+x13+x14)  128 (Saturday)
20(x8+x9+x10+x11+x12+x13+x14) 
0.25(136+104+120+152+ 112+128+88)
All variables 0.
(this constraint ensures that part-time labor will fulfill
at most 25% of all labor requirements)

69
p.85
3.8 Blending Problems(混合問題)

 將不同原料以一定比例混合,產生所要求之產品
 Situations in which various inputs must be blended
in desired proportion to produce goods for sale are
often amenable to linear programming analysis.
 Some examples of how linear programming has
been used to solve blending problems.
 Blending various types of crude oils to produce
different types of gasoline and other outputs.
 Blending various chemicals to produce other
chemicals
 Blending various types of metal alloys to
produce various types of steels
70
p.86
Example 12：Oil Blending

Table 12
Sales Price                  Purchase Price
Gas                        Crude
per Barrel(\$)                per Barrel (\$)
1            70             1              45
2            60             2              35
3            50             3              25

Table 13
Octane         Sulfur
Crude
rating       Content(%)
1            12            0.5
2             6            2.0
3             8            3.0

71
p.92
Exercise：problem 1 of page 92

Let Ing. 1 = Sugar, Ing. 2 = Nuts, Ing. 3 = Chocolate,
Candy 1 = Slugger and Candy 2 = Easy Out.
Let xij = Ounces of Ing. i used to make candy j.
max z = 25(x12 + x22 + x32) + 20(x11 + x21 + x31)
s.t. x11 + x12  100 (Sugar Const.)
x21 + x22  20 (Nuts Constraint)
x31 + x32  30 (Chocolate Const.)
x22/(x12 + x22 + x32)  0.20 ---
x21/(x11 + x21 + x31)  0.10 ---
x31/(x11 + x21 + x31)  0.10 ---
 are not LP constraints and should be replaced .
Replace  by x220.2(x12+x22+x32) or 0.8x22-0.2x12-0.2x32  0
Replace  by x210.1(x11+x21+x31) or 0.9x21-0.1x11-0.1x31  0
Replace  by x310.1(x11+x21+x31) or 0.9x31-0.1x11-0.1x21  0

72

```
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
 views: 48 posted: 10/2/2012 language: Unknown pages: 72