LP Formulation and Graph
LP Formulation and Graph
Formulation
Linear Programming
Linear programming is a vital tool
in management science that applies
to a variety of business and
industrial decision-making
environments, including those
involving production, marketing,
finance, personnel, physical
distribution, and corporate planning.
Linear Programming
The word “linear” implies direct
proportionality of relationship of
variables.
“Programming” means making
schedules or plans of activities to
undertake in the future.
“Linear programming” therefore is
planning by the use of linear
relationship of variables involved.
Linear Programming
Mathematical Model:
x1 = number of units product 1 to be produced
x2 = number of units product 2 to be produced
Material A Material B Material C Profit
x1 1 2 2 ₧150
x2 1 3 ₧220
70 160 240
Mathematical Model:
x1 = amount to be invested in opportunity 1
x2 = amount to be invested in opportunity 2
Mathematical Model:
x1 = number of barrels of type A to be purchased
x2 = number of barrels of type B to be purchased
Carbon Black Thinning Agent Cost
x1 2 2 ₧400
x2 3 1 ₧240
12 6
Minimize C = 400x1 + 240x2
Subject to: 2x1 + 3x2 ≥ 12
2x1 + x2 ≥ 6
x1 , x 2 ≥ 0
METHODS OF SOLVING
LINEAR PROGRAMMING
Linear Programming
Two ways of solving a linear programming problem:
1) by the graphical method –
can only be used if the problem has 2 or 3
variables;
since there are only 2 coordinate axes in a plane
and 3 coordinates in space.
2) by the simplex method –
can handle problems having any number of
variables.
Linear Programming
The Graphical Method
As the name implies, this method makes use of
graphs to arrive at the optimum solution.
OPTIMUM SOLUTION is a solution that makes the
objective function as large as possible in the
case of maximization process, and as small as
possible in the case of minimization process.
The set of all points in the graph satisfying the
constraint is called feasible solution, and these
points are located in the feasible region.
Linear Programming
Steps to follow in solving the graphical method:
1) Represents the unknown in the
problem.
2) Tabulate the data about the unknown
(if necessary).
3) Formulate the objective function and
constraints.
4) Graph the constraints (we need to
consider only the first quadrant), and
always solve for the coordinates at the
points of intersection of lines.
Linear Programming
5) Substitute the coordinates at the
vertices of the feasible region in the
objective function.
6) Formulate your decision by selecting
the highest value of the objective if it
is maximization and the lowest value
if it is minimization.
Graphical Method:
EXAMPLES:
1) Maximize P= 60x + 80y objective function
Subject to: x ≤ 70 constraints
2x + y ≤ 160
2x + 3y ≤ 240
x ≥ 0, y ≥ 0
Graphical Method
1) Replace all the inequality signs in the explicit
constraint with equal signs.
2) Graph the equations in one set of coordinate axes.
3) Test for a point on a given line. If the point satisfies
the inequality, then shade the region which contains
the point. Otherwise, shade the other side of the line.
4) The points in the area that is common to all the four
shaded regions represent the feasible solutions to the
problem.
The area which contains all the feasible solutions is
called the feasible area or feasible region.
Maximize P= 60x + 80y
a) Solve for the intercept points
s.t. x ≤ 70
2x + y ≤ 160 (0, 160) (80, 0)
180
2x + 3y ≤ 240 (0, 80) (120,0) b) Graph the constraints
L2 L1
160
140
120
100
L3
80
60
40
20
point C: L1 and L2
x = 70
A(0, 80) 2x + y = 160
2(70) + y = 160
y = 160 - 140
y = 20
B(60, 40)
D (70, 0)
d) Test for optimality: A(0, 80) 60(0) + 80(80) = 6400
Maximize P= 60x +80y B(60, 40) 60(60) + 80(40) = 6800
C(70, 20) 60(70) + 80(20) = 5800
D(70, 0) 60(70) + 80(0) = 4200
e) Decision:
x = 60, y = 40
Maximum Profit = ₧6800
A (0, 80)
Feasible Region C
D (70, 0)