Linear Programming: Model Formulation and Graphical Solution
Linear Programming: Model Formulation and Graphical Solution
ใช้ในการแก้ปัญหาการจัดสรรทรัพยากร
intoni nous Essen
Steps in application:
1. Identify problem as solvable by
linear programming.
2. Formulate a mathematical model of
the unstructured problem.
3. Solve the model.
4. Implementation
•
• oiobbdsnisokasn.dk8880 ( Decision variables )
Antonio
ysw-iosoiivsogso.ph
→
B
C
maximum profit
objective function ✓ or faeries as parameters code: )
\
minimum cost
2. antagonisms
3. 66EUR .
4. 892T'dno,
1. Identify problem
• Decision variables
• Objective function - a linear mathematical relationship
describing an objective of the firm, in terms of decision
:
variables - this function is to be maximized or minimized.
• Constraints – requirements or restrictions placed on the firm
by the operating environment, stated in linear relationships
of the decision variables.
• Parameters - numerical coefficients and constants used in
the objective function and constraints.
Resource Requirements
Product Labor Clay Profit
(hr/unit) (lb/unit) ($/unit)
Bowl 1 4 40
Mug 2 3 50
40/20 120/40
Non-Negativity x1 0; x2 0
Constraints: Xz E 40
Maximize Z = 4071
,
-150×2
subject to: Xp -12712 £40
ST : 44 , -137124120
TX -18112£ 320
,
5428200
712840
X 1- 80£40
,
X f -
40
,
4,40 9270
isoprofitcine
eexxttteemmeeppooiinntt
I.
-
X Xz Z Yi Ey -140
-
-
,
A O O O
"
20 1000 '
B O
X
- 4=-12×+20
C
D
24
30
8
O
1360
1200
(
feasible area
x1 x2 Z
A
B B
C C
A D
D
Linar Programming : Formulation & Graph by Bernard
Taylor III (Intro to Management Science 12 ed))
(about ; 11241+2181 = 40
120
clay ; 41241+3187
=
nwoognfwginrnoufbwonarofokqo.in
Slack of BYE 6880%66
8wonsr9Wg/
\
surplus
f slack → -15
7 Surplus →
-
S
Slack Variables
ps
=
,
x1 = number of bowls
x2 = number of mugs
s1, s2 are slack variables
Crop-quick 4 X
,
0 = 0 3 Xz 293$ -724
2X ,
Model Constraints: 471 -1442716
, -13712724
X, 70
gxz
i÷÷÷÷÷÷÷
18
:÷÷
16
:
ai
6
4
.
2
2 4 6 8 10 12 14 16
x1 x2 Z A
A
B B
C
C
Linar Programming : Formulation & Graph by Bernard
Taylor III (Intro to Management Science 12 ed))
Surplus Variables
A Minimization Example (6 of 7)
• A surplus variable is subtracted from a constraint
to convert it to an equation (=).
• A surplus variable represents an excess above a
constraint requirement level.
• Surplus variables contribute nothing to the
calculated value of the objective function.
• Subtracting slack variables in the farmer problem
constraints:
2x1 + 4x2 - s1 = 16 (nitrogen)
4x1 + 3x2 - s2 = 24 (phosphate)
Linar Programming : Formulation & Graph by Bernard
Taylor III (Intro to Management Science 12 ed))
Graphical Solutions
A Minimization Example (7 of 7)
neind imousgiwnoig.ae#,.g
general rules do not apply. ↳
X 74
maximize 2 =
4011 , +00712 ,
Xzf 2
f 40
-
①
X, -12×2
Xl ,
11230
Xz
44 , -13112 f 720 -
②
Xz ① x4 ; 471 , -18112=160
-
③
10,401 . ③ ② ;-
5×2
= -
40
Xz =
-
8
(0,20) @
X -16=40 14,4
,
• •
X X ,
=
56
•
712=2
130,01 140,0 ) 7
X,
.
tie
Infeasible problem Xz x , -4
:::÷ .
"
7. NO COMMON AREA ? •
I
An Infeasible Problem
47 , t 2X £8
x1 4
z
X
,
74
x2 6 71276
x 1, x 2 0 X, g 7/270
x2 2 Xl ,
11230
Xz
x 1, x 2 0
144
.
712=2
X,
tie
Linar Programming : Formulation & Graph by Bernard
Taylor III (Intro to Management Science 12 ed))