Professional Documents
Culture Documents
mlteklehaimanot@yahoo.com
06/22/2022
Chapter two
06/22/2022
Chapter Two
1) Decision variables
2) Objective function
3) Constraints
4) Non-negativity Conditions
06/22/2022
Chapter Two
Decision variables
• LP method is applicable in problems characterized by the presence of
decision variables.
• Decision variables refers to the aim to optimize (maximize the profits or
minimize the costs) or explain the optimization (maximization of profit or
minimization of cost).
The solution for these terms are what we would like to optimize.
06/22/2022
Chapter Two
Objective function
…states the goal/objective of the decision-maker (in our case the manager).
Often times, there are two types of objectives:
• Maximization (e.g. profit), or
• Minimization (e.g. costs)
Example:
Assume a factory is producing two types of products: bicycle (X 1) and motorbike
(X2). The profit from each bicycle is birr 250 and from a motorbike is birr
1,500.
The objective function is:
Maximize Z = 250X1 + 1,500X2; Decision variables are X1 and X2
06/22/2022
Chapter Two
Constraints:
There will be no problem in making decisions if resources are abundant; but
resources are usually scarce to achieve objectives.
Constraints are thus resources or factors (number of labour hours, raw materials,
equipment, etc.) that limit feasible solutions (or that limit to achieve desired
objectives).
The availability of scarce resources may be expressed as equations or
inequalities which rule out certain combinations of variable values as feasible
solutions.
Consider the previous example
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. There are
only 200 labour hours and 80 machine hours. Find the profit maximizing
number of bicycles and motorbikes.
06/22/2022
Chapter Two
Maximize Z = 250X1 + 1,500X2
Subject to:
5X1 + 10X2 = 200
2X1 + 4X2 = 80
Non-negativity conditions
Are special constraints which require all variables to be either zero or
positive.
Negative values of physical quantities are impossible, like producing negative
number of bicycles, motorbikes, chairs, tables, etc., so it is necessary to
include the element of non-negativity as a constraint i.e., X1, X2 > 0.
Maximize Z = 250X1 + 1,500X2
Subject to:
5X1 + 10X2 = 200
2X1 + 4X2 = 80
X1, X2 > 0. 06/22/2022
Chapter Two
Essentials of LP model
• The objective in all linear programming problems is the maximization or
minimization of some quantity.
• All LP problems have constraints that limit the degree to which the
objective can be pursued.
• A feasible solution satisfies all the problem's constraints.
• An optimal solution is a feasible solution that results in the largest
possible objective function value when maximizing (or smallest when
minimizing).
• Linear constraints are linear functions that are restricted to be "less than or
equal to", "equal to", or "greater than or equal to" a constant.
• A model must have a non-negativity constraint.
06/22/2022
Chapter Two
Guidelines for LP Model Formulation
Problem formulation or modeling is the process of translating a verbal
statement of a problem into a mathematical statement.
Model formulation in a mathematical statement:
Special Terms in LP
1) Parameters
2) Right-Hand Side (RHS)
3) Objective Coefficients
4) Technological Coefficients
5) Canonical Form
6) Standard Form
06/22/2022
Parameters
are the constant terms. These are neither variables, nor their coefficients. In a
standard form the parameters always appear on the right-hand side of the
constraints.
06/22/2022
Wood Problem Formulation
06/22/2022
Right-Hand Side (RHS)
06/22/2022
Objective Coefficients
MAX Z = 6 XT + 8 XC
06/22/2022
Technological Coefficients
06/22/2022
Canonical Form
06/22/2022
Standard Form
06/22/2022
Chapter two
Solving LP Problems
06/22/2022
Graphical LP Solution Procedure
06/22/2022
Let’s continue with the example on maximization problem.
Assume that wood Furniture Company wants to produce tables and chairs. A
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 birr
6 and 8, respectively, to the profit.
C (10, 0) 60 Feasible
06/22/2022
Wood Furniture Problem
XT = 4 tables
XC = 9 chairs
P = 6(4) + 8(9) = 96 birr
06/22/2022
Example 2.
A firm is engaged in producing two products, A and B. Each unit of
product A requires 2 kg of raw material and 4 hours of labor for
processing, whereas each unit of product B requires 3 Kg of raw
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
of product A sold yields Birr 40 and one unit of product B sold gives
Birr 35 as profit.
Required:
a) Formulate this problem as a linear programming problem
b) How many units of each of the products should be produced per
week so that the firm can earn the maximum profit.
06/22/2022
Formulation …
XA XB Available
Raw material 2 3 60
Labor 4 3 96
Unit profit 40 35
06/22/2022
Solution
Let xA = the number of product A to be produced and
xB = the number of product B to be produced.
Subject to
xA xB
A 0 0 0, 0 0 Feasible
B 30 0 (30, 0) Z=1200 Infeasible
C 0 20 (0,20) Z=700 Feasible
D 24 0 (24,0) Z= 960 Feasible
E 0 32 (0,32) Z= 1120 Infeasible
F 18 8 (18,8) Z= 1000 Feasible
06/22/2022
Exercise
A company makes two products (X and Y) using two
machines (A and B). Each unit of X that is produced requires
50 minutes of processing time on machine A and 30 minutes
of processing time on machine B. Each unit of Y that is
produced requires 24 minutes of processing time on machine
A and 33 minutes of processing time on machine B. Available
processing time on machine A is forecasted to be 40 hours
and on machine B is forecasted to be 35 hours. The company
expects a profit of birr 75 per unit from X and birr 95 from Y.
06/22/2022
Graphical method for LP minimization problems
Example:
The agricultural institute suggested to a farmer to spread out at least 480
kg of phosphate fertilizer and not less than 720 kg of nitrogen fertilizer
to raise productivity of crops in his field. There are two sources for
obtaining these: mixtures A and B. Both of these are available in bags
weighing 100 kg each and they cost birr 40 and 24 respectively. Mixture
A contains phosphate and nitrogen equivalent of 20 kg and 80 kg
respectively, while mixture B contains these ingredients equivalent of
40 kg each.
Subject to
A, B > 0
06/22/2022
Let Z represent the Objective function and
X1 and X2 represent the number of bags of mixtures A and
B respectively:
06/22/2022
Minimize Z= 40x1 + 24x2 (cost)
Subject to constraints
06/22/2022
Corner Z (Cost)
point
A (x1) B (x2)
1 (24, 0) 24 0 960
2 ( 0, 12) 0 12 Infeasible
3 (9, 0) 9 0 Infeasible
4 (0, 18) 0 18 432
5 (4, 10) 4 10 400
06/22/2022