Skip to main content

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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. Z=15X1+10X2+25X3Z = 15X_1 + 10X_2 + 25X_3
Subject to
X1+X2−X3≤3X_1 + X_2 - X_3 \le 3
2X1+10X2+6X3≥1802X_1 + 10X_2 + 6X_3 \ge 180
−X1+X2−3X3=80-X_1 + X_2 - 3X_3 = 80
and X1,X2,X3≥0X_1, X_2, X_3 \ge 0

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 (≤\le, ≥\ge, ==) and non-negative variables. Take one dual variable per primal constraint.

Primal

Max Z=15X1+10X2+25X3\text{Max } Z = 15X_1 + 10X_2 + 25X_3

subject to

X1+X2−X3≤3X_1 + X_2 - X_3 \le 3 2X1+10X2+6X3≥1802X_1 + 10X_2 + 6X_3 \ge 180 −X1+X2−3X3=80-X_1 + X_2 - 3X_3 = 80

X1,X2,X3≥0X_1, X_2, X_3 \ge 0

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 ≥0\ge 0, so each dual constraint is of the ≥\ge type, and the coefficient matrix is transposed.
  • A ≤\le constraint gives Y1≥0Y_1 \ge 0, a ≥\ge constraint gives Y2≤0Y_2 \le 0, and an == constraint gives Y3Y_3 unrestricted in sign.

Dual

Min W=3Y1+180Y2+80Y3\text{Min } W = 3Y_1 + 180Y_2 + 80Y_3

subject to

Y1+2Y2−Y3≥15Y_1 + 2Y_2 - Y_3 \ge 15 Y1+10Y2+Y3≥10Y_1 + 10Y_2 + Y_3 \ge 10 −Y1+6Y2−3Y3≥25-Y_1 + 6Y_2 - 3Y_3 \ge 25

Y1≥0,Y2≤0,Y3 unrestricted in signY_1 \ge 0,\quad Y_2 \le 0,\quad Y_3 \text{ unrestricted in sign}

(Equivalently, rewrite the ≥\ge constraint as −2X1−10X2−6X3≤−180-2X_1 - 10X_2 - 6X_3 \le -180 and let Y2′=−Y2≥0Y_2' = -Y_2 \ge 0.)

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 Z=Rs. 30X1+Rs. 50X2+Rs. 40X3Z = \text{Rs. } 30X_1 + \text{Rs. } 50X_2 + \text{Rs. } 40X_3 Subject to 2X1+3X2≤8002X_1 + 3X_2 \le 800 2X2+5X3≤10002X_2 + 5X_3 \le 1000 3X1+2X2+4X3≤15003X_1 + 2X_2 + 4X_3 \le 1500 and X1,X2,X3≥0X_1, X_2, X_3 \ge 0

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 Z=30X1+50X2+40X3Z = 30X_1 + 50X_2 + 40X_3
  • Constraints:
    • 2X1+3X2+0X3≤8002X_1 + 3X_2 + 0X_3 \le 800
    • 0X1+2X2+5X3≤10000X_1 + 2X_2 + 5X_3 \le 1000
    • 3X1+2X2+4X3≤15003X_1 + 2X_2 + 4X_3 \le 1500
  • X1,X2,X3≥0X_1, X_2, X_3 \ge 0

Dual construction:

  • Since primal is maximization with ≤\le constraints and non-negative variables, dual is minimization with ≥\ge constraints and non-negative dual variables.
  • Dual variables: Y1,Y2,Y3Y_1, Y_2, Y_3 (one per primal constraint).
  • Dual objective: Minimize W=800Y1+1000Y2+1500Y3W = 800Y_1 + 1000Y_2 + 1500Y_3 (RHS of primal constraints become coefficients).
  • Dual constraints: Transpose of primal coefficient matrix, with primal objective coefficients as RHS.

Primal coefficient matrix: A=(230025324)A = \begin{pmatrix} 2 & 3 & 0 \\ 0 & 2 & 5 \\ 3 & 2 & 4 \end{pmatrix}

Transpose: AT=(203322054)A^T = \begin{pmatrix} 2 & 0 & 3 \\ 3 & 2 & 2 \\ 0 & 5 & 4 \end{pmatrix}

Dual constraints:

  • 2Y1+0Y2+3Y3≥302Y_1 + 0Y_2 + 3Y_3 \ge 30
  • 3Y1+2Y2+2Y3≥503Y_1 + 2Y_2 + 2Y_3 \ge 50
  • 0Y1+5Y2+4Y3≥400Y_1 + 5Y_2 + 4Y_3 \ge 40

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 differenceCPMPERT
Nature of activitiesActivities 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 estimateSingle time estimate is used for each activity.Three time estimates are used; expected time is computed as te=to+4tm+tp6t_e = \dfrac{t_o + 4t_m + t_p}{6}.
Type of projectSuited 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).
FocusMainly focuses on time–cost trade-off (crashing) and cost optimisation.Mainly focuses on time uncertainty and probability of meeting a scheduled date.
OrientationActivity-oriented — emphasis on the activities themselves.Event-oriented — emphasis on events/milestones.
Cost controlCost is directly considered; time–cost relationship is analysed.Cost is not directly considered; only time is analysed.
Result obtainedGives 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 costCrashing 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 nn jobs J1,J2,…,JnJ_1, J_2, \dots, J_n and mm machines M1,M2,…,MmM_1, M_2, \dots, M_m, and each job must be processed on the machines in the order M1→M2→⋯→MmM_1 \to M_2 \to \dots \to M_m with known processing times tijt_{ij} (time of job ii on machine jj), the sequencing problem is to find the permutation of jobs that gives the minimum total elapsed time. A very common special case is the nn-jobs–2-machines problem, solved by Johnson's rule: job ii precedes job kk if min⁡(ti1,tk2)≤min⁡(tk1,ti2)\min(t_{i1}, t_{k2}) \le \min(t_{k1}, t_{i2}).

Assumptions of the Sequencing Problem

  1. Known processing times — The time taken by each job on each machine is known in advance and is constant (deterministic).
  2. 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.
  3. No pre-emption — Once a job starts on a machine, it must be completed without interruption.
  4. One job at a time on a machine — A machine can process only one job at a time.
  5. One machine at a time per job — A job cannot be processed on more than one machine simultaneously.
  6. No passing — Jobs cannot overtake one another; the sequence of jobs remains the same on all machines.
  7. All jobs available at the start — Every job is ready for processing at time zero (no release dates).
  8. 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).
  9. Independent jobs — Jobs are independent of one another; the processing of one job does not affect another.
  10. 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 / Contractor1234
a1016129
b24222026
c30283234
d15121016
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)

Job1234
a1730
b4206
c2046
d5206

Step 2: Column reduction (column minima 1, 0, 0, 0)

Job1234
a0730
b3206
c1046
d4206

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):

Job1234
a0840
b2205
c0045
d3205

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):

Job1234
a0860
b0003
c0065
d1003

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

JobContractorCost (lakh Rs)
a49
b320
c130
d212

Minimum total cost=9+20+30+12=Rs 71 lakh\text{Minimum total cost} = 9 + 20 + 30 + 12 = \text{Rs } 71 \text{ lakh}

An alternative optimum is a-4, b-1, c-2, d-3, costing 9+24+28+10=Rs 719+24+28+10 = \text{Rs } 71 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.
Activity1-21-32-63-43-54-65-65-76-7
Duration (days)46874651910

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 ]

EventEarliest time (E_i)Latest time (L_i)Slack (L_i-E_i)
1000
24117
3660
413130
510100
619190
729290

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 ]

ActivityDuration (d)ESEFLSLFTotal floatCritical?
1–24047117No
1–3606060Yes
2–6841211197No
3–476136130Yes
3–546106100Yes
4–66131913190Yes
5–65101514194No
5–719102910290Yes
6–710192919290Yes

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
x1x_1 = number of units of product A produced per week
x2x_2 = number of units of product B produced per week

Profit per unit: A = Rs. 40, B = Rs. 35.

Maximize total profit:

Z=40x1+35x2Z = 40x_1 + 35x_2

Subject to the constraints:

Raw material:

2x1+3x2≤602x_1 + 3x_2 \le 60

Labour hours:

4x1+3x2≤964x_1 + 3x_2 \le 96

Non-negativity:

x1≥0,x2≥0x_1 \ge 0,\quad x_2 \ge 0

2. Standard form

Introduce slack variables s1s_1 and s2s_2:

2x1+3x2+s1=602x_1 + 3x_2 + s_1 = 60 4x1+3x2+s2=964x_1 + 3x_2 + s_2 = 96

Objective function:

Z−40x1−35x2=0Z - 40x_1 - 35x_2 = 0

3. Initial simplex tableau

Basic variablex1x_1x2x_2s1s_1s2s_2RHS
s1s_1231060
s2s_2430196
ZZ−40-40−35-35000

The most negative entry in the ZZ-row is −40-40, so x1x_1 enters.

Ratio test:

602=30,964=24\frac{60}{2}=30,\qquad \frac{96}{4}=24

Minimum ratio is 24, so s2s_2 leaves. Pivot element = 4.


4. First iteration

Divide pivot row by 4:

x1:[1, 34, 0, 14, 24]x_1:\quad [1,\ \tfrac34,\ 0,\ \tfrac14,\ 24]

Update s1s_1-row:

s1:[0, 32, 1, −12, 12]s_1:\quad [0,\ \tfrac32,\ 1,\ -\tfrac12,\ 12]

Update ZZ-row:

Z:[0, −5, 0, 10, 960]Z:\quad [0,\ -5,\ 0,\ 10,\ 960]

So the tableau becomes:

Basic variablex1x_1x2x_2s1s_1s2s_2RHS
s1s_1032\frac321−12-\frac1212
x1x_1134\frac34014\frac1424
ZZ0−5-5010960

Now the most negative entry in the ZZ-row is −5-5, so x2x_2 enters.

Ratio test:

123/2=8,243/4=32\frac{12}{3/2}=8,\qquad \frac{24}{3/4}=32

Minimum ratio is 8, so s1s_1 leaves. Pivot element = 32\frac32.


5. Second iteration

Divide pivot row by 32\frac32:

x2:[0, 1, 23, −13, 8]x_2:\quad [0,\ 1,\ \tfrac23,\ -\tfrac13,\ 8]

Update x1x_1-row:

x1:[1, 0, −12, 12, 18]x_1:\quad [1,\ 0,\ -\tfrac12,\ \tfrac12,\ 18]

Update ZZ-row:

Z:[0, 0, 103, 253, 1000]Z:\quad [0,\ 0,\ \tfrac{10}{3},\ \tfrac{25}{3},\ 1000]

Final tableau:

Basic variablex1x_1x2x_2s1s_1s2s_2RHS
x2x_20123\frac23−13-\frac138
x1x_110−12-\frac1212\frac1218
ZZ00103\frac{10}{3}253\frac{25}{3}1000

Since there is no negative entry in the ZZ-row, the optimal solution is reached.


6. Optimal solution

x1=18,x2=8x_1 = 18,\qquad x_2 = 8 Zmax⁡=40(18)+35(8)=720+280=1000Z_{\max} = 40(18) + 35(8) = 720 + 280 = 1000

Therefore, the firm should produce:

  • 18 units of product A
  • 8 units of product B

per week to earn the maximum profit of:

Rs. 1000\boxed{\text{Rs. } 1000}

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.
FromTo project ATo Project BTo 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 \ ToABCSupply
X54585855
Y16241625
Z58162435
Demand354535115

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.

  1. Largest penalty is 38 (column A). Cheapest cell is Y-A = 16. Allocate min⁡(25,35)=25\min(25, 35) = 25. Y is exhausted; A needs 10 more.
  2. 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.
  3. Only row X remains: X-A = 10, X-B = 10, X-C = 35.
From \ ToABC
X101035
Y25
Z35

There are m+n−1=5m + n - 1 = 5 allocations.

Cost=10(54)+10(58)+35(58)+25(16)+35(16)=540+580+2030+400+560=Rs 4110\text{Cost} = 10(54) + 10(58) + 35(58) + 25(16) + 35(16) = 540 + 580 + 2030 + 400 + 560 = \text{Rs } 4110

MODI test. Put uX=0u_X = 0. From occupied cells: vA=54v_A = 54, vB=58v_B = 58, vC=58v_C = 58, uY=16−54=−38u_Y = 16 - 54 = -38, uZ=16−58=−42u_Z = 16 - 58 = -42.

Opportunity cost dij=cij−(ui+vj)d_{ij} = c_{ij} - (u_i + v_j) for empty cells:

Celldijd_{ij}
Y-B24−(−38+58)=424 - (-38 + 58) = 4
Y-C16−(−38+58)=−416 - (-38 + 58) = -4
Z-A58−(−42+54)=4658 - (-42 + 54) = 46
Z-C24−(−42+58)=824 - (-42 + 58) = 8

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 min⁡(25,35)=25\min(25, 35) = 25. Shift 25 units: Y-C = 25, Y-A = 0, X-A = 35, X-C = 10.

From \ ToABC
X351010
Y25
Z35

Re-test. With uX=0u_X = 0: vA=54v_A = 54, vB=58v_B = 58, vC=58v_C = 58, uY=16−58=−42u_Y = 16 - 58 = -42, uZ=16−58=−42u_Z = 16 - 58 = -42.

Celldijd_{ij}
Y-A16−(−42+54)=416 - (-42 + 54) = 4
Y-B24−(−42+58)=824 - (-42 + 58) = 8
Z-A58−(−42+54)=4658 - (-42 + 54) = 46
Z-C24−(−42+58)=824 - (-42 + 58) = 8

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.

Minimum cost=35(54)+10(58)+10(58)+25(16)+35(16)=1890+580+580+400+560=Rs 4010\text{Minimum cost} = 35(54) + 10(58) + 10(58) + 25(16) + 35(16) = 1890 + 580 + 580 + 400 + 560 = \text{Rs } 4010

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
Activity1-21-32-42-63-43-54-55-6
Optimistic time15318252
Most likely time4103415455
pessimistic time7173726858
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: te=a+4m+b6t_e = \dfrac{a + 4m + b}{6}, σ2=(b−a6)2\sigma^2 = \left(\dfrac{b - a}{6}\right)^2.

Activityaammbbtet_eσ2\sigma^2
1-214741
1-35101710.334
2-433330
2-614741
3-48152615.679
3-52484.331
4-555550
5-625851

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:

PathLength
1-2-64+4=84 + 4 = 8
1-2-4-5-64+3+5+5=174 + 3 + 5 + 5 = 17
1-3-5-610.33+4.33+5=19.6710.33 + 4.33 + 5 = 19.67
1-3-4-5-610.33+15.67+5+5=3610.33 + 15.67 + 5 + 5 = 36

The critical path is 1-3-4-5-6, so the expected project completion time is TE=36T_E = 36 days.

II. Probability of taking 5 days more than expected (41 days)

Variance of the project is the sum along the critical path:

σ2=4+9+0+1=14,σ=14=3.74\sigma^2 = 4 + 9 + 0 + 1 = 14,\qquad \sigma = \sqrt{14} = 3.74

Z=41−363.74=1.336Z = \frac{41 - 36}{3.74} = 1.336

P(T≤41)=P(Z≤1.336)≈0.909P(T \le 41) = P(Z \le 1.336) \approx 0.909

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%, Z=1.645Z = 1.645:

T=36+1.645×3.74≈42.15 daysT = 36 + 1.645 \times 3.74 \approx 42.15 \text{ days}

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:

  1. To suppress the Maoist insurgency by breaking down their armed structure and organisational network.
  2. To restore law and order and re-establish state authority in the insurgency-affected areas.
  3. To protect government offices, infrastructure, communication towers and public property from attacks.
  4. To give the general public security against extortion, intimidation, abduction and violence.
  5. To safeguard national sovereignty and territorial integrity by preventing "liberated zones" and parallel governments.
  6. To support the civil administration and police in enforcing law and order.
  7. To disrupt the flow of arms, finance and logistics to the insurgents.
  8. 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:
D1D_1D2D_2D3D_3D4D_4Supply
O1O_18810915
O2O_2812101025
O3O_31210111115
Requirements1515151055

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 m+n−1=6m + n - 1 = 6 allocations.

Initial solution by Vogel's Approximation Method (VAM)

D1D_1D2D_2D3D_3D4D_4Supply
O1O_18810915
O2O_2812101025
O3O_31210111115
Demand15151510
  1. Penalties: rows O1O_1 0, O2O_2 2, O3O_3 1; columns D1D_1 0, D2D_2 2, D3D_3 0, D4D_4 1. The largest is 2 (tie); choose row O2O_2. Cheapest is O2D1=8O_2D_1 = 8. Allocate 15. D1D_1 is satisfied; O2O_2 has 10 left.
  2. Remaining: O1O_1 (15), O2O_2 (10), O3O_3 (15); D2D_2 (15), D3D_3 (15), D4D_4 (10). Penalties: rows O1O_1 1, O2O_2 0, O3O_3 1; columns D2D_2 2, D3D_3 0, D4D_4 1. Largest is 2 (column D2D_2). Cheapest is O1D2=8O_1D_2 = 8. Allocate 15. O1O_1 is exhausted.
  3. Remaining: O2O_2 (10), O3O_3 (15); D3D_3 (15), D4D_4 (10). Penalties: rows O2O_2 0, O3O_3 0; columns D3D_3 1, D4D_4 1. Take D3D_3: cheapest is O2D3=10O_2D_3 = 10. Allocate 10. O2O_2 is exhausted.
  4. Only O3O_3 remains: O3D3=5O_3D_3 = 5, O3D4=10O_3D_4 = 10.

Only 5 cells are occupied, so one more is needed. Add a zero allocation at O1D4O_1D_4 (degenerate).

D1D_1D2D_2D3D_3D4D_4
O1O_1150
O2O_21510
O3O_3510

Cost=15(8)+15(8)+10(10)+5(11)+10(11)=120+120+100+55+110=505\text{Cost} = 15(8) + 15(8) + 10(10) + 5(11) + 10(11) = 120 + 120 + 100 + 55 + 110 = 505

Optimality test (MODI). Put u1=0u_1 = 0. From O1D2O_1D_2: v2=8v_2 = 8. From O1D4O_1D_4: v4=9v_4 = 9. From O3D4O_3D_4: u3=2u_3 = 2. From O3D3O_3D_3: v3=9v_3 = 9. From O2D3O_2D_3: u2=1u_2 = 1. From O2D1O_2D_1: v1=7v_1 = 7.

Empty cellcij−(ui+vj)c_{ij} - (u_i + v_j)
O1D1O_1D_18−7=18 - 7 = 1
O1D3O_1D_310−9=110 - 9 = 1
O2D2O_2D_212−9=312 - 9 = 3
O2D4O_2D_410−10=010 - 10 = 0
O3D1O_3D_112−9=312 - 9 = 3
O3D2O_3D_210−10=010 - 10 = 0

No value is negative, so the solution is optimal (the zeros indicate alternative optima).

Optimal solution: O1→D2O_1 \to D_2 = 15, O2→D1O_2 \to D_1 = 15, O2→D3O_2 \to D_3 = 10, O3→D3O_3 \to D_3 = 5, O3→D4O_3 \to D_4 = 10.

Minimum transportation cost=505\text{Minimum transportation cost} = 505

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?
MachinesJobs
1234
W35114
X2169
Y81027
Z10615

Answer

Use the Hungarian method on the cost matrix (machines W, X, Y, Z; jobs 1 to 4).

1234
W35114
X2169
Y81027
Z10615

Step 1: Row reduction (row minima 3, 1, 2, 1)

1234
W0281
X1058
Y6805
Z9504

Step 2: Column reduction (column minima 0, 0, 0, 1)

1234
W0280
X1057
Y6804
Z9503

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).

1234
W02110
X1087
Y3501
Z6200

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

MachineJobCost
W13
X21
Y32
Z45

Minimum cost=3+1+2+5=11\text{Minimum cost} = 3 + 1 + 2 + 5 = 11

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.
ActivitiesABCDEFGHIJKL
PredecessorsNoneNoneABBC,DEFG,HIJF
Time821945633523

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.

ActivityArc (tail - head)Time
A1 - 28
B1 - 32
C2 - 41
D3 - 49
E3 - 54
F4 - 65
G5 - 76
H6 - 73
I7 - 83
J8 - 95
K9 - 102
L6 - 103
          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).

E1=0, E2=8, E3=2, E4=max⁡(8+1, 2+9)=11, E5=6, E6=16, E7=max⁡(6+6, 16+3)=19, E8=22, E9=27, E10=max⁡(27+2, 16+3)=29E_1 = 0,\ E_2 = 8,\ E_3 = 2,\ E_4 = \max(8+1,\ 2+9) = 11,\ E_5 = 6,\ E_6 = 16,\ E_7 = \max(6+6,\ 16+3) = 19,\ E_8 = 22,\ E_9 = 27,\ E_{10} = \max(27+2,\ 16+3) = 29

Step 4: Backward pass (latest event times).

L10=29, L9=27, L8=22, L7=19, L6=min⁡(19−3, 29−3)=16, L5=19−6=13, L4=11, L3=min⁡(11−9, 13−4)=2, L2=11−1=10, L1=min⁡(10−8, 2−2)=0L_{10} = 29,\ L_9 = 27,\ L_8 = 22,\ L_7 = 19,\ L_6 = \min(19-3,\ 29-3) = 16,\ L_5 = 19-6 = 13,\ L_4 = 11,\ L_3 = \min(11-9,\ 13-4) = 2,\ L_2 = 11-1 = 10,\ L_1 = \min(10-8,\ 2-2) = 0

Step 5: Activity floats (total float = Lj−Ei−tL_j - E_i - t).

ActivityttTotal float
A810−0−8=210 - 0 - 8 = 2
B20
C111−8−1=211 - 8 - 1 = 2
D90
E413−2−4=713 - 2 - 4 = 7
F50
G619−6−6=719 - 6 - 6 = 7
H30
I30
J50
K20
L329−16−3=1029 - 16 - 3 = 10

Critical path: B - D - F - H - I - J - K, with duration 2+9+5+3+3+5+2=292 + 9 + 5 + 3 + 3 + 5 + 2 = 29 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 materialsNumber of units of raw materials required to produce one unit of product
XYZ
A121
B214
C251
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 X,Y,ZX, Y, Z be the units of products X, Y, Z produced.

Max P=40X+25Y+50Z\text{Max } P = 40X + 25Y + 50Z

subject to

X+2Y+Z≤36(raw material A)X + 2Y + Z \le 36 \quad (\text{raw material A}) 2X+Y+4Z≤60(raw material B)2X + Y + 4Z \le 60 \quad (\text{raw material B}) 2X+5Y+Z≤45(raw material C)2X + 5Y + Z \le 45 \quad (\text{raw material C})

X,Y,Z≥0X, Y, Z \ge 0

Simplex method. Add slack variables S1,S2,S3S_1, S_2, S_3.

Initial table (Cj−ZjC_j - Z_j: 40, 25, 50, 0, 0, 0)

BasisXXYYZZS1S_1S2S_2S3S_3RHSRatio
S1S_11211003636
S2S_22140106015
S3S_32510014545

ZZ enters (largest Cj−Zj=50C_j - Z_j = 50) and S2S_2 leaves (minimum ratio 15).

Second table (Cj−ZjC_j - Z_j: 15, 12.5, 0, 0, -12.5, 0)

BasisXXYYZZS1S_1S2S_2S3S_3RHSRatio
S1S_11/27/401-1/402142
ZZ1/21/4101/401530
S3S_33/219/400-1/413020

XX enters and S3S_3 leaves (minimum ratio 20).

Final table (Cj−ZjC_j - Z_j: 0, -35, 0, 0, -10, -10)

BasisXXYYZZS1S_1S2S_2S3S_3RHS
S1S_101/601-1/6-1/311
ZZ0-4/3101/3-1/35
XX119/600-1/62/320

All Cj−Zj≤0C_j - Z_j \le 0, so the solution is optimal.

Optimum product mix: X=20X = 20 units, Y=0Y = 0, Z=5Z = 5 units.

Maximum profit=40(20)+25(0)+50(5)=800+250=Rs 1050\text{Maximum profit} = 40(20) + 25(0) + 50(5) = 800 + 250 = \text{Rs } 1050

Raw materials B and C are fully used; 11 units of A remain unused (S1=11S_1 = 11). 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 60(10)+45(10)60(10) + 45(10) 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.
Job12345
A97695
B21453
C37567

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 min⁡A≥max⁡B\min A \ge \max B, the problem can be converted into a two-machine problem with fictitious machines G=A+BG = A + B and H=B+CH = B + C.

Job12345
G=A+BG = A + B11810148
H=B+CH = B + C5891110

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: 2−5−4−3−12 - 5 - 4 - 3 - 1 (the sequence 5−2−4−3−15 - 2 - 4 - 3 - 1 gives the same total time).

Time table (hours)

JobA inA outB inB outC inC out
20778815
571212151522
4122121262632
3212727313237
1273636383841

Minimum total elapsed time = 41 hours.

Idle times

  • Machine A: it finishes at hour 36, so idle time is 41−36=541 - 36 = 5 hours.
  • Machine B: it works 2+1+4+5+3=152+1+4+5+3 = 15 hours, so idle time is 41−15=2641 - 15 = 26 hours.
  • Machine C: it works 3+7+5+6+7=283+7+5+6+7 = 28 hours, so idle time is 41−28=1341 - 28 = 13 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:

Minimise Z=∑i=1m∑j=1ncij xij\text{Minimise } Z = \sum_{i=1}^{m}\sum_{j=1}^{n} c_{ij}\,x_{ij}

subject to

∑j=1nxij=ai(i=1,2,…,m)\sum_{j=1}^{n} x_{ij} = a_i \quad (i = 1,2,\dots,m) ∑i=1mxij=bj(j=1,2,…,n)\sum_{i=1}^{m} x_{ij} = b_j \quad (j = 1,2,\dots,n) xij≥0x_{ij} \ge 0

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:

  1. North-West Corner Rule (NWCR) — start from the top-left cell and allocate as much as possible, moving right or down.
  2. Least Cost Method (LCM) — repeatedly allocate to the cell with the smallest cost in the remaining table.
  3. 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:

  1. Set (u_i + v_j = c_{ij}) for all occupied cells, taking (u_1 = 0), and solve for all (u_i) and (v_j).
  2. Compute the opportunity cost (net evaluation) (d_{ij} = c_{ij} - (u_i + v_j)) for every unoccupied cell.
  3. 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)

  1. Select the unoccupied cell with the most negative (d_{ij}) as the entering cell.
  2. Draw a closed loop (stepping-stone path) starting and ending at this cell, with right-angle turns only at occupied cells.
  3. Assign (+) and (-) signs alternately along the loop, starting with (+) at the entering cell.
  4. Find the minimum allocation among the cells marked (-). This is the quantity to be shifted.
  5. Add this quantity to (+) cells and subtract it from (-) cells. The entering cell becomes occupied and one of the (-) cells becomes empty.
  6. 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.