QT Note 3
QT Note 3
Before discussing the basic concepts and applications of linear programming, it is important to
understand the meaning of the words – linear and programming. The word linear refers to linear
relationship among variables in a model. That is, a given change in one variable causes a
proportional change in another variable. For example, doubling the investment on a certain
project will also double the rate of return. The word programming refers to the mathematical
modelling and solving of a problem that involves the use of limited resources, by choosing a
particular course of action (or strategy) among the given courses of action (or strategies) in order
to achieve the desired objective.
Optimal solution: Any feasible solution which maximizes or minimizes the objective function is
called an optimal solution.
(v). Find out the bounded region covered, which is against the inequality.
(vi). after selecting the region select option point in that shaded region.
(vii). Put that points in Zmax or Zmin and evaluate the answer accordingly.
Simplex method examines corner points of the feasible region, using matrix row operations,
until an optimal solution is found.
1). Slack Variable: - When the inequality is given in the form of ≤ then we introduce or add one
slack variable in the inequality to convert it equality.
2). Surplus Variable: - When the inequality is given in the form of ≥ then we subtract one
surplus and add one artificial variable on the inequality to convert it into equality.
3). Artificial variable: - When the inequality is given in the form of (=) then add one artificial
variable in the inequality to convert it equality.
Step 1. Convert the inequality in the form of equality with the help of variables.
Step 4. (Ci Z )
Condition 1: -If all the ≤0 then this is known as optimal solution.
Condition 2: if all the is not less than equal to zero then this is not an optimal solution. Then
to obtain the optimal solution follows these steps:-
Note :- Key element should always be 1. With respect to key element remaining element with in
the selected column should be zero.
BIG M-Method: -
•In case of Z minimization the Solution will be optimal when (CJ - Z) ≥0. Rest the
process remains the same as in Zmax problem.
Case II: - Zmin: - then all the inequality in constraints should be more than or
equal (≥) if not then multiply that constraint with (-1) and change the inequality.
Case III: - If Inequality is given in the form of equality then break the equation in 2
inequality one is in >= sign and another in <= sign.
Case IV: - If one of the variable is given in unrestricted form then make it
restricted by doing eg if X3 then write it as x3’ –x3”
Step 2:- Write all the constraint in matrix form: -for eg.
Step 3:- Take a transpose of the matrix.
Step 4: - Change the variable.
Step 5: - Change the RHS value with the objective function coefficient.
Step 6: -RHS constants of the constraints to write new objective function.
Transportation
Step 2:- Start the problem from the first cell of the given transportation.
Step 3:- Fill according to demand & supply, all the cells.
Step 4:- multiply all the cells from the cost, which are occupied with D & S.
Step 1:- Demand and supply should be equal in problem if D≠ S then we introduces a dummy
row or dummy column to balance the D=S.
Step 2:- start the problem from the min cost given in the cell. Fill whole demand and supply
within it.
Step 3:- Multiply all the cost of occupied cell and add them for T.C.
Step 1:- Demand and supply should be equal in problem if D≠ S then we introduces a dummy
row or dummy column to balance the D=S.
Step 2:- Calculate penalty with the help of 2 min cost difference.
Step 3:- Select max penalty (Do until all Demand and supply filled).
(i) Insert a new row and new column named as ui and VJ.
(ii) Calculate the value of ui and vj with help of occupied cells. (Do one value zero in which)
(i) Draw loop with the help of negative sign and run it from occupied cell to
occupied cell.
of .
(iii) After plotting a loop select at least value within that loop from occupied
cell and subtract it in alternative form (+,-,+,-) and draw a new table and
again calculate ui and vj and until is obtain.
Case: -. M+N-1≠ occupied cells. If No then this is known as degeneracy. To make it non
degeneracy we have to add one € as a small quantity which tends to zero. At the min cost place
and the position should be independent.
Step 2: - i. Draw a closed path (or loop) from an unoccupied cell. The right angle turn in this path
is allowed only at occupied cells and at the original unoccupied cell. Mark (+) and (-) sign
alternatively at each corner, starting from the original unoccupied cell.
ii. Add the transportation costs of each cell traced in the closed path. This is called net cost
change. iii. Repeat this for all other unoccupied cells.
Step 3: -i if all the net cost change are ≥0, an optimal solution has been reached. Now stop this
procedure.
ii. If not then select the unoccupied cell having the highest negative net cost change and draw a
closed path.
Step 4: -i. Select minimum allocated value among all negative position (-) on closed path.
ii. Assign this value to selected unoccupied cell (So unoccupied cell becomes occupied cell).
iii. Add this value to the other occupied cells marked with (+) sign.
iv. Subtract this value to the other occupied cells marked with (-) sign.
Step 5: -Repeat Step-2 to step-4 until optimal solution is obtained. This procedure stops when all
net cost change ≥0 for unoccupied cells.
Maximization in Transportation
•There are certain types of transportation problems where the objective function is to be
maximized instead of being minimized. These problems can be solved by converting the
maximization problem into a minimization problem
•Converting the profit matrix to an equivalent loss matrix by subtracting all the profit values
from the highest value.