Chapter Two Linear Programming Graphics
Chapter Two Linear Programming Graphics
Learning Objective
After completing this chapter, students should be
able to :
Explain what is meant by the term constrained optimization
Explain what linear programming is.
Identify components and assumptions of linear programming
models.
Recognize problems that can be solved using linear program
models.
Formulate linear programming models
Describe several problem types that lead themselves to solutions
using linear programming models.
2021
Linear programming
Linear programming (LP, also called linear optimization) is the development of
Linear programming
modeling and solution procedures which employ mathematical techniques to
optimize the goals and objectives of the decision-maker.
Restrictions are referred to as constraints
LP is a widely used mathematical modelling technique to determine the Restrictions may be imposed internally or externally.
optimum allocation of scarce resources among competing demands.
- Internal restrictions: e.g. Labour time,
LP is a method to achieve the best outcome (such as maximum profit or lowest
cost) in a mathematical model whose requirements are represented by linear
Machine time, Budget etc.
relationships. - External restrictions: e.g, Labour regulation
LP is a versatile technique which can be applied to a variety of management
problems in investment, advertising, production, education, hospitals, etc.
The goal in LP is to find the best solution given
LP problems determine the optimal allocation of scarce resources in
organizations (both profit and non-profit) to meet certain objectives.
the constraint imposed by the problem: hence
LP – enables users to find optimal solutions to certain problems in which the
the term constrained optimization.
solutions must satisfy a given set of requirements or constraints/restrictions
12/27/2021 Dr. Wasihun 3 12/27/2021 Dr. Wasihun 4
1
27/12/2021
Components of LP Components of LP
Objective function Decision variables
…states the goal/objective of the decision-maker (in our case the manager). • LP method is applicable in problems characterized by the presence of
decision variables.
Often times, there are two types of objectives:
• Maximization (e.g. profit, revenue, market share ROI ), or • Decision variables refers to the aim to optimize (maximize the profits or
• Minimization (e.g. costs, time, distance) minimize the costs) or explain the optimization (maximization of profit or
minimization of cost).
Example:
Assume a factory is producing two types of products: bicycle (X1 ) and motorbike • Decision variables – represent unknown quantities to be
(X2). The profit from each bicycle is Birr 250 and from a motorbike is Birr solved for.
1,500.
(e.g., number of quantities to be produced within a given machine/labor hours
The objective function is: to maximize profit or minimize cost).
Maximize Z = 250X1 + 1,500X2; Decision variables are X1 and X2
The solution for these terms are what we would like to optimize.
12/27/2021 Dr. Wasihun 7 12/27/2021 Dr. Wasihun 8
Components of LP Components of LP
Constraints: Parameters
There will be no problem in making decisions if resources are abundant;
but resources are usually scarce to achieve objectives.
Are fixed values that specify the impact that one
unit of each decision variable will have on the
Constraints are thus resources or factors (number of labor hours, raw
materials, equipment, etc.) that limit feasible solutions (or that limit to
objective and on any constraint it pertains to as
achieve desired objectives). well as to the numerical value of each constraint.
The availability of scarce resources may be expressed as equations or Example,
inequalities which rule out certain combinations of variable values as Maximize Z = 250X1 + 1,500X2
feasible solutions.
Subject to:
Consider the previous example
5X1 + 10X2 = 200
To produce one bicycle needs five labour hours and 2 machine hours, and
to produce a motorbike requires ten labour hours and 4 machine hours. 2X1 + 4X2 = 80
There are only 200 labour hours and 80 machine hours. Find the profit
maximizing number of bicycles and motorbikes. X1,X2 > 0
12/27/2021 Dr. Wasihun 9 12/27/2021 Dr. Wasihun 10
Assumptions of LP model
Essentials of LP model • Four basic assumptions (Model Validity)
The objective in all linear programming problems is the
maximization or minimization of some quantity.
1. Linearity – each decision variables has linear
impact on objective function and in each
All LP problems have constraints that limit the degree to which the constraints.
objective can be pursued.
2. Divisibility – nonintegers values are
A feasible solution satisfies all the problem's constraints. acceptable. E.g. X1= 3.5
An optimal solution is a feasible solution that results in the largest
possible objective function value when maximizing (or smallest
3. Certainty – (model parameters are known
when minimizing). and constant)
Linear constraints are linear functions that are restricted to be "less 4. Non-negativity – negative value of variables
than or equal to", "equal to", or "greater than or equal to" a constant. are unrealistic.
A model must have a non-negativity constraint.
12/27/2021 Dr. Wasihun 11 12/27/2021 Dr. Wasihun 12
2
27/12/2021
Formulating LP Models
Problem formulation or modelling is the process
of translating the verbal statement of a problem
into a mathematical statement.
Model formulation in a mathematical statement:
Understand the problem thoroughly.
Define the decision variables.
Describe each constraint.
Describe the objective.
Write the objective in terms of the decision variables.
Write the constraints in terms of the decision variables.
12/27/2021 Dr. Wasihun 13 12/27/2021 Dr. Wasihun 14
Parameters
Special Terms in LP Parameters
are the constant terms. These are the coefficients to the decision variables
1) Parameters
An Example of LP with Maximization Problem
2) Right-Hand Side (RHS)
Assume that wood Furniture Company wants to produce tables and chairs. A
3) Objective Coefficients unit of table requires 30 units of wood and 5 units of labor. A unit of chair
requires 20 units of wood and 10 units of labor. The company has 300 and
4) Technological Coefficients 110 units of wood and labor, respectively. A unit of table and chair contribute
to the profit of $ 6 and 8 respectively.
5) Canonical Form
6) Standard Form
3
27/12/2021
4
27/12/2021
There are two methods for solving LP problems. 1) Formulate the LP problem
The graphical and the simplex methods. 2) Plot the constraints on a graph
1. A graphical solution method can be used to solve a 3) Identify the feasible solution region
linear program problems with only two variables. 4) Find the coordinates of the corner points
Let’s continue with the example on maximization problem. Wood Furniture Problem
Assume that wood Furniture Company wants to produce tables and chairs. A
Corner points approach
unit of table requires 30 units of wood and 5 units of labor. A unit of chair
requires 20 units of wood and 10 units of labor. The company has 300 and 110
units of wood and labor, respectively. A unit of table and chair contribute $ 6 XT = 4 tables
and 8, respectively, to the profit. XC = 9 chairs
P = 6(4) + 8(9) = 96 $
Max Z = 6XT + 8XC
Subject to:
30XT + 20XC < 300
5XT + 10XC < 110
where: XT, XC > 0
First find x and y intercepts for each constraints:
x 0
y 0
12/27/2021
12/27/2021 Dr. Wasihun 29 Dr. Wasihun 30
5
27/12/2021
Graphical method…
Example 2.
A firm is engaged in producing two products, A and B. Each unit of
Corner Values T & C Profit level Decision to Feasible product A requires 2 kg of raw material and 4 hours of labor for
point (Z) produce
processing, whereas each unit of product B requires 3 Kg of raw
A (0,0) 0 Feasible material and 3 hours of labor, of the same type. Every week, the firm
has an availability of 60 kg of raw material and 96 labor hours. One unit
B (0, 15) 120 Infeasible
of product A sold yields $40 and one unit of product B sold gives $35 as
C (10, 0) 60 Feasible profit.
Solution
Formulation … Let x1 = the number of product A to be produced and
x2 = the number of product B to be produced.
Resource Unit Requirements Amount Now, we can write the problem in complete form as follows.
X1 X2 Available
Maximize Z = 40x1 + 35x2
Raw material 2 3 60
Subject to
Labor 4 3 96
2x1 + 3x2 ≤ 60 (Raw material constraint)
Unit profit 40 35
4x1 + 3x2 ≤ 96 (Labor hours constraint)
12/27/2021 12/27/2021
Dr. Wasihun 33 Dr. Wasihun 34
Exercise
Corner Quantity Quantity Profit Feasibility A company makes two products (X and Y) using two
point combination machines (A and B). Each unit of X that is produced requires
x1 x2 50 minutes of processing time on machine A and 30 minutes
of processing time on machine B. Each unit of Y that is
A 0 0 0, 0 0 Feasible produced requires 24 minutes of processing time on machine
B 30 0 (30, 0) Z=1200 Infeasible A and 33 minutes of processing time on machine B. Available
processing time on machine A is forecasted to be 40 hours
C 0 20 (0,20) Z=700 Feasible and on machine B is forecasted to be 35 hours. The company
D 24 0 (24,0) Z= 960 Feasible expects a profit of $ 75 per unit from X and $ 95 from Y.
12/27/2021
Dr. Wasihun 35 Dr. Wasihun 12/27/2021
36
6
27/12/2021
Constraints: Minimum of 480kg of phosphate and 720 kg of X1, x2 > 0 (Non-negativity restriction)
nitrogen ingredients are required.
12/27/2021
Dr. Wasihun 12/27/2021 39 Dr. Wasihun 40
Corner Z (Cost)
point
A (x1) B (x2)
1 (24, 0) 24 0 960
4 (0, 18) 0 18 432
5 (4, 10) 4 10 400
12/27/2021
Dr. Wasihun 41 12/27/2021 Dr. Wasihun 42