Chapter 1
Linear Programming and Optimization
TU BSc past exam questions
Past questions and answers
19 questions set from this chapter, 1 of them more than once. Most repeated first.
- Asked 2 times
- 2078 · Operations Research (STA.304) Elective · 5 marks
- 2076 · Operations Research (STA.304) Elective
Describe the objective of linear programming.
Answer
Objective of Linear Programming
The objective of linear programming (LP) is to find the best possible (optimal) solution to a problem in which limited resources must be allocated among competing activities. In formal terms, LP seeks to maximize or minimize a linear objective function subject to a set of linear constraints and non-negativity restrictions.
The main objectives are:
-
Optimal allocation of scarce resources — To use limited resources such as labour, money, time, materials, and machine capacity in the most efficient way so that the desired outcome is achieved.
-
Maximization of profit or contribution — When the goal is profit, LP determines the production or sales mix that yields the highest total profit within the available resources.
-
Minimization of cost, time, or effort — When the goal is economy, LP finds the combination of activities (e.g., transportation routes, diet, staffing) that gives the lowest total cost or the least time.
-
Best possible decision under constraints — It provides a systematic, quantitative basis for choosing among many feasible alternatives, instead of relying on trial and error or intuition.
-
Feasibility and efficiency — It identifies whether a feasible solution exists at all, and among all feasible solutions selects the one that is most efficient with respect to the stated objective.
-
Aid to planning and control — The optimal solution and the shadow prices (dual values) obtained from LP help management in planning resource use, pricing, and deciding where additional capacity would be most valuable.
In short, the objective of linear programming is to optimize (maximize or minimize) a linear objective function over a region defined by linear inequalities, thereby providing the most effective use of available resources.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · Operations Research (STA.304) Elective · 5 marks
Convert the following primal problem into dual problem.
Max.
Subject to
and
Similar questions: Convert the following primal problem into dual (2076 · Operations Research (STA.304) Elective)
Answer
The primal is a maximisation problem with mixed constraints (, , ) and non-negative variables. Take one dual variable per primal constraint.
Primal
subject to
Rules used (primal is Max)
- The dual is a minimisation problem; the primal right-hand sides (3, 180, 80) become the dual objective coefficients.
- The primal objective coefficients (15, 10, 25) become the dual right-hand sides.
- Each primal variable is , so each dual constraint is of the type, and the coefficient matrix is transposed.
- A constraint gives , a constraint gives , and an constraint gives unrestricted in sign.
Dual
subject to
(Equivalently, rewrite the constraint as and let .)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · Operations Research (STA.304) Elective
Convert the following primal problem into dual problem.
Maximize
Subject to
and
Similar questions: Convert the following primal problem into dual (2078 · Operations Research (STA.304) Elective)
Answer
Let me verify the conversion by checking the primal-dual correspondence.
Primal:
- Maximize
- Constraints:
Dual construction:
- Since primal is maximization with constraints and non-negative variables, dual is minimization with constraints and non-negative dual variables.
- Dual variables: (one per primal constraint).
- Dual objective: Minimize (RHS of primal constraints become coefficients).
- Dual constraints: Transpose of primal coefficient matrix, with primal objective coefficients as RHS.
Primal coefficient matrix:
Transpose:
Dual constraints:
This matches the model answer exactly. The model answer is correct and complete.
OK
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · Operations Research (STA.304) Elective · 5 marks
Describe basic differences between CPM and PERT.
Answer
CPM vs PERT
Both CPM (Critical Path Method) and PERT (Program Evaluation and Review Technique) are network-based project management techniques used for planning, scheduling and controlling projects. However, they differ in the following basic ways:
| Basis of difference | CPM | PERT |
|---|---|---|
| Nature of activities | Activities are deterministic — duration is known with certainty from past experience. | Activities are probabilistic — duration is uncertain and estimated as three time values (optimistic, most likely, pessimistic). |
| Time estimate | Single time estimate is used for each activity. | Three time estimates are used; expected time is computed as . |
| Type of project | Suited to repetitive, well-defined projects (e.g., construction, maintenance, civil works). | Suited to non-repetitive, research-type, one-time projects (e.g., R&D, defence, new product development). |
| Focus | Mainly focuses on time–cost trade-off (crashing) and cost optimisation. | Mainly focuses on time uncertainty and probability of meeting a scheduled date. |
| Orientation | Activity-oriented — emphasis on the activities themselves. | Event-oriented — emphasis on events/milestones. |
| Cost control | Cost is directly considered; time–cost relationship is analysed. | Cost is not directly considered; only time is analysed. |
| Result obtained | Gives a deterministic (fixed) critical path and project duration. | Gives an expected duration with a standard deviation, so the probability of completion by a given date can be found. |
| Crashing / crashing cost | Crashing is possible and commonly applied. | Crashing is generally not applied. |
In short: CPM is a deterministic, activity-oriented technique used for repetitive projects where activity times are known, while PERT is a probabilistic, event-oriented technique used for uncertain, one-time projects where activity times are estimated from three values.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · Operations Research (STA.304) Elective · 5 marks
Introduce sequencing problem. Also discuss its assumptions.
Answer
Sequencing Problem
A sequencing problem is a type of operations-research problem in which a number of jobs (tasks) must be processed through a number of machines (or service facilities) in a fixed technological order, and we must decide the order (sequence) in which the jobs should be processed so that some measure of performance is optimised. The most common objective is to minimise the total elapsed time (makespan) — the time from the start of the first job on the first machine to the completion of the last job on the last machine — and/or to minimise the idle time of machines and the waiting time of jobs.
Formally, if there are jobs and machines , and each job must be processed on the machines in the order with known processing times (time of job on machine ), the sequencing problem is to find the permutation of jobs that gives the minimum total elapsed time. A very common special case is the -jobs–2-machines problem, solved by Johnson's rule: job precedes job if .
Assumptions of the Sequencing Problem
- Known processing times — The time taken by each job on each machine is known in advance and is constant (deterministic).
- Fixed order of machines — Every job is processed on the machines in the same technological order; no job can skip a machine or be processed out of order.
- No pre-emption — Once a job starts on a machine, it must be completed without interruption.
- One job at a time on a machine — A machine can process only one job at a time.
- One machine at a time per job — A job cannot be processed on more than one machine simultaneously.
- No passing — Jobs cannot overtake one another; the sequence of jobs remains the same on all machines.
- All jobs available at the start — Every job is ready for processing at time zero (no release dates).
- Machines are available throughout — Machines are never breakdown-prone and are available for the whole period (no breakdowns, no set-up times, or set-up times are included in processing times).
- Independent jobs — Jobs are independent of one another; the processing of one job does not affect another.
- Objective is well defined — The criterion of optimality (usually minimum total elapsed time) is clearly specified.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · Operations Research (STA.304) Elective · 5 marks
A manufacturer has to supply his customer with 100 units of his product per year. Shortages are not allowed and the storage cost amounts to Rs. 6 per unit per year. The set up cost per run is Rs. 40. Find the optimum run size and the minimum average yearly cost.
Answer
Given:
Annual demand, (D = 100) units/year
Holding/storage cost, (C_h = \text{Rs. } 6) per unit per year
Set-up cost per run, (C_o = \text{Rs. } 40)
Shortages are not allowed, so this is the basic EOQ model.
Optimum run size (EOQ):
[ Q^*=\sqrt{\frac{2DC_o}{C_h}} ]
[ Q^*=\sqrt{\frac{2 \times 100 \times 40}{6}} ]
[ Q^*=\sqrt{\frac{8000}{6}} ]
[ Q^*=\sqrt{1333.33}=36.51 \text{ units} ]
So, the optimum run size is approximately:
[ \boxed{Q^* \approx 36.51 \text{ units}} ]
If whole units are required, take (Q^* = 37) units.
Minimum average yearly cost:
[ TC_{\min}=\sqrt{2DC_oC_h} ]
[ TC_{\min}=\sqrt{2 \times 100 \times 40 \times 6} ]
[ TC_{\min}=\sqrt{48000} ]
[ TC_{\min}=219.09 ]
[ \boxed{TC_{\min} \approx \text{Rs. } 219.09 \text{ per year}} ]
So, the optimum run size is about 36.51 units, and the minimum average yearly inventory cost is about Rs. 219.09.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · Operations Research (STA.304) Elective · 5 marks
A project work consists of four job for which 4 contraction have submitted tenders. The tender amounts quoted in lakhs of rupees are given in the matrix from
Job / Contractor 1 2 3 4 a 10 16 12 9 b 24 22 20 26 c 30 28 32 34 d 15 12 10 16
Find the assignment which minimizes the total cost of the project
Answer
This is an assignment problem (4 jobs, 4 contractors, minimise cost, amounts in lakh Rs). Use the Hungarian method.
Step 1: Row reduction (row minima 9, 20, 28, 10)
| Job | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| a | 1 | 7 | 3 | 0 |
| b | 4 | 2 | 0 | 6 |
| c | 2 | 0 | 4 | 6 |
| d | 5 | 2 | 0 | 6 |
Step 2: Column reduction (column minima 1, 0, 0, 0)
| Job | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| a | 0 | 7 | 3 | 0 |
| b | 3 | 2 | 0 | 6 |
| c | 1 | 0 | 4 | 6 |
| d | 4 | 2 | 0 | 6 |
Step 3: Test for optimality. The zeros can be covered by 3 lines (row a, column 2, column 3), fewer than 4, so no complete assignment exists yet. The smallest uncovered element is 1. Subtract 1 from uncovered elements and add 1 at line intersections (a-2, a-3):
| Job | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| a | 0 | 8 | 4 | 0 |
| b | 2 | 2 | 0 | 5 |
| c | 0 | 0 | 4 | 5 |
| d | 3 | 2 | 0 | 5 |
Still only 3 lines are needed (row a, row c, column 3), because b and d both have a zero only in column 3. The smallest uncovered element is 2. Subtract 2 from uncovered elements and add 2 at intersections (a-3, c-3):
| Job | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| a | 0 | 8 | 6 | 0 |
| b | 0 | 0 | 0 | 3 |
| c | 0 | 0 | 6 | 5 |
| d | 1 | 0 | 0 | 3 |
Now 4 lines are needed, so an optimal assignment exists. Row a has zeros in columns 1 and 4, row c in columns 1 and 2, row d in columns 2 and 3, row b in columns 1, 2 and 3. One complete assignment is a-4, c-1, b-3, d-2.
Optimal assignment
| Job | Contractor | Cost (lakh Rs) |
|---|---|---|
| a | 4 | 9 |
| b | 3 | 20 |
| c | 1 | 30 |
| d | 2 | 12 |
An alternative optimum is a-4, b-1, c-2, d-3, costing lakh.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · Operations Research (STA.304) Elective · 5 marks
Draw a network corresponding to the following information. Obtain the early and late start and completion times and determine the critical activities.
Activity 1-2 1-3 2-6 3-4 3-5 4-6 5-6 5-7 6-7 Duration (days) 4 6 8 7 4 6 5 19 10
Answer
Network diagram
No dummy activity is needed. The network is:
4 8
┌────────▶ 2 ───────────────┐
│ ▼
(1) ──┤ (6) ──10──▶ (7)
│ 6 ▲ ▲ ▲
└────▶ (3) ──7──▶ (4) ──6────┘ │ │
│ \ │ │
│ \ 4 5│ 19
│ ▼ │ │
└──▶ (5) ───────────────┘ │
└──────────────────────────┘
Event times
Let (E_i) = earliest event time and (L_i) = latest event time.
Forward pass:
[ E_1=0 ] [ E_2=0+4=4,\qquad E_3=0+6=6 ] [ E_4=6+7=13,\qquad E_5=6+4=10 ] [ E_6=\max(4+8,;13+6,;10+5)=\max(12,19,15)=19 ] [ E_7=\max(10+19,;19+10)=\max(29,29)=29 ]
Backward pass:
[ L_7=29 ] [ L_6=29-10=19 ] [ L_5=\min(19-5,;29-19)=\min(14,10)=10 ] [ L_4=19-6=13 ] [ L_3=\min(13-7,;10-4)=\min(6,6)=6 ] [ L_2=19-8=11 ] [ L_1=\min(11-4,;6-6)=\min(7,0)=0 ]
| Event | Earliest time (E_i) | Latest time (L_i) | Slack (L_i-E_i) |
|---|---|---|---|
| 1 | 0 | 0 | 0 |
| 2 | 4 | 11 | 7 |
| 3 | 6 | 6 | 0 |
| 4 | 13 | 13 | 0 |
| 5 | 10 | 10 | 0 |
| 6 | 19 | 19 | 0 |
| 7 | 29 | 29 | 0 |
Project duration = 29 days.
Activity start and completion times
[ ES=E_i,\qquad EF=ES+d ] [ LF=L_j,\qquad LS=LF-d ] [ \text{Total float}=LS-ES=LF-EF ]
| Activity | Duration (d) | ES | EF | LS | LF | Total float | Critical? |
|---|---|---|---|---|---|---|---|
| 1–2 | 4 | 0 | 4 | 7 | 11 | 7 | No |
| 1–3 | 6 | 0 | 6 | 0 | 6 | 0 | Yes |
| 2–6 | 8 | 4 | 12 | 11 | 19 | 7 | No |
| 3–4 | 7 | 6 | 13 | 6 | 13 | 0 | Yes |
| 3–5 | 4 | 6 | 10 | 6 | 10 | 0 | Yes |
| 4–6 | 6 | 13 | 19 | 13 | 19 | 0 | Yes |
| 5–6 | 5 | 10 | 15 | 14 | 19 | 4 | No |
| 5–7 | 19 | 10 | 29 | 10 | 29 | 0 | Yes |
| 6–7 | 10 | 19 | 29 | 19 | 29 | 0 | Yes |
Critical activities and critical paths
Activities with zero total float are critical:
[ \boxed{1-3,;3-4,;4-6,;6-7,;3-5,;5-7} ]
There are two critical paths:
[ \boxed{1 \to 3 \to 4 \to 6 \to 7} ]
[ \boxed{1 \to 3 \to 5 \to 7} ]
Both have duration:
[ 6+7+6+10=29 ]
[ 6+4+19=29 ]
Hence the project completion time is 29 days.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · Operations Research (STA.304) Elective · 10 marks
A firm manufactures two products A and B. Each unit of A requires 2 kg of raw material and 4 hour of labour for processing, whereas each unit of B requires 3 kg of raw materials and 3 hours of labour. The firm has an availability of 60kg of raw materials and 96 labour hours every week. One unit of A yields Rs. 40 and one unit of B give Rs. 35 as profit. Formulate this problem as a linear programming problem and solve by simplex method.
Answer
1. Formulation of the LPP
Let
= number of units of product A produced per week
= number of units of product B produced per week
Profit per unit: A = Rs. 40, B = Rs. 35.
Maximize total profit:
Subject to the constraints:
Raw material:
Labour hours:
Non-negativity:
2. Standard form
Introduce slack variables and :
Objective function:
3. Initial simplex tableau
| Basic variable | RHS | ||||
|---|---|---|---|---|---|
| 2 | 3 | 1 | 0 | 60 | |
| 4 | 3 | 0 | 1 | 96 | |
| 0 | 0 | 0 |
The most negative entry in the -row is , so enters.
Ratio test:
Minimum ratio is 24, so leaves. Pivot element = 4.
4. First iteration
Divide pivot row by 4:
Update -row:
Update -row:
So the tableau becomes:
| Basic variable | RHS | ||||
|---|---|---|---|---|---|
| 0 | 1 | 12 | |||
| 1 | 0 | 24 | |||
| 0 | 0 | 10 | 960 |
Now the most negative entry in the -row is , so enters.
Ratio test:
Minimum ratio is 8, so leaves. Pivot element = .
5. Second iteration
Divide pivot row by :
Update -row:
Update -row:
Final tableau:
| Basic variable | RHS | ||||
|---|---|---|---|---|---|
| 0 | 1 | 8 | |||
| 1 | 0 | 18 | |||
| 0 | 0 | 1000 |
Since there is no negative entry in the -row, the optimal solution is reached.
6. Optimal solution
Therefore, the firm should produce:
- 18 units of product A
- 8 units of product B
per week to earn the maximum profit of:
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · Operations Research (STA.304) Elective · 10 marks
Everest Construction Company moves material between three plants and project A requires 35 units of material each, project B requires 45 units and project C requires 35 units. Plant X can supply 55 units, plant Y can supply 25 units and plant Z can supply 35 units using the following cost information, obtain the optimal transportation cost.
From To project A To Project B To Project C Plant X $ 54 $ 58 $ 58 Plant Y $16 $24 $16 Plant Z $ 58 $16 $ 524
Answer
Data. Supply: X = 55, Y = 25, Z = 35 (total 115). Demand: A = 35, B = 45, C = 35 (total 115), so the problem is balanced. The cost of Z to C is printed as 524; this is taken as a misprint for 24.
| From \ To | A | B | C | Supply |
|---|---|---|---|---|
| X | 54 | 58 | 58 | 55 |
| Y | 16 | 24 | 16 | 25 |
| Z | 58 | 16 | 24 | 35 |
| Demand | 35 | 45 | 35 | 115 |
Initial solution by Vogel's Approximation Method (VAM)
Penalties (difference of two smallest costs): rows X 4, Y 0, Z 8; columns A 38, B 8, C 8.
- Largest penalty is 38 (column A). Cheapest cell is Y-A = 16. Allocate . Y is exhausted; A needs 10 more.
- Remaining rows X, Z; penalties: rows X 4, Z 8; columns A 4, B 42, C 34. Largest is 42 (column B). Cheapest is Z-B = 16. Allocate 35. Z is exhausted; B needs 10 more.
- Only row X remains: X-A = 10, X-B = 10, X-C = 35.
| From \ To | A | B | C |
|---|---|---|---|
| X | 10 | 10 | 35 |
| Y | 25 | ||
| Z | 35 |
There are allocations.
MODI test. Put . From occupied cells: , , , , .
Opportunity cost for empty cells:
| Cell | |
|---|---|
| Y-B | |
| Y-C | |
| Z-A | |
| Z-C |
Y-C is negative, so the solution is not optimal. The loop is Y-C (+), Y-A (-), X-A (+), X-C (-). The smallest value on the minus cells is . Shift 25 units: Y-C = 25, Y-A = 0, X-A = 35, X-C = 10.
| From \ To | A | B | C |
|---|---|---|---|
| X | 35 | 10 | 10 |
| Y | 25 | ||
| Z | 35 |
Re-test. With : , , , , .
| Cell | |
|---|---|
| Y-A | |
| Y-B | |
| Z-A | |
| Z-C |
All are positive, so the solution is optimal.
Optimal transportation plan: X to A 35, X to B 10, X to C 10, Y to C 25, Z to B 35.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · Operations Research (STA.304) Elective · 10 marks
The following table gives the data for the activities of a small project
Activity 1-2 1-3 2-4 2-6 3-4 3-5 4-5 5-6 Optimistic time 1 5 3 1 8 2 5 2 Most likely time 4 10 3 4 15 4 5 5 pessimistic time 7 17 3 7 26 8 5 8
I. Draw the network and find the expected project completion time.
II. What is the probability that it would take 5 days more than the expected duration?
III. Find the project completion time which will have 95% confidence.
Answer
Expected time and variance of each activity: , .
| Activity | |||||
|---|---|---|---|---|---|
| 1-2 | 1 | 4 | 7 | 4 | 1 |
| 1-3 | 5 | 10 | 17 | 10.33 | 4 |
| 2-4 | 3 | 3 | 3 | 3 | 0 |
| 2-6 | 1 | 4 | 7 | 4 | 1 |
| 3-4 | 8 | 15 | 26 | 15.67 | 9 |
| 3-5 | 2 | 4 | 8 | 4.33 | 1 |
| 4-5 | 5 | 5 | 5 | 5 | 0 |
| 5-6 | 2 | 5 | 8 | 5 | 1 |
I. Network and expected completion time
Nodes 1 to 6 with arcs 1-2, 1-3, 2-4, 2-6, 3-4, 3-5, 4-5, 5-6. The paths from node 1 to node 6 are:
| Path | Length |
|---|---|
| 1-2-6 | |
| 1-2-4-5-6 | |
| 1-3-5-6 | |
| 1-3-4-5-6 |
The critical path is 1-3-4-5-6, so the expected project completion time is days.
II. Probability of taking 5 days more than expected (41 days)
Variance of the project is the sum along the critical path:
So there is about a 91% chance that the project finishes within 41 days (and about 9% chance that it takes longer).
III. Completion time with 95% confidence
For 95%, :
The project will be completed in about 42 days with 95% confidence.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · Operations Research (STA.304) Elective
What are the objectives of operation search?
Answer
Operation Search was a counter-insurgency operation of the Royal Nepal Army, launched on 26 November 2001 after the breakdown of peace talks with the Maoists and the declaration of a state of emergency. Its objectives were:
- To suppress the Maoist insurgency by breaking down their armed structure and organisational network.
- To restore law and order and re-establish state authority in the insurgency-affected areas.
- To protect government offices, infrastructure, communication towers and public property from attacks.
- To give the general public security against extortion, intimidation, abduction and violence.
- To safeguard national sovereignty and territorial integrity by preventing "liberated zones" and parallel governments.
- To support the civil administration and police in enforcing law and order.
- To disrupt the flow of arms, finance and logistics to the insurgents.
- To create conditions for a political settlement and peace talks from a position of strength.
The operation was criticised by human rights organisations over alleged violations during the conflict.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · Operations Research (STA.304) Elective
A photocopy firm uses an average of 40 packages of paper per day. The firm operates 260 days a year. Storage and handling costs for the paper are Rs. 3 per year per pack and it costs approximately Rs. 6 to order and receive a shipment of paper.
a) Calculate the optimal order size.
b) Compute the total annual cost of carrying and holding paper.
Answer
Given:
- Daily demand = 40 packages/day
- Operating days = 260 days/year
- Annual demand, (D = 40 \times 260 = 10{,}400) packages/year
- Ordering cost, (S = \text{Rs. } 6) per order
- Holding/carrying cost, (H = \text{Rs. } 3) per package per year
a) Optimal order size (EOQ):
[ EOQ = \sqrt{\frac{2DS}{H}} ]
[ EOQ = \sqrt{\frac{2 \times 10400 \times 6}{3}} ]
[ EOQ = \sqrt{41600} = 203.96 \approx 204 \text{ packages} ]
Optimal order size = 204 packages (approximately).
b) Total annual cost of carrying and holding paper:
At EOQ, ordering cost equals carrying cost.
Carrying/holding cost:
[ \frac{Q}{2}H = \frac{204}{2} \times 3 = 102 \times 3 = \text{Rs. } 306 ]
Ordering cost:
[ \frac{D}{Q}S = \frac{10400}{204} \times 6 = \text{Rs. } 305.88 ]
Total annual inventory cost:
[ 306 + 305.88 = \text{Rs. } 611.88 ]
Total annual cost of carrying and holding paper = Rs. 611.88 approximately.
(If only the carrying/holding cost is required, it is Rs. 306.)
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · Operations Research (STA.304) Elective
Find the basic feasible solution that minimized the transportation cost for following data:
Supply 8 8 10 9 15 8 12 10 10 25 12 10 11 11 15 Requirements 15 15 15 10 55
Answer
Total supply = 15 + 25 + 15 = 55 = total demand, so the problem is balanced. Since there are 3 sources and 4 destinations, a basic feasible solution has allocations.
Initial solution by Vogel's Approximation Method (VAM)
| Supply | |||||
|---|---|---|---|---|---|
| 8 | 8 | 10 | 9 | 15 | |
| 8 | 12 | 10 | 10 | 25 | |
| 12 | 10 | 11 | 11 | 15 | |
| Demand | 15 | 15 | 15 | 10 |
- Penalties: rows 0, 2, 1; columns 0, 2, 0, 1. The largest is 2 (tie); choose row . Cheapest is . Allocate 15. is satisfied; has 10 left.
- Remaining: (15), (10), (15); (15), (15), (10). Penalties: rows 1, 0, 1; columns 2, 0, 1. Largest is 2 (column ). Cheapest is . Allocate 15. is exhausted.
- Remaining: (10), (15); (15), (10). Penalties: rows 0, 0; columns 1, 1. Take : cheapest is . Allocate 10. is exhausted.
- Only remains: , .
Only 5 cells are occupied, so one more is needed. Add a zero allocation at (degenerate).
| 15 | 0 | |||
| 15 | 10 | |||
| 5 | 10 |
Optimality test (MODI). Put . From : . From : . From : . From : . From : . From : .
| Empty cell | |
|---|---|
No value is negative, so the solution is optimal (the zeros indicate alternative optima).
Optimal solution: = 15, = 15, = 10, = 5, = 10.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · Operations Research (STA.304) Elective
The ABC Motor works has four machines on which to do four jobs. Each job can be assigned to only one machine. The cost of each job on each machine is given in the following table. What are the job assignments which will minimize costs?
Machines Jobs 1 2 3 4 W 3 5 11 4 X 2 1 6 9 Y 8 10 2 7 Z 10 6 1 5
Answer
Use the Hungarian method on the cost matrix (machines W, X, Y, Z; jobs 1 to 4).
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| W | 3 | 5 | 11 | 4 |
| X | 2 | 1 | 6 | 9 |
| Y | 8 | 10 | 2 | 7 |
| Z | 10 | 6 | 1 | 5 |
Step 1: Row reduction (row minima 3, 1, 2, 1)
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| W | 0 | 2 | 8 | 1 |
| X | 1 | 0 | 5 | 8 |
| Y | 6 | 8 | 0 | 5 |
| Z | 9 | 5 | 0 | 4 |
Step 2: Column reduction (column minima 0, 0, 0, 1)
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| W | 0 | 2 | 8 | 0 |
| X | 1 | 0 | 5 | 7 |
| Y | 6 | 8 | 0 | 4 |
| Z | 9 | 5 | 0 | 3 |
Step 3: Cover the zeros. Y and Z both have their only zero in column 3, so at most 3 independent zeros exist. The zeros are covered by 3 lines (row W, row X, column 3), which is less than 4, so the matrix is not optimal.
Step 4: Improve. The smallest uncovered element is 3 (Z-4). Subtract 3 from all uncovered elements (rows Y, Z in columns 1, 2, 4) and add 3 at the intersections (W-3, X-3).
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| W | 0 | 2 | 11 | 0 |
| X | 1 | 0 | 8 | 7 |
| Y | 3 | 5 | 0 | 1 |
| Z | 6 | 2 | 0 | 0 |
Now 4 lines are needed, so an optimal assignment exists among the zeros. Y has its only zero in column 3, so Y takes job 3. Then Z must take its other zero in column 4, X takes column 2 and W takes column 1.
Optimal assignment
| Machine | Job | Cost |
|---|---|---|
| W | 1 | 3 |
| X | 2 | 1 |
| Y | 3 | 2 |
| Z | 4 | 5 |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · Operations Research (STA.304) Elective
Construct a PERT Network for the following schedule of project.
Activities A B C D E F G H I J K L Predecessors None None A B B C,D E F G,H I J F Time 8 2 1 9 4 5 6 3 3 5 2 3
Answer
Step 1: Dependencies. A and B start the project. C follows A; D and E follow B; F needs C and D; G follows E; H and L follow F; I needs G and H; J follows I; K follows J.
Step 2: Network (activity on arrow). Events are numbered 1 to 10; no dummy activity is needed.
| Activity | Arc (tail - head) | Time |
|---|---|---|
| A | 1 - 2 | 8 |
| B | 1 - 3 | 2 |
| C | 2 - 4 | 1 |
| D | 3 - 4 | 9 |
| E | 3 - 5 | 4 |
| F | 4 - 6 | 5 |
| G | 5 - 7 | 6 |
| H | 6 - 7 | 3 |
| I | 7 - 8 | 3 |
| J | 8 - 9 | 5 |
| K | 9 - 10 | 2 |
| L | 6 - 10 | 3 |
A(8) C(1)
(1) ----------> (2) ----------> (4) --F(5)--> (6) --H(3)--> (7) --I(3)--> (8) --J(5)--> (9) --K(2)--> (10)
\ ^ \ ^ ^
\ B(2) D(9) / \ L(3) | G(6) |
+-----> (3) ---------------->+ +-------------------------------------------------->+
\ |
+---------------- E(4) --> (5) ----------------+
Event 4 is reached by C and D; event 7 is reached by G (from event 5) and H (from event 6); event 10 is the end, reached by K and L.
Step 3: Forward pass (earliest event times).
Step 4: Backward pass (latest event times).
Step 5: Activity floats (total float = ).
| Activity | Total float | |
|---|---|---|
| A | 8 | |
| B | 2 | 0 |
| C | 1 | |
| D | 9 | 0 |
| E | 4 | |
| F | 5 | 0 |
| G | 6 | |
| H | 3 | 0 |
| I | 3 | 0 |
| J | 5 | 0 |
| K | 2 | 0 |
| L | 3 |
Critical path: B - D - F - H - I - J - K, with duration time units. This is the project completion time.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · Operations Research (STA.304) Elective
A company makes three products X, Y and Z out of three raw materials A, B and C. The raw material requirements are given below.
Raw materials Number of units of raw materials required to produce one unit of product X Y Z A 1 2 1 B 2 1 4 C 2 5 1
The unit profit contribution of the products X, Y, Z is Rs. 40, 25 and 50 respectively. The number of units of raw materials available are 36, 60 and 45 respectively. Determine the optimum product mix that maximize the total profit.
Answer
Formulation. Let be the units of products X, Y, Z produced.
subject to
Simplex method. Add slack variables .
Initial table (: 40, 25, 50, 0, 0, 0)
| Basis | RHS | Ratio | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 1 | 1 | 0 | 0 | 36 | 36 | |
| 2 | 1 | 4 | 0 | 1 | 0 | 60 | 15 | |
| 2 | 5 | 1 | 0 | 0 | 1 | 45 | 45 |
enters (largest ) and leaves (minimum ratio 15).
Second table (: 15, 12.5, 0, 0, -12.5, 0)
| Basis | RHS | Ratio | ||||||
|---|---|---|---|---|---|---|---|---|
| 1/2 | 7/4 | 0 | 1 | -1/4 | 0 | 21 | 42 | |
| 1/2 | 1/4 | 1 | 0 | 1/4 | 0 | 15 | 30 | |
| 3/2 | 19/4 | 0 | 0 | -1/4 | 1 | 30 | 20 |
enters and leaves (minimum ratio 20).
Final table (: 0, -35, 0, 0, -10, -10)
| Basis | RHS | ||||||
|---|---|---|---|---|---|---|---|
| 0 | 1/6 | 0 | 1 | -1/6 | -1/3 | 11 | |
| 0 | -4/3 | 1 | 0 | 1/3 | -1/3 | 5 | |
| 1 | 19/6 | 0 | 0 | -1/6 | 2/3 | 20 |
All , so the solution is optimal.
Optimum product mix: units, , units.
Raw materials B and C are fully used; 11 units of A remain unused (). The shadow prices are Rs 0 for A, Rs 10 per unit for B and Rs 10 per unit for C, and the dual objective is also Rs 1050.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · Operations Research (STA.304) Elective
Find the sequence that minimizes the total time (in hours) required for performing the following jobs on three machines in the order ABC. Also compute the idle time on each machine.
Job 1 2 3 4 5 A 9 7 6 9 5 B 2 1 4 5 3 C 3 7 5 6 7
Answer
Check for Johnson's rule with three machines. The smallest time on machine A is 5, and the largest time on machine B is 5. Since , the problem can be converted into a two-machine problem with fictitious machines and .
| Job | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 11 | 8 | 10 | 14 | 8 | |
| 5 | 8 | 9 | 11 | 10 |
Johnson's rule. The smallest value is 5 (job 1 on H), so job 1 goes last. Next smallest is 8 (jobs 2 and 5, both on G), so they go first. Of the remaining jobs 3 and 4, the smallest is 9 (job 3 on H), so job 3 goes after job 4.
Optimal sequence: (the sequence gives the same total time).
Time table (hours)
| Job | A in | A out | B in | B out | C in | C out |
|---|---|---|---|---|---|---|
| 2 | 0 | 7 | 7 | 8 | 8 | 15 |
| 5 | 7 | 12 | 12 | 15 | 15 | 22 |
| 4 | 12 | 21 | 21 | 26 | 26 | 32 |
| 3 | 21 | 27 | 27 | 31 | 32 | 37 |
| 1 | 27 | 36 | 36 | 38 | 38 | 41 |
Minimum total elapsed time = 41 hours.
Idle times
- Machine A: it finishes at hour 36, so idle time is hours.
- Machine B: it works hours, so idle time is hours.
- Machine C: it works hours, so idle time is hours (8 hours at the start and 5 hours waiting).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · Operations Research (STA.304) Elective
Give the steps of solving transportation problem
Answer
Steps of Solving a Transportation Problem
A transportation problem is a special case of a linear programming problem in which a commodity is transported from several sources (supply/origin points) to several destinations (demand points) so as to minimise the total transportation cost. It is solved in the following steps.
Step 1: Formulate the problem as a transportation table
Let there be (m) sources (S_1, S_2, \dots, S_m) with supplies (a_1, a_2, \dots, a_m) and (n) destinations (D_1, D_2, \dots, D_n) with demands (b_1, b_2, \dots, b_n). Let (c_{ij}) be the cost of transporting one unit from source (i) to destination (j), and (x_{ij}) the number of units shipped from source (i) to destination (j).
The problem is:
subject to
Step 2: Check whether the problem is balanced or unbalanced
Compute the total supply (\sum a_i) and the total demand (\sum b_j).
- If (\sum a_i = \sum b_j), the problem is balanced and can be solved directly.
- If (\sum a_i \ne \sum b_j), the problem is unbalanced. Add a dummy source (if demand exceeds supply) or a dummy destination (if supply exceeds demand) with the difference as its supply or demand. The transportation cost for the dummy row/column is taken as zero.
Step 3: Find an initial basic feasible solution (IBFS)
Use any one of the following methods:
- North-West Corner Rule (NWCR) — start from the top-left cell and allocate as much as possible, moving right or down.
- Least Cost Method (LCM) — repeatedly allocate to the cell with the smallest cost in the remaining table.
- Vogel's Approximation Method (VAM) — compute the penalty (difference between the two smallest costs) for each row and column, choose the row/column with the largest penalty, and allocate to its least-cost cell. VAM usually gives the best initial solution.
The number of basic (occupied) cells must be (m + n - 1); if fewer, the solution is degenerate and a zero allocation must be introduced in an independent cell.
Step 4: Test the solution for optimality
Check whether the current solution is optimal using either:
- Stepping Stone Method, or
- Modified Distribution (MODI) / u–v Method (more efficient).
For the MODI method:
- Set (u_i + v_j = c_{ij}) for all occupied cells, taking (u_1 = 0), and solve for all (u_i) and (v_j).
- Compute the opportunity cost (net evaluation) (d_{ij} = c_{ij} - (u_i + v_j)) for every unoccupied cell.
- If all (d_{ij} \ge 0), the solution is optimal. If any (d_{ij} < 0), the solution can be improved.
Step 5: Improve the solution (if not optimal)
- Select the unoccupied cell with the most negative (d_{ij}) as the entering cell.
- Draw a closed loop (stepping-stone path) starting and ending at this cell, with right-angle turns only at occupied cells.
- Assign (+) and (-) signs alternately along the loop, starting with (+) at the entering cell.
- Find the minimum allocation among the cells marked (-). This is the quantity to be shifted.
- Add this quantity to (+) cells and subtract it from (-) cells. The entering cell becomes occupied and one of the (-) cells becomes empty.
- This gives a new basic feasible solution with the same number of occupied cells.
Step 6: Repeat until optimality is reached
Repeat Steps 4 and 5 for the new solution. Each iteration reduces (or keeps equal) the total cost. Continue until all opportunity costs (d_{ij} \ge 0). The resulting solution is the optimal solution, and the corresponding value of (Z) is the minimum transportation cost.
Step 7: Interpret the result
Read the final allocations (x_{ij}) from the table, compute the total cost, and interpret it in terms of the actual problem (how many units to ship from each source to each destination).
Note: For a maximisation-type transportation problem, first convert it into a minimisation problem by subtracting all costs from the largest cost in the table (or by using profit as negative cost), then follow the same steps.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from TU 4 Years BSc 3rd Year Math Physics (Bachelor Level (4 Yrs.)/Science & Tech. / III year · Math Physics & Classical Mechanics PHY 301 (New Course) · 2082), TU 4 Yrs BSc 3rd Year Math Physics (Bachelor Level (4 Yrs.)/Science & Tech. / III year · PHY 301 (New Course) · 2081), TU 4 Yrs BSc 3rd Year Numerical Methods (Bachelor Level (4 Yrs.) III Year/Science & Tech. · Numerical Methods (MAT-303) (Elective, New Course) · 2081), TU 4 Yrs BSc 3rd Year Research (Bachelor Level (4 Yrs.)/Science & Tech./III Year · R.M. 305 · 2081), TU 4 Yrs BSc 3rd Year Operations (Bachelor Level (4 Yrs.) Science & Tech. 3rd Year · Operations Research (STA.304) Elective · 2078) and TU BSc 3rd Year Operations Research (Bachelor Level (4 Yrs.)/Science & Tech./III Year · Operations Research (STA.304) Elective · 2076). Answers are written for this site; check them against your class notes.