Lecture2 O.R
Lecture2 O.R
We assume that numbers in the objective and constraints are known with
certainty and does not change during the period being study
Proportionality
We are sure that proportionality exists in the objective and the constraints. This
means that, if production of one unit of product uses two of a particular scare
resource; then making five units of that product uses ten resources.
Additivity
This means that the total of all activities equals the sum of each individual activity.
We also formulate the linear programming model
:based on the following assumptions
Divisibility
This means that solution may take fractional values and need not be in
whole numbers (integers). If a fraction of a product cannot be produced,
integer programming problem exist.
Non-negativity
Step 1: Choose variables and notations that will be used to form the
objective and constraints functions.
using the three machines A, B, and C. Each unit of shirts takes 1 hour
for production. Each unit of shirts brings a profit of L.E 5/- and
trousers brings L.E7 per unit. How much of shirts and trousers are to
Machines
Products A B C profit
Shirts
1 hour 3hours 10hours L.E 5
Machines
A B C profit
Products
Shirts 1 hour 3hours 10hours L.E 5
Trousers 1 hour 8 hours 7 hours L.E7
Maximum capacity 40hours 240 hours 350 hours
Our decision variables are the items for which we need to maximize profit
or minimize cost, in our example we have two products (variables) shirts
and trousers.
Suppose that the number of units produced from shirts is the variable X1,
Machines
A B C profit
Products
Shirts 1 hour 3hours 10hours L.E 5
Trousers 1 hour 8 hours 7 hours L.E7
Maximum capacity 40hours 240 hours 350 hours
Our objective in this example is to maximize the profit from the two
products X1 & X2
Machines
A B C profit
Products
Shirts 1 hour 3hours 10hours L.E 5
Trousers 1 hour 8 hours 7 hours L.E7
Maximum capacity 40hours 240 hours 350 hours
Constraint 1 1X1 + 1X2 ≤ 40
Constraint2 3X1 + 8X2 ≤ 240
Constraint 3 10X1 + 7X2 ≤ 350
Subject to:
1X1 + 1X2 ≤ 40
X1, X2 ≥ 0
:For Example
Abdallah, a retired government officer, has recently received his retirement benefits,
provident fund, gratuity, etc. He is contemplating how much money he should invest in
various alternatives open to him, so as to maximize return on investment. The investment
alternatives are Government securities, fixed deposits of a public limited company, equity
shares, time deposits in a bank, and house construction. He has made a subjective estimate
of the risk involved on a five-point scale. The data on the return on investment, the number
of years for which the funds will be blocked to earn this return on investment and the
subjective risk involved are as follows;
Government securities X1 6 15 1
Company depositsX2 13 3 3
Time depositsX3 10 5 2
Equity sharesX4 20 6 5
House constructionX5 25 10 1
He was wondering as to what percentage of funds he should invest
decided that the risk should not be more than 4, and funds should
not be locked up for more than 15 years. He would necessarily
an LP model.
The model will be:
Subject to
X5 ≥ 0.25
X1 + X2 + X3 + X4 + X5 = 1
M1 6 4 24
M2 1 2 6
Profit per ton
If you 5
know that a market survey indicates that the 4daily demand for ring pasta can't
exceed that of spaghetti pasta by more than one ton. Also, the maximum daily demand of
ring pasta is 2 tons. Al-Rahman company wants to determine the optimum product mix of
ring and spaghetti that maximizes the total daily profit.
In order to solve the previous example graphically we should follow the following
steps:
1. Formulate the problem into linear programming model
Suppose that X1 = the tons produced from spaghetti pasta
X2 =the tons produced from ring pasta
The model will be as follow:
Maximize Z = 5X1+ 4X2
Subject to:
6X1+4X2 ≤ 24
X1+2X2 ≤ 6
-X1 +X2 ≤ 1
X2 ≤ 2
X1, X2 ≥ 0
.Consider each inequality constraints as equation
X1, X2 ≥ 0
2. Plot each equation on the graph as each equation will geometrically represent a
straight line.
According to the nonnegativity constraint the variables are restricted to the first
(positive) quadrant.
Let the horizontal axis X1 and the vertical Axis X2
Feasible
solution
The corner points of this region are identified.
The corner points in the previous example are A, B, C, D, E, F
1. Finding the optimal solutions, the value of Z at various corners points of the region of
feasible solution are calculated. The optimum (maximum or minimum) Z among these
values is noted. Corresponding solution is the optimal solution. As in the following table:
B (4,0) 20
C (3,1.5) 21(Optimum)
D (2,2) 18
E (1,2) 13
F (0,1) 4