DAA Lecture 10
DAA Lecture 10
2) Solution
T, C > 0 (nonnegativity)
GRAPHICAL SOLUTION
0 800 T
C
1000
Painting
Constraint Line
2T + 1C = 1000
2T
+
1C
600
=1
00
Intercepts
0
(T = 0, C = 1000)
(T = 500, C = 0)
0
0 500 800 T
C
1000
Max Chair Line
C = 450
600
Min Table Line
450
T = 100
Feasible
0 Region
0 100 500 800 T
C
7T
+5
Objective
C
Function Line
=$
4,
500
04
7T + 5C = Profit
0
7T
Optimal Point
+5
400 (T = 320, C =
C
360)
=$
7T
2,
300
+5
80
C
0
=$
2,
200
10
0
100
Need at least 75
more chairs than 400
T = 320
tables C = 360
C > T + 75 300 No longer
feasible
Or
200
C – T > 75
100
Example: x < 10
x < 12
The second constraint is redundant because
it is less restrictive.
SPECIAL SITUATION IN LP
Example: x < 10
x > 15
SPECIAL SITUATION IN LP
2T
Max 2T + 2C 10
+
2C
Subject to: All points on
=
20
T + C < 10 6 Red
T < 5 segment are
C< 6 optimal
T, C > 0
0
0 5 10 T
SPECIAL SITUATION IN LP
4. Unbounded Solutions – when
nothing prevents the solution
from becoming infinitely large
n
C it o on
c ti
Max 2T + 2C re u
Di sol
Subject to: 2 of
2T + 3C > 6
T, C > 0 1
0 1 23 T
USE CASE: CLASSIFYING EMAILS AS SPAM OR NOT
SPAM
◼
SIMPLEX METHOD
◼ Used for solving LP problems
◼ Put into the form of a table, and then a number
of mathematical steps are performed on the
table
◼ Moves from one extreme point on the solution
boundary to another until the best one is found,
and then it stops
◼ A lengthy and tedious process but computer
software programs are now used easily instead
◼ Programs do not provide an in-depth
understanding of how those solutions are
derived
2. WHY SIMPLEX ALGORITHM?
Maximize Z = 3x + 2y
Subject to:
x + y + s1 = 4
x + s2 = 2
y + s3 = 3
x, y, s1, s2, s3 ≥ 0
Key column
◼Entering: y
◼Leaving: s1 (min ratio 2/1)
◼Pivot on (s1, y), update tableau.
Solution: x = 2, y = 2, Z =
8. FINAL SIMPLEX TABLEAU 10
Basi x y s1 s2 s3 RHS Min
c Ratio
Varia =RH
ble S/ke
y
colu
mn
Z 0 0 2 1 0 10
y 0 1 1 -1 0 2
x 1 0 0 1 0 2
s3 0 0 -1 1 1 1
13. TIME COMPLEXITY