Operation Research Lab Manual - Lab 02
Operation Research Lab Manual - Lab 02
(NUML)
Rawalpindi Campus
Department of Engineering and Computer Sciences
Operation Research
Lab. Manual
Prepared by:
Literature Review:
Linear programming uses a mathematical model to describe the problem of concern. The
adjective linear means that all the mathematical functions in this model are required to be linear
functions. The word programming does not refer here to computer programming; rather, it is
essentially a synonym for planning. Thus, linear programming involves the planning of activities
to obtain an optimal result, i.e., a result that reaches the specified goal best (according to the
mathematical model) among all feasible alternatives.
Introduction:
The mathematical model which tells to optimize (minimize or maximize) the objective function
Z subject to certain condition on the variables is called a Linear programming problem (LPP).
Linear Programming Problems (LPP)
The standard form of the linear programming problem is used to develop the procedure for
solving a general programming problem.
There are mainly four steps in the mathematical formulation of linear programming problem as a
mathematical model. We will discuss formulation of those problems which involve only two
variables.
The graphical method is applicable to solve the LPP involving two decision variables x1, and x2,
we usually take these decision variables as x, y instead of x1, x2. To solve an LPP, the graphical
method includes two major steps.
i. The determination of the solution space that defines the feasible solution (Note that the
set of values of the variable x1, x2, x3,....xn which satisfy all the constraints and also the
non-negative conditions is called the feasible solution of the LPP).
ii. The determination of the optimal solution from the feasible region.
iii. There are two techniques to find the optimal solution of an LPP. Corner Point Method
and ISO- PROFIT (OR ISO-COST).
We may come across LPP which may have no feasible (infeasible) solution or may have
unbounded solution. If the intersection of the constraints is empty and the problem has no
feasible solution. Therefore the given L.P.P has no solution.
i. Linear programming is applicable only to problems where the constraints and objective
function are linear i.e., where they can be expressed as equations which represent straight
lines. In real life situations, when constraints or objective functions are not linear, this
technique cannot be used.
ii. Factors such as uncertainty, weather conditions etc. are not taken into consideration.
Example:
A company owns a small paint factory that produces both interior and exterior paints for whole
sale distribution; Basic raw material A & B are used. The daily requirements are shown in the
table.
Market survey shows that the daily demand for I.P cannot exceed the E.P by more than 1 ton.
The survey also revealed that the maximum demand for I.P is limited to 2 ton only. The whole
sale price per Ton is 3000 for exterior paint and 2000 for interior paint.
2- Objective Function:
3- Constraints:
X1 + 2X2 ≤ 6 --- 1
2X1 + X2 ≤ 8 --- 2
X2 ≤ X1 + 1 --- 3
X2 ≤ 2 --- 4
X1 = 10/3, X2 = 4/3
6- Maximum Profit:
Set “Problem Title”, “No of variables” and “No. of Constraints” as per your requirement and
press “Enter”
As per data of Example 1,we have to Enter following values in Tora as shown below:
Lab Task: Find Optimal Solution of the following problem using Tora and prepare a lab report
on it!
Problem: “Al-Hussain Leather Manufacturers Limited” produces two types of belts, Belt A &
Belt B, Each type requires 1 square yard of leather. Belt B requires 1 hour of labor and Belt A
requires 2 Hour of labor.
Each week 40 Sq-Yd of Leather and 60 hours of labor are available.
Maximize the Profit if profit on B = 3 rupees and profit on A = 4 rupees.