Linear Programming (Repaired)
Linear Programming (Repaired)
Linear programming enables us to find solution set of a system consisting of linear questions
e.g. x₁ + x₂ = 8 and linear inequations e.g. x₁ + x₂ ≤ 8 ,4 x₁ - x₂ ≥ 12
Linear programming is used to find the best or optimal solution to a problem requiring a
decision or set of decisions about how best limited resources can be used to achieve a stare
goal of objectives.
Linear programming requires that all the mathematical functions in the model be linear
function.
Graphic Solution:
Graphical solution is limited to linear programming models containing only two decision
variable (can be used with three variables but only with great difficulty).
Graphical method provides visualization of how a solution for a linear programming problem
is obtained.
Example:
2.5x₁ + x₂ ≤ 20
X₁ +2x₂≤ 1
2. Treat the three inequality constraints are equations, solve each one foe x₂ in term of x₁
X₂ = 20 - 2.5x₁ Form A
X₂ = 10 - x ₁ Forms B
X₂ = 8 - 0.5x₁ Form C
The graph of the original “Less than or equal to” inequality will include all the points on the line and
to the left of it. The non-negatively constraints x₁, x₂ ≥ 0 are represented by the vertical and
horizontal axes, respectively. The shades area is called feasible region. It contains all the point that
satisfy all these constraints plus the non-negatively constraints. The variable x₁ and x₂ are called
decision or structural variable.
3. to find the optimal solution within the feasible region, if it exists, graphs the objective
function as a series of isoprofit line.
X₂ = / π 4 – 3/4x₁
4. Profit is maximized at the intersection of two constraints, called an extreme point
An optimal solution to an L.P problem can be found at an extreme point of the feasible
region.
Example:
A Farmer wants to see that his herd gets the minimum daily requirement of these
basic nutrients A, B and C. Daily requirements are 14 for A. 12 for B, and 18 for C. Product y₁
has two units for A and 1 unit beach foe B and C. The cost of y₁ is $2, and the cost of y₂ is $4.
The graphic method is used below to determine the least-cost combination of y₁ and y₂ that
will fulfill all minimum requirements.
2y₁+ y₂ ≥ 14
Y₁+ 3y₂ ≥ 18
Y₁, y₂ ≤ 0 Non-negatively
Where the constraints read ≥ since minimum requirements must be fulfilled but may be
exceeded.
2. Treat the inequalities as equation, solve each one for y₂ is term of y₁, and graph. The
graph of the original ‘greater’ than or equal to “inequality” will include all the points on the
line and to the right of it. The shaded area in the feasible region containing all the points
that satisfy all three requirements plus the non-negatively constraint.
3. To find the optimal solution, graph the objective function as a series of (dashed) isocost
line.
y₂ = c/4 – ½ y₁
The lowest isocost line that will touch the feasible region in tangent at Ῡ₁ = 9 and Ῡ₂ =
3.Thus Ḡ = 2(9) + 4(10) [for minimization problem, (0, 0) is not in the feasible region.]
Surplus Variable:
A surplus variable is subtracted from a ≥ constraint to convert it to an equation (=).
A surplus variable contributes nothing to the calculated value of the objective function.
Example:
[] []
X1
X2
[ 2.5 1 1 0 0
3 3 0 1 0
1 2 0 0 1 ] X1
X2
X3 =
2O
30
16
[]
y1
y2
[ ] []
2 1 −1 0 0 y1 14
1 1 0 −1 0 y2 12
1 3 0 0 −1 y3 = 18
THE BASICSTHEOREM
Introduction:
For a system of m consistent equation and n variable, where n>m, then will be an
infinite number of solution. But the number of extreme points is finite. The basis theorem
states that for a system of m equation and n variable, where n>m, a solution in which at
least n-m variables equal to zero is an extreme point. Thus by setting n-m variables equal to
zero and solving the equations for the remaining m variables, an extreme point, or basic
solution, can be found. The number of basic solution is given by the formula.
n!
m! ( n−m ) !
Example:
5!
1. 3 ! (2) !
n!
m! ( n−m ) !
5 ( 4 ) ( 3 ) ( 2 )( 1 )
=10
3 ( 2 ) (1 )( 2 ) ( 1 )
PROBLEMS:
Question # 1:
π = 40x₁ + 50x₂
X₁ X₂ ≥ 0
Question # 2:
A toy manufacturer makes two games: Bong g₁ and zong g₂. The profit
margin on Bong is 30; the profit margin on zong is 20. Bong takes 6 hours of processing, 4
hours of assembly, and 5 hours of packaging Bong is 30; the profit margin on zong is 20. Zong
takes 3 hours of processing, 6 hours of assembly, and 5 hours of packaging. If 54 hours are
available for processing, 48 hours of assembling or 50 hours for packaging, what is the profit-
maximization output mix in term of equations and inequations?
π = 30x₁ + 20x₂
g₁, g₂ ≥ 0
Question # 3:
A stereo manufacturer makes three types of stereos; Standards y₁, quality
y₂, and deluxe y₃. His profit margin from each is 15, 20 and 24, respectively. The standards
model requires 3 hours for wiring and 1 hour for encasing. The quality model requires 1 hour
for wiring and 5 hours for encasing. The deluxe model requires 3 hours for wiring and 2 hour
for encasing. If 120 hours are available for wiring and 60 hours for encasing, express the
output mix that will maximize profits as equations and inequations.
y₁, y₂, y₃ ≥ 0
Question # 4:
Hank Burdue makes sure his chickens get at least 24 units of iron and 8
units of vitamins each day. Corn x1 provides 2 units of iron and 5 units of vitamins. Bone
meal x2 provides 4 units of iron and 1 units of vitamins. Millet x3 provides 2 units of iron and 1
units of vitamins. How should the feed be raixed to provide least cost satisfaction of daily
requirements if feed cost is $40, $20, and $60, respectively?
Question # 5:
Draw graph of the following data:
Maximize n = 5x1 + 3x2
Diagram:
(a)
X2
20-
18-
16-
14- Constraint 1
12-
10-
8- Constraint 2
6-
4-
2- Constraints 3
0 2 4 6 8 10 12 14 16 18 20 x1
X2
20-
18-
16-
14-
12-
10-
8-
6- Slope = - 5/3
4-
2-
0 2 4 6 8 10 12 14 16 18 20 x1
Question # 6:
Draw graph of the following data
Diagram:
X2
22-
20-
18-
16-
14- constraint 1
12-
10- constraint 3
8-
6-
4- constraint 2
2-
0 2 4 6 8 10 12 14 16 18 20 x 1
X2
22-
20-
18-
16-
14-
12- Slope = - 2
10-
8-
6-
4-
2-
0 2 4 6 8 10 12 14 16 18 20 x1
Question # 7:
Draw the graph of the following data:
Diagram:
X2 (a)
22-
20-
18-
16-
14- Constraint 1
12-
10-
8-
6-
4- Constraint 2
2- Constraints 3
0 2 4 6 8 10 12 14 16 18 20 x1
X2 (b)
22-
20-
18-
16-
14-
12-
10-
8-
6-
4-
2- Slope = -2
0 2 4 6 8 10 12 14 16 18 20 x1
(a)
X2
20-
18-
16-
14- Constraint 1
12-
10-
8-
6-
4- Constraint 2
2- Constraints 3
0 2 4 6 8 10 12 14 16 18 20 x1
X2 (b)
20-
18-
16-
14-
12-
10-
8-
6-
4-
2- Slope = - 3/5
0 2 4 6 8 10 12 14 16 18 20 x1
(a)
X2
20-
18-
16-
14- Constraint on input A
12-
10-
8-
6-
4- Constraint on input B
2- Constraint on input C
0 2 4 6 8 10 12 14 16 18 20 x1
X2 (b)
22-
20-
18-
16-
14-
12-
10-
8-
6- E
4-
2-
0 2 4 6 8 10 12 14 16 18 20 x 1