Optimization Technique Answers
Optimization Technique Answers
Maximize: Z=2x+5y
x≤400
y≤300
x+y≤600
This model will help determine the optimal number of type A and type B shirts to be stocked to
maximize the total profit while considering the constraints on sales and storage capacity.
2) One unit of product A contributes Rs. 7 and requires 3 units of raw material and 2 hours of
labor.One unit of product B contributes Rs. 5 and requires one unit of raw material and one
hour of labor. Availability of raw material at present is 48 units and there are 40 hours of labor.
Formulate this problem as a linear programming problem.
Maximize: Z=7x+5y
2x+y≤40
This model helps determine the optimal number of units of product A and product B to
produce in order to maximize the total contribution (profit) while considering the
constraints on raw material availability and labor hours.
3. A trucking firm has received an order to move 3,000 tonnes of industrial material to a
destination 1,000 km away. The firm has available, at the moment, a fleet of 150 class-A
15-tonne trailer trucks and another fleet of 100 class-B 10-tonne trailer trucks. The operating
costs of these trucks are Rs 3 and Rs 4 per tonne per km, respectively. Based on past
experience, the firm has a policy of retaining at least one class-A truck with every two class-B
trucks in reserve. It is desired to know how many of these two classes of vehicles should be
dispatched to move the material at minimal operating costs. Formulate this problem as an LP
model.
Ans: x = number of class-A 15-tonne trailer trucks to be dispatched
y = number of class-B 10-tonne trailer trucks to be dispatched
The operating cost for class-A trucks is Rs 3 per tonne per km, and for class-B trucks,
it's Rs 4 per tonne per km. The total distance to be covered is 1,000 km for moving 3,000
tonnes.
This model helps determine the optimal number of class-A and class-B trucks to be
dispatched to move the material at minimal operating costs while considering the
constraints on truck availability, weight capacity, and the policy of retaining trucks.
Ans:
The North West Corner (NWC) method is a technique used to find the initial feasible
solution for a transportation problem. In this method, you start from the top-left corner
(North West corner) of the transportation table and allocate shipments as much as
possible according to the supply and demand.
Supply D1 D2 D3 Demand
O1 1 2 6 7
O2 0 4 2 12
O3 3 1 5 11
Demand 10 10 10
Starting with the North West corner (O1, D1), allocate as much as possible while
considering the supply and demand:
Supply D1 D2 D3 Demand
O1 1 2 6 0
O2 0 4 2 12
O3 3 1 5 11
Demand 3 10 10
Move to the next cell (O1, D2) and allocate the maximum possible:
Supply D1 D2 D3 Demand
O1 1 1 6 0
O2 0 3 2 12
O3 3 1 5 11
Demand 3 7 10
Now, allocate the remaining supply from O1 to D3:
Supply D1 D2 D3 Demand
O1 1 1 5 0
O2 0 3 2 12
O3 3 1 5 11
Demand 3 7 5
Now, update the supply and demand values. The supply from O1 is exhausted, and the
demand for D3 is met. There is unfulfilled demand at D2 for O2 and O3. There is
unfulfilled supply at O3 for D2.
This represents the initial feasible solution using the North West Corner method.
To solve the traveling salesman problem (TSP), let's find the shortest route that visits each city
exactly once and returns to the starting city with the minimum total distance. The given matrix
| | 1 | 2 | 3 | 4 |
|----|-----|-----|-----|-----|
| A | - | 46 | 16 | 40 |
| B | 41 | - | 50 | 40 |
| C | 82 | 32 | - | 60 |
| D | 40 | 40 | 36 | - |
This problem involves finding the shortest path that visits each city exactly once and returns to the
starting city. Given the small number of cities, an approach like brute force or heuristic algorithms
Let's use the brute force approach to check all possible permutations and find the shortest path.
By examining all possible permutations, calculate the total distance for each permutation of the To
solve the traveling salesman problem using brute force, we'll calculate the total distance for all
Given the cities A, B, C, and D, let's compute all permutations and find the shortest path:
The shortest path with the minimum total distance is A -> C -> B -> D -> A with a total distance of
142.
Therefore, the shortest path for the traveling salesman problem in this case is to visit cities in the
order A -> C -> B -> D -> A, with a total distance of 142 units.
6)
A B C D
A - 46 16 40
B 41 - 50 40
C 82 32 - 60
D 40 40 36 -
Let's solve it using a simple brute-force method to find the shortest route.
Start at A.
Calculate all possible routes from A to the other points (B, C, D).
The shortest route among these options is Route 3: A -> C -> B -> D -> A with a total
I II III IV
I -2 0 0 5
II 4 2 1 3
III -4 -3 0 -2
IV 5 3 -4 2
For Player B, they want to maximize their payoff, while Player A wants to minimize
Let's find the optimal strategy for both players using the minimax algorithm:
Player A wants to minimize the maximum payoff that Player B can achieve. For each of
Player A's choices, find the maximum value Player B can get and choose the action that
Player A's best strategy is to choose action III, which gives B a maximum payoff of 0.
Knowing Player A's strategy, Player B wants to maximize their payoff based on Player A's
Player B's best choice for action III (considering Player A's choice):
Player B's best strategy is to choose action III, which gives them a payoff of 0.
So, in this case, the optimal plan for both players is to choose action III.
Let's represent this on a graph. Player A's strategies will be on the x-axis, and Player B's
strategies will be on the y-axis.
First, let's draw the best response lines for both players:
The intersection point is at (2, 2), which corresponds to strategy A2 for Player A and
strategy B2 for Player B.
Therefore, in this game, the optimal strategies for Player A and Player B, according to
the graphical method, are A2 and B2, respectively.
Let's create a network diagram (also known as a PERT chart) based on this information.
In a PERT chart, nodes represent activities, and edges represent the sequence of
activities with their respective durations.
To determine the critical path, we need to find the longest path through the network
because the critical path is the sequence of activities that takes the longest time to
complete.
Each node represents an activity, and the arrows show the sequence of activities. The
numbers in parentheses represent the duration of each activity.
From the diagram:
This network diagram visually represents the dependencies and sequence of activities
within the project, illustrating the flow of tasks and their relationships.
11. Customers arrive at a one-man barber shop according to a Poisson process with a
mean interarrival time of 12 minutes Customers spend an average of 10 minutes in the
barber’s chair.
(i) What is the expected number of customers in the barber’s shop and in the queue?
(ii) How much can a customer expect to spend in the barber’s shop?
Ans:
12. The annual demand for an item is 3200 units. The unit cost is Rs.6/- and inventory
carrying charges 25% per annum. If the cost of one procurement is Rs.150/- determine
the Economic order quantity.
Ans:
1. Solve the following LPP by Graphical method: (10 Marks)
Maximize Z = 3x + 4y
Subject to,
2 X + 2 Y ≤ 80,
2 X + 4 Y ≤ 120
and X, Y>=0
Ans:
2. Use Simplex method to solve
Maximize Z=4x+10y
Subject to, 2x+y ≤ 50
2x+5y ≤ 100
2x+3y ≤ 90
and x, y ≥ 0
Ans:
Now, the most negative coefficient in the Z row is -10 for variable y in the tableau. Since
all coefficients for the decision variables are non-positive, the current solution is
optimal. The maximum value of Z = 400 is achieved at x = 0, y = 20.
3. Use the simplex method to solve the following LP problem. (10 Marks)
Maximize Z = 3x1 + 5x2 + 4x3
subject to the constraints
(i) 2x1 + 3x2 ≤ 8, (ii) 2x2 + 5x3 ≤ 10, (iii) 3x1 + 2x2 + 4x3 ≤ 15
and x1, x2, x3 ≥ 0
To solve the unbalanced transportation problem, we'll use the North-West Corner
Method followed by the Modified Distribution Method to find an initial feasible solution
and then optimize it.
S1 S2 S3 S4 Supply
F1 4 6 8 13 50
F2 70
F3 30
F4 50
Demand 25 35 105 20
Allocate as much as possible from the supply at the northwest corner (F1S1 = 25).
S1 S2 S3 S4 Supply
F1 25 6 8 13 25
F2 70
F3 30
F4 50
Demand 0 35 105 20
Iteration 1:
S1 S2 S3 S4 Supply
F1 25 6 8 13 25
F2 70 45
F3 30
F4 50
Demand 0 35 105 20
Iteration 2:
S1 S2 S3 S4 Supply
F1 25 6 0 13 5
F2 70 45
F3 30 30
F4 50
Demand 0 35 85 20
S1 S2 S3 S4 Supply
F1 25 6 0 13 5
F2 0 70 45
F3 0 0
F4 30 50
Demand 0 35 85 20
Iteration 4:
S1 S2 S3 S4 Supply
F1 25 6 0 13 5
F2 0 35 70 10
F3 0 0
F4 30 50
Demand 0 0 85 20
Iteration 5:
S1 S2 S3 S4 Supply
F1 25 6 0 13 5
F2 10 35 70 0
F3 0 0
F4 30 50
Demand 15 0 85 20
Final Allocation:
S1 S2 S3 S4
F1 15 6 4 13
F2 10 35 70 0
F3 0 0 30 0
F4 0 0 30 20
assignment problems.
M1 M2 M3 M4 M5
J1 9 22 58 11 19
J2 43 78 72 50 63
J3 41 28 91 37 45
J4 74 42 27 49 39
J5 36 11 57 22 25
Subtract the smallest value in each row from all elements in that row.
Subtract the smallest value in each column from all elements in that column.
Cover all zeros using the minimum number of lines (horizontal and vertical).
Find the minimum number of lines required to cover all zeros.
If the number of lines is equal to the number of rows, an optimal assignment is
possible. If not, proceed to step 6.
Determine the smallest uncovered element and subtract it from all uncovered
elements, then add it to all elements intersected by the lines.
Repeat steps 3 to 6 until an optimal assignment is found.
M1 M2 M3 M4 M5
J1 0 13 49 2 10
J2 0 35 29 7 20
J3 0 -13 50 -4 4
M1 M2 M3 M4 M5
J1 0 38 70 31 45
J2 0 60 56 43 58
J3 0 0 63 33 45
J4 0 10 25 0 0
J5 0 14 42 8 14
Subtract 8 from uncovered elements and add 8 to elements intersected by the lines:
M1 M2 M3 M4 M5
J1 8 38 70 31 45
J2 0 60 56 43 58
J3 0 0 63 33 45
J4 0 2 17 0 0
J5 0 6 34 0 6
Step 3: Cover all zeros using the minimum number of lines.
Cover the zeros using the minimum number of lines:
is possible.
Final Assignment:
M1 M2 M3 M4 M5
J1 8
J2 60
J3 63
J4 0 0
J5 0 6
● J1 to M1 (8)
● J2 to M2 (60)
● J3 to M3 (63)
● J4 to M4 (0)
● J5 to M5 (6)
This assignment minimizes the total processing time.
Ans: This problem can be solved using various algorithms, such as the brute-force
method, dynamic programming (like Held-Karp algorithm), or heuristic approaches (like
nearest neighbor or genetic algorithms).
Let's solve it using the brute-force method for this small problem.
A B C D E
A ∞ 2 5 7 1
B 6 ∞ 3 8 2
C 8 7 ∞ 4 7
D 12 4 6 ∞ 5
E 1 3 2 8 ∞
The shortest route with the minimum total distance is A -> E -> B -> C -> D -> A with a
total distance of 13.
Solution:
Player A's strategies (A1, A2) will be plotted on the x-axis, and Player B's strategies (B1,
B2, B3) will be plotted on the y-axis.
Let's denote A1 as x and A2 as y for Player A, and B1, B2, B3 as points on the y-axis for
Player B.
Now, plot these points on a graph with Player A's strategies on the x-axis and Player B's
strategies on the y-axis. Draw lines connecting the points to form a polygon.
After plotting the points and forming the lines, the intersection of the lines will give you
the optimal strategies for both players. The point of intersection represents the optimal
strategy for both players in a zero-sum game.
Solution:
PLAYER B TOTAL OF
ROW
PLAYER A I II III IV
I 3 2 4 0 9
II 3 4 2 4 13
III 4 2 4 0 10
IV 0 4 0 8 12
TOTAL COL 10 12 10 12
In rows, I row is dominating the other rows since it is having the least value.
PLAYER B TOTAL OF
ROW
PLAYER A I II III IV
I 3 2 4 0 9
II 3 4 2 4 13
III 4 2 4 0 10
IV 0 4 0 8 12
TOTAL COL 10 12 10 12
Now lets move on to columns, where we will select the maximum value
PLAYER B TOTAL OF
ROW
PLAYER A I II III IV
I 3 2 4 0 9
II 3 4 2 4 13
III 4 2 4 0 10
IV 0 4 0 8 12
TOTAL COL 10 12 10 12
PLAYER A I III
II 3 2 13
IV 0 0 12
TOTAL COL 10 10
Now in the above table again will select the row which is having least value
Since now only one column is left, so we dont have to calculate the total.
Where,
P1, P2, P3 and P4 are probabilities of strategy 1, 2, 3 and 4 respectively for
player A.
Q1, Q2, Q3, Q4 and Q5 are probabilities of strategy 1, 2, 3, 4 and 5
respectively for player B
For both the players, the total probability is 1.
This project's network diagram is usually represented using the Activity on Node (AON)
diagram or Precedence Diagram Method (PDM). Let's start by drawing the network
diagram based on the given activities and their time estimates:
1-2 (5, 6, 7)
/ \
/ \
1-3 (1, 1, 7) 1-4 (2, 4, 12)
\ /
\ /
\ /
3-5 (1, 1, 1)
\ /
\ /
\ /
2-5 (3, 6, 15)
| |
| |
5-6 (1, 4, 7)
\ /
\/
4-6 (2, 2, 8)
Solution:
1-2 (1, 1, 7)
/ \
/ \
1-3 (1, 4, 7) 1-4 (2, 2, 8)
\ /
\ /
\ /
3-5 (2, 5, 14)
\ /
\ /
\ /
2-5 (1, 1, 1)
| |
| |
5-6 (3, 6, 15)
\ /
\/
4-6 (2, 5, 8)
Solution:
13. The demand for an item is 18,000 units per year. The holding cost per unit time is
Rs. 1.20 and the cost of shortage is Rs. 5.00, the production cost is Rs. 400. Assuming
that replenishment rate is instantaneous, determine the optimal order quantity and
how often to make a production run? And also find the numbers orders per year.
(10marks)
Solution:
14. A manufacturing company purchases 9000 parts of a machine for its annual
requirements, ordering one-month usage at a time. Each part costs Rs. 20. The
ordering cost per order is Rs. 15 and the carrying charges are 15% of the average
inventory per year. You have been assigned to suggest a more economical purchasing
policy for the company. What advice would you offer and how much would it save the
company per year? (10 Marks)
Solution:
15. Automatic car wash facility operates with only one bay. Cars arrive according to a
Poisson process, with mean of 4 cars per hour and may wait in facility’s parking lot if
the bay is busy. If the service time for all cars is constant and equal to 10 minutes,
determine Lq, Ls, Wq and Ws.And also find the Probability of zero arrival in queue.
(10 Marks)
Solution:
16. Given the following information. Arrivals and services follow Poisson process.
Customers arrive at the rate of 8 per hour. Service rate is 10 customers per hour. Then
find
(i) What is the average number of customers waiting for service?
(ii) What is the average time a customer must wait in the queue?
(iii) What is the average time for a customer to be in the system? (10 Marks)
17. Arrivals at a telephone booth are considered to be Poisson with an avg. time 10min
between one arrival and the next. The length of the phone call is assumed to be
distributed exponentially with mean 3 min
(i) Find the average number of persons waiting in the system? and queue?
(ii)What is the prob. that a person arriving at the booth will have to wait in the queue?
(iii) What is the prob. that it will take him more than 10 min altogether to wait for phone
and complete his call?
(iv) Estimate the fraction of the day when the phone will be in use?
Solution:
Solution: