Professional Documents
Culture Documents
Solution
Let
• x be the number of units of X produced in the current week
• y be the number of units of Y produced in the current week
then the constraints are:
• 50x + 24y <= 40(60) machine A time
• 30x + 33y <= 35(60) machine B time
• x >= 75 - 30
• i.e. x >= 45 so production of X >= demand (75) - initial stock (30), which
ensures we meet demand
• y >= 95 - 90
• i.e. y >= 5 so production of Y >= demand (95) - initial stock (90), which
ensures we meet demand
The objective is: maximize (x+30-75) + (y+90-95) = (x+y-50)
i.e. to maximize the number of units left in stock at the end of the week
It is plain from the diagram below that the maximum occurs at the intersection of
x=45 and 50x + 24y = 2400
Solving simultaneously, rather than by reading values off the graph, we have that x=45
and y=6.25 with the value of the objective function being 1.25
Linear Programming
Simplex Method
• Step 1: Establish a given problem. (i.e.,) write the inequality constraints and objective function.
• Step 2: Convert the given inequalities to equations by adding the slack variable to each inequality
expression.
• Step 3: Create the initial simplex tableau. Write the objective function at the bottom row. Here, each
inequality constraint appears in its own row. Now, we can represent the problem in the form of an
augmented matrix, which is called the initial simplex tableau.
• Step 4: Identify the greatest negative entry in the bottom row, which helps to identify the pivot
column. The greatest negative entry in the bottom row defines the largest coefficient in the
objective function, which will help us to increase the value of the objective function as fastest as
possible.
• Step 5: Compute the quotients. To calculate the quotient, we need to divide the entries in the far
right column by the entries in the first column, excluding the bottom row. The smallest quotient
identifies the row. The row identified in this step and the element identified in the step will be taken
as the pivot element.
• Step 6: Carry out pivoting to make all other entries in column is zero.
• Step 7: If there are no negative entries in the bottom row, end the process. Otherwise, start from
step 4.
• Step 8: Finally, determine the solution associated with the final simplex tableau.
Calculate the maximal and minimal value of z = 5x + 3y for the following constraints.
x + 2y ≤ 14
3x – y ≥ 0
x–y≤2
Solution:
The three inequalities indicate the constraints. The area of the plane that will be marked is
the feasible region.
The optimization equation (z) = 5x + 3y. You have to find the (x,y) corner points that give the
largest and smallest values of z.
To begin with, first solve each inequality.
x + 2y ≤ 14 ⇒ y ≤ -(1/2)x + 7
3x – y ≥ 0 ⇒ y ≤ 3x
x–y≤2⇒y≥x–2
Here is the graph for the above equations.
Now pair the lines to form a system of
linear equations to find the corner points.
y = -(½) x + 7
y = 3x
Solving the above equations, we get the corner points as (2, 6)
y = -1/2 x + 7
y=x–2
Solving the above equations, we get the corner points as (6, 4)
y = 3x
y=x–2
Solving the above equations, we get the corner points as (-1, -3)
For linear systems, the maximum and minimum values of the optimization equation lie on
the corners of the feasibility region. Therefore, to find the optimum solution, you only need
to plug these three points in z = 3x + 4y
z = 5(2) + 3(6) = 10 + 18 = 28
z = 5(6) + 3(4) = 30 + 12 = 42
z = 5(-1) + 3(-3) = -5 -9 = -14
Hence, the maximum of z = 42 lies at (6, 4) and the minimum of z = -14 lies at (-1, -3)
THE BIG M METHOD
The starting point of the big-M method is a basic solution that is feasible to the
artificial problem. This solution allows us to start the Simplex algorithm
expeditiously, but it is not a feasible solution to the original problem. Our goal is to
iterate toward solutions that are inside the original feasible set, assuming that it is
not empty.
If an LP has any > or = constraints, the Big M method or the two-phase simplex method may
be used to solve the problem.
If an LP has only < or = constraints, Simplex method is only used.
The Big - M method is another method of removing artificial variables from the
basis. In this method we assign coefficients to artificial variables, undesirable from
the objective function. If objective function Z is to be minimized, then a very large
positive price (called penalty) is assigned to each artificial variable. Similarly, if Z is
to be maximized, then a very large negative price (also called penalty) is assigned
to each of these variables. The penalty will designated by −M for a maximization
problem and +M for a minimization problem, where M > 0.
Steps of Big-M method of LPP
Step-1: At first we have to express the a Linear
Programming Problem (LPP) to its standard form.
Step-2: Add artificial variable Ri to the left hand side
of all constraints of the form = or ≥ types of original
LP.
Step-3: We continue with the regular steps of
simplex method.
Step-4: While making iterations using simplex
method, one of the following cases may arise-
Case-i: If no artificial variable remains in the positive
levels and the optimality condition is satisfied, then
the solution is optimal.
Case-ii: When big M simplex method terminates with
an optimum table, it is sometimes possible for one
or more artificial variables to remain in the basis as
basic variables. It implies that the original problem is
infeasible.
Transportation problem
The transportation problem is a special type of linear programming problem where the
objective consists in minimizing transportation cost of a given commodity from a number
of sources or origins (e.g. factory, manufacturing facility) to a number of destinations (e.g.
warehouse, store). Each source has a limited supply (i.e. maximum number of products
that can be sent from it) while each destination has a demand to be satisfied (i.e.
minimum number of products that need to be shipped to it).
North West Corner Rule
Step 1: Select the upper-left cell, i.e., the north-west corner cell of the
transportation matrix and assign the minimum value of supply or demand, i.e.,
min(supply, demand).
Step 2: Subtract the above minimum value from Oi and Di of the corresponding
row and column. Here, we may get three possibilities, as given below.
If the supply is equal to 0, strike that row and move down to the next cell.
If the demand equals 0, strike that column and move right to the next cell.
If supply and demand are 0, then strike both row and column and move
diagonally to the next cell.
Step 3: Repeat these steps until all the supply and demand values are 0.
Question:
Get an initial basic feasible solution to the given transportation problem using the North-west
corner rule.
Solution:
For the given transportation problem, total supply = 950 and total demand = 950.
Thus, the given problem is the balanced transportation problem.
Now, we can proceed with the North-west corner rule to find the initial feasible solution.
Step 1: Consider the upper-left corner cell, which has the value 11. The minimum value of the
corresponding cell’s supply and demand is 200.
Step 2: The difference between the corresponding cell’s supply and demand from the
minimum value obtained in the previous step is:
Supply = 250 – 200 = 50
Demand = 200 – 200 = 0
As demand is 0, we need to allocate 200 to that cell and strike the corresponding column and
then move right to the next cell, i.e., the cell with the value 13.
Step 3: For the cell with value 13, the minimum of supply and demand is min(50, 225) = 50.
Step 4: The difference between the corresponding cell’s supply and demand from the minimum
value obtained in the previous step is:
Supply = 50 – 50 = 0
Demand = 225 – 50 = 175
As the supply is 0, we need to allocate 50 to that cell and strike the corresponding column and
then move down to the next cell, i.e., the cell with the value 18.
Step 5: For the cell with value 18, the minimum of supply and demand is min(300, 175) = 175.
Step 6: The difference between the corresponding cell’s supply and demand from the
minimum value obtained in the previous step is:
Supply = 300 – 175 = 125
Demand = 175 – 175 = 0
As demand is 0, we need to allocate 175 to that cell and strike the corresponding column and
then move right to the next cell, i.e., the cell with the value 14.
Step 7: For the cell with value 14, the minimum of supply and demand is min(125, 275) = 125.
Step 8: The difference between the corresponding cell’s supply and demand from the
minimum value obtained in the previous step is:
Supply = 125 – 125 = 0
Demand = 275 – 125 = 150
As the supply is 0, we need to allocate 125 to that cell and strike the corresponding column
and then move down to the next cell, i.e., the cell with the value 13.
Step 9: For the cell with value 13, the minimum of supply and demand is min(400, 150) =
150.
Step 10: The difference between the corresponding cell’s supply and demand from the
minimum value obtained in the previous step is:
Supply = 400 – 150 = 250
Demand = 150 – 150 = 0
As demand is 0, we need to allocate 125 to that cell and then move right to the next cell,
i.e., the cell with the value 10. Here, we don’t get any further cells to strike off.
Also, we can see that the corresponding supply and demand for the left-out cell with the
value 10 are equal. Now allocate the supply or demand value to that cell. Therefore, we
can get 0’s for all supplies and demands.
FINAL TABLE
Now, we should calculate the total minimum cost using the allocated values and the
corresponding cell values.
Therefore, the total cost = (200 × 11) + (50 × 13) + (175 × 18) + (125 × 14) + (150 × 13) + (250
× 10)
QUESTION
→ Transportation cost
=(1×40)+(3×40)+(3×20)+(6×30)+(2×
40)
=Rs 480
FINAL TABLE
VOGGAL’S APPROXIMATION METHOD
Below are the steps involved in Vogel’s approximation method of finding the feasible
solution to a transportation problem.
Step 1: Identify the two lowest costs in each row and column of the given cost matrix
and then write the absolute row and column difference. These differences are called
penalties.
Step 2: Identify the row or column with the maximum penalty and assign the
corresponding cell’s min(supply, demand). If two or more columns or rows have the
same maximum penalty, then we can choose one among them as per our
convenience.
Step 3: If the assignment in the previous satisfies the supply at the origin, delete the
corresponding row. If it satisfies the demand at that destination, delete the
corresponding column.
Step 4: Stop the procedure if supply at each origin is 0, i.e., every supply is exhausted,
and demand at each destination is 0, i.e., every demand is satisfying. If not, repeat the
above steps, i.e., from step 1.
What is Modi method introduction?
→ In Stepping stone method there are 'm' rows and 'n' columns, so the total number
of unoccupied cell will be equal to m⋅n−(m+n−1).
→ Thus, total number of loops increases, which increases calculation and it will be
more time consuming.
→ Moreover in MODI method, cell evaluations of all the unoccupied cells are
calculated simultaneously and only one closed path for the most negative cell is
traced.
→ Thus, it saves time over Stepping stone method.
Question : Check optimality of the basic feasible solution given below by using MODI
method.
→ Vacant cell evaluation is carried out by taking difference for each unoccupied call.
∴Evaluation of cell=Cij−(ui+vj)
where,Cij=Value of unoccupied cell.
(i) Positive (+) → then the current basic feasible solution (BFS) is
optimal and stop the procedure. If we alter the present solution, the
solution will become poorer.
(ii) Zero (0) → then also the current basic feasible solution (BFS) is
optimal, but alternate allocation are possible with same
transportation cost.
(iii) Negative (-) → then the obtained solution is not optimal and
further improvement is possible.
1. Maximax
This is for optimists. Examine only the best possible outcome for each
alternative . Choose that alternative with the best possible outcome .
2. Maximin (or Minimax)
This is for pessimists . Examine only the worst possible outcome for each
alternative . Choose that alternative having the best of the worst possible
outcomes.
3. Minimax Regret
This is also for pessimists . Figure out what your maximum "regret"
could be for each alternative . That is, for each alternative, figure out
how much worse, at most, the outcome can be for that alternative
compared to the other alternatives . Choose that alternative with the
minimum regret.
4. Coefficient of Optimism Criterion (Hurwicz Rule)
This allows you to choose how much of an optimist or pessimist you want
to be . Choose a number (r) between 0 (pure pessimist) and 1 (pure
optimist). For each alternative compute a weighted average of the best
and worst outcomes for that alternative :
weighted average = r(best outcome) + (1-r)(worst outcome)
Choose the alternative that has the highest weighted average.
5 . Maximize Average Payoff (Likelihood Criterion)
Average all the possible outcomes for each alternative .
6. Maximize Expected Value
This requires knowing the probability of each chance outcome (state of nature).
Some people refer to this situation as decision-making under risk. This is the criterion
used in analyzing decision trees. Compute the expected value of each alternative by
multiplying, for each outcome, the probability times the payoff, and summing them
all . Choose the alternative with the highest expected value
Decision Tree approach & its
applications
Applications of Decision Trees
1. Assessing prospective growth opportunities
One of the applications of decision trees involves evaluating prospective growth
opportunities for businesses based on historical data. Historical data on sales can be
used in decision trees that may lead to making radical changes in the strategy of a
business to help aid expansion and growth.
Decision trees can also be used in operations research in planning logistics and
strategic management.
Advantages of Decision Trees
1. Easy to read and interpret
One of the advantages of decision trees is that their outputs are easy to read and
interpret without requiring statistical knowledge. For example, when using decision
trees to present demographic information on customers, the marketing department
staff can read and interpret the graphical representation of the data without requiring
statistical knowledge.
2.Easy to prepare
Compared to other decision techniques, decision trees take less effort for data
preparation. However, users need to have ready information to create new variables
with the power to predict the target variable. They can also create classifications of
data without having to compute complex calculations. For complex situations, users
can combine decision trees with other methods.