MC0079
MC0079
MC0079
Many industrial and business situations are concerned with planning activities. In each
case of planning, there are limited sources, such as men, machines, material and capital at
the disposal of the planner. One has to make decision regarding these resources in order
to either maximize production, or minimize the cost of production or maximize the profit
etc. These problems are referred to as the problems of constrained optimization. Linear
programming is a technique for determining an optimal schedule of interdependent
activities, for the given resources. Programming thus means planning and refers to the
process of decision-making regarding particular plan of action amongst several available
alternatives.
- Decision Variables,
- Objective function,
- Constraints.
The decision variables are the unknowns to be determined from the solution of the model.
The parameters represent the controlled variables of the system.
This defines the measure of effectiveness of the system as a mathematical function of its
decision variables. The optimal solution to the model is obtained when the corresponding
values of the decision variable yield the best value of the objective function while
satisfying all constraints. Thus the objective function acts as an indicator for the
achievement of the optimal solution.
- Minimization of cost
- Minimization of overtime
1.6.3 Constraints
To account for the physical limitations of the system, the model must include constraints,
which limit the decision variables to their feasible range or permissible values. These are
expressed in the form of constraining mathematical functions.
For example, in chemical industries, restrictions come from the government about
throwing gases in the environment. Restrictions from sales department about the
marketability of some products are also treated as constraints. A linear programming
problem then has a set of constraints in practice.
g i (x 1, x 2 —– x n) ~ b i, i = 1, 2, —- m
and xJ 0 j = 1, 2, 3 —- n where ~ is , or =.
ii) If x2 = 0, then the basis matrix is B = . In this case, x1 + x3 = 4, 2x1 + 5x3 = 5.If
Therefore
iii) (x1, x2) = (2, 1) are only the collection of all basic solutions.
Answer:
Rewriting in the standard form
2x1 + x2 + S2 = 3
x2 + 4x3 + x4 + S3 = 3
\X0 = = C0 =
x1 enters the new basic set replacing S2, the third iteration gives the following table:
Since all elements of the last row are non-negative, the optimal solution is Z =
Ans: A firm owns facilities at six places. It has manufacturing pants at places A, B, and
C with daily production of 50, 40 and 60 units respectively. At point D, E and F it has
three warehouses with daily demands of 20, 95 and 35 units respectively. Per unit
shipping costs are given in the following table. If the firm wants to minimize its total
transportation cost, how should it route its products?
Solution: We use the North West corner rule for the initial basic feasible solution, given
in the following table and the basic cell are represented in right top square box.
4 and u3 = 0.
Next we calculate = ui + vj – cij values which are given in the left bottom squares
(opportunity costs).
Now
Therefore the cell (2, 1) has the largest positive opportunity cost and so select x21 for
inclusion as the basic variable. The closed loop (indicated in arrows in the above table)
starting with cell (2, 1).
This solution is tested for optimality and is found to be non-optimal. Here the cell (1, 3)
has positive opportunity cost and so a closed loop is traced starting with this.
The resulting solution, when tested is found to be optimal (given in the following table).
(observe that in this table no opportunity cost is positive).
Therefore the optimal transportation cost is
Solution:
Step 1: The minimum value of each row is subtracted from all elements in the row. It is
shown in the reduced cost table, which is also called the opportunity cost table.
Step 2: For each column of this table, the minimum value is subtracted from all the other
values. Clearly, the columns that contain a zero would remain unaffected by this
operation. Here only the fourth column values would change. Consider the following
table.
Step 3: Draw the minimum number of lines covering all zeros. As a general rule, we
should first cover those rows/columns which contain larger number of zeros. The
following table shows reduced cost and the lines are drawn.
Assignments are made in the following order. Rows 1, 3 and 4 contain only one zero
each. So assign 1-B, 3.-C, and 4-A. Since worker 1 has been assigned job B, we cross
the zero in the second column of the second row. After making these assignments, only
worker 2 and job D are left for assignment. The final pattern of assignments is 1-B, 2-D,
3-C, and 4-A, involving a total time of 40 + 55 + 48 + 41 = 184 minutes.
6. Write briefly about the concept “Probability and Cost Consideration in Project
Scheduling” with examples wherever necessary?
Answer:
Probability and Cost Consideration in Project Scheduling
The analysis in CPM does not take into the case where time estimates for the different
activities are probabilistic. Also it does not consider explicitly the cost of schedules. Here
we will consider both probability and cost aspects in project scheduling.
a = The optimistsic time, which will be required if the execution of the project goes
extremely well.
The most likely estimate m need not coincide with mid-point of a and b. Then the
i.e. .
This estimate can be used to study the single estimate D in the critical path calculation.
V= .
The earliest expected times for the node i denoted by E(mi) for each node i is obtained
by taking the sum of expected times of all activities leading to the node i, when more
than one activity leads to a node i, then greatest of all E(mi) is chosen . Let mi be the
earliest occurrence time of the event i, we can consider mi as a random variable.
Assuming that all activities of the network are statistical independent, we can calculate
the mean and the variance of the as follows = .
Where K defines the activities along the largest path leading to i.
For the latest expected time, we consider the last node. Now for each path move
minimum of {E[LJ) – ] for all J for which the activities (i, j) is defined.
Note: The probability distribution of times for completing an event can be approximated
by the normal distribution due to central limit theorem.
Since represents the earliest occurrence time, event will meet a certain schedule
time STi (specified by an analyst) with probability
= Pr
= Pr (Z Ki)
Example: A project is represented by the network shown below and has the following
data.
Task A B C D E F G H I
Optimistic Time 5 18 26 16 15 6 7 7 3
Pessimistic Time 10 22 40 20 25 12 12 9 5
Most Likely Time 8 20 33 18 20 9 10 8 4
d) The probability of an event occurring at the proposed completion data if the original
contract time of completing the project is 41.5 weeks.
e) The duration of the project that will have 96% channel of being completed.
Solution:
a) Using the formula we can calculate expected activity times and variance in the
following table
Activity a B m v
6-7 3 5 4 0.111
Forward Pass:
Backward Pass:
c) The critical path is shown by thick line in fig. The critical path is 1-4-7 and the earliest
completion time for the project is 42.8 weeks.
d) The last event 7 will occur only after 42.8 weeks. For this we require only the duration
of critical activities. This will help us in calculating the standard duration of the last event.
Thus the probability that the project can be completed in less than or equal to 41.5
weeks is 0.30. In other words probably that the project will get delayed beyond 41.5
weeks is 0.70.
e) iven that P (Z Ki) = 0.95. But Z0.9S = 1.6 u, from normal distribution table. Then
1.6 u =
Example: A project is represented by the network shown below and has the following
data.
Solution:
= 1/3
= 1/12
r=
For multichannel queues, < 1, to ensure that the queue does not explode.
Therefore c > 4
When c = 6, Po = .
2x2 + x3 = 7
x1 + x2 + x4 = 7
2x1 + x5 = 11
Step 2: Ignoring the integer condition, we get the initial simplex table as follows:
Introducing x2 and leaving x3 from the basis, we get
Optimum table
The optimum solution thus got is: .
Step 3: Since the optimum solution obtained above is not an integer solution, we must
go to next step.
= max
Since in this problem, the x2 – equation and x1-equation both have the same value of fBi
Step 5: To apply dual simplex method. Now, in order to remove the infeasibility of the
optimum solution:
table. Thus dropping G1 and introducing x3. We get the following dual simplex table.
Finally we get the integer optimum solution to the given IPP as x1 = 4, x2 = 3 and max z
= 10.
3. Reduce the following game by dominance and find the game value
Player B
I II III IV
I 3 2 4 0
II 3 4 2 4
Player
III 4 2 4 0
A IV 0 4 0 8
Solution: This matrix has no saddle point. We reduce the size of the matrix by the
principle of dominance.
From player’s A’s point of view, row I is dominated by row III. Therefore row I is deleted
and the reduced matrix is
From B’s point of view, column I is dominated by III. Therefore column I is deleted and
so the matrix becomes
II III IV
II 4 2 4
III 2 4 0
IV 4 0 8
In the above matrix no single row (or column) dominates another row (column). But
column II is dominated by the average of column III and IV which is
Hence column II is deleted. Therefore the reduced matrix is
III IV
II 2 4
III 4 0
IV 0 8
Again row II is dominated by the average of III and IV rows, which gives
III IV
III 4 0
IV 0 8
The above 2 ´ 2 matrix has no saddle point. It can be solved by the arithmetic method.
2. The use of computer simulation for studying the likely behavior of the nuclear reactors
during accidents is case in point. Clearly testing actual reactors are even scaled down
reactor models under emergency conditions would involve excessive risks.
4. Like in the case of other O.R. models, with the help of simulation, the manager tries to
strike a balance between opposing costs of providing facilities (which usually mean long
term commitment of funds) and the opportunity and other costs of not providing them.
5. A firm engaged in producing 2 models viz., model A and model B, performs
only 3 operations painting, assembly and testing. The relevant data are as
follows
Unit Sale Price Hours required for each unit
Assembly Painting Testing
Model A Rs 1.0 0.2 0.0
50.00
Model B Rs 1.5 0.2 0.1
80.00
Since the objective (goal) of the firm is to maximize its revenue, the model can be stated
as follows:
Subject to
and
x1 ³ 0, x2 ³ 0 – Non-negativity conditions.
Answer:
Simplex Algorithm
1) Locate the most negative number in the last (bottom) row of the simplex table,
excluding that of last column and call the column in which this number appears as the
work (pivot) column.
2) Form ratios by dividing each positive number in the work column, excluding that of the
last row into the element in the same row and last column. Designate that element in the
work column that yields the smallest ratio as the pivot element. If more than one
element yields the same smallest ratio choose arbitrarily one of them. If no element in
the work column is non negative the program has no solution.
3) Use elementary row operations to convert the pivot element to unity (1) and then
reduce all other elements in the work column to zero.
4) Replace the x -variable in the pivot row and first column by x-variable in the first row
pivot column. The variable which is to be replaced is called the outgoing variable and the
variable that replaces is called the incoming variable. This new first column is the current
set of basic variables.
5) Repeat steps 1 through 4 until there are no negative numbers in the last row
excluding the last column.
6) The optimal solution is obtained by assigning to each variable in the first column that
value in the corresponding row and last column. All other variables are considered as
non-basic and have assigned value zero. The associated optimal value of the objective
function is the number in the last row and last column for a maximization program but
the negative of this number for a minimization problem.
3.4.2 Simplex Method Flowchart
Note:
1. The pivot column is the column with the most negative value in the objective function.
If there are no negatives, stop, you’re done.
2. Find the ratios between the non-negative entries in the right hand side and the
positive entries in the pivot column. If there are no positive entries, stop, there is no
solution.
3. The pivot row is the row with the smallest non-negative ratio. Zero counts as a non-
negative ratio.
5. Go back to step 1 until there are no more negatives in the bottom row.
Problems:
x1, x2, x3 0.
x1 + 2x2 + 3x3 + S1 = 9
Since there are three Zj – Cj which are negative, the solution is not optimal.
We choose the most negative of these i.e. – 9, the corresponding column vector x2
enters the basis replacing S1, since ratio is minimum. We use elementary row operations
to reduce the pivot element to 1 and other elements of work column to zero.
First Iteration – The variable x1 becomes a basic variable replacing S1. The following
table is obtained.
Since all elements of the last row are non-negative the optimal solution is obtained. The
Subject to x1 + 3x2 + x4 4
2x1 + x2 3
x2 + 4x3 + x4 3
Subject to x1 + 3x2 + x4 + S1 = 4
2x1 + x2 + S2 = 3
x2 + 4x3 + x4 + S3 = 3
\X0 = = C0 =
x3 enters the new basic set replacing S3, the second iteration gives the following table :
x1 enters the new basic set replacing S2, the third iteration gives the following table:
Since all elements of the last row are non-negative, the optimal solution is Z =