Chapter 9
Linear Programming
TU BBS past exam questions
Past questions and answers
5 questions set from this chapter. Most repeated first.
- 2082 · Linear Programming (MAT.404)
[a] Define hyperplane and a convex set. Show that the set of all feasible solutions of an LP (Linear Programming) problem is a convex set. [1+1+3]
[b] If and are two convex sets in then for any scalars and , prove that is a convex set. By using this, show that is also a convex set. [4+1]
Answer
[a] Hyperplane, Convex Set, and Convexity of the LP Feasible Region
Hyperplane
A hyperplane in is a set of the form
where is a nonzero vector and is a scalar.
Geometrically, a hyperplane is an -dimensional flat surface. For example, in a hyperplane is a straight line, and in it is a plane.
Convex Set
A set is called a convex set if for every pair of points and every scalar with ,
That is, the line segment joining any two points of lies completely inside .
Feasible Set of an LP is Convex
Consider a linear programming problem in the form
Its feasible set is
Let and let . For each constraint row ,
Then
Also, since and ,
Hence satisfies all constraints, so
Therefore the feasible set is convex.
Equivalently, each inequality defines a closed half-space, and each nonnegativity condition also defines a half-space. Since every half-space is convex and the intersection of convex sets is convex, the feasible region of an LP is convex. If the LP has equality constraints , then for ,
so the same conclusion holds.
[b] Convexity of and
Let be convex sets, and let be any scalars. Define
Take any two points . Then for some and ,
Let . Then
Since is convex,
Since is convex,
Thus
Hence is a convex set.
Now take and . Then
Since and are convex, by the result just proved, is also convex. Therefore,
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · Linear Programming (MAT.404)
[a] Rewrite the following LP problem:
Max
Subject to,
In standard form and convert it into the canonical form. Also, convert this problem into minimization problem. [2+2+1]
[b] Show that the three forms of LP problem are equivalent. [5]
Answer
[a] Rewriting the LP problem
Given LP problem:
Maximize
Subject to:
1. Standard form
Introduce surplus and slack variables:
Standard form:
Maximize
Subject to:
2. Canonical form
The canonical form requires each constraint equation to contain a basic variable (coefficient , appearing in no other equation) and non-negative RHS. The second equation already has basic variable . The first equation has , so an artificial variable is introduced:
Canonical form:
Maximize (Big-M method)
Subject to:
3. Conversion into minimization problem
Minimize
Subject to the same constraints:
with .
[b] Equivalence of the three forms of LP problem
The three forms are:
- General form — objective may be max or min; constraints may be , , or ; variables non-negative.
- Standard form — objective is maximization; all constraints are equations; all variables non-negative; RHS constants non-negative.
- Canonical form — objective is maximization; all constraints are equations; all variables non-negative; RHS constants non-negative; each equation has a basic variable with coefficient appearing in no other equation.
Equivalence proof:
(i) General → Standard form
- Replace by ; then .
- For constraint, add slack variable; for constraint, subtract surplus variable.
- If RHS is negative, multiply the equation by (reversing the inequality sign first).
- If a variable is unrestricted, write with .
These operations do not change the feasible region in terms of original variables, nor the objective value at any feasible point.
(ii) Standard → Canonical form
If a standard-form equation lacks a basic variable (e.g., it contains a surplus variable with coefficient ), an artificial variable is added to serve as the initial basic variable. Using the Big-M or two-phase method, the artificial variable is forced to zero at optimum. Hence the optimal solution of the canonical form coincides with that of the standard form.
(iii) Canonical → General form
Dropping the slack, surplus, and artificial variables and rewriting each equation as an inequality recovers the general form. Since these added variables have zero coefficients in the objective (or are driven to zero), the optimal objective value is unchanged.
Conclusion
Each transformation preserves the feasible region (in terms of the original decision variables) and the objective value at every feasible point. Therefore the optimal solution of one form is also optimal for the other forms, and the three forms are equivalent.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · Linear Programming (MAT.404)
[a] What do you mean by a basic feasible solution? When does the solution become degenerate or non-degenerate? [1+1+2]
[b] Describe the steps of the simplex method for computing an optimal solution in a linear programming problem. [5]
OR
Solve the following LP problem using Two Phase method:
Max
Subject to,
[5]
Answer
(a) Basic feasible solution
For a system of equations in variables (), a basic solution is obtained by setting variables (non-basic) to zero and solving for the remaining (basic) variables. If all basic variables are also , it is a basic feasible solution (BFS); it corresponds to a corner point of the feasible region.
A BFS is non-degenerate if all basic variables are strictly positive. It is degenerate if at least one basic variable is zero (in the simplex table, a tie in the minimum-ratio test produces this).
(b) Steps of the simplex method
- Formulate the problem; convert to maximization and make all RHS values non-negative.
- Convert inequalities to equations by adding slack variables (), subtracting surplus variables () and adding artificial variables where there is no starting basic variable ( or ).
- Find an initial BFS (slack variables as the basis) and construct the initial simplex table with , and rows.
- Optimality test: if all (for maximization), the solution is optimal; stop.
- Otherwise, choose the entering variable: the column with the largest positive (key column).
- Choose the leaving variable: the minimum non-negative ratio (only for positive entries); this gives the key row. If no entry is positive, the solution is unbounded.
- Divide the key row by the key element to get the new pivot row; make the other entries of the key column zero by row operations.
- Recompute and , and repeat from step 4 until optimal.
OR: Two-phase solution
Max subject to , , .
Standard form: , .
Phase I: Minimize (equivalently maximize ). Starting basis .
| Basis | RHS | Ratio | |||||
|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | 0 | 0 | 6 | 6 | |
| 2 | 1 | 0 | -1 | 1 | 8 | 4 | |
| 2 | 1 | 0 | -1 | 0 |
enters, leaves. After the iteration:
| Basis | RHS | ||||
|---|---|---|---|---|---|
| 0 | 1/2 | 1 | 1/2 | 2 | |
| 1 | 1/2 | 0 | -1/2 | 4 |
All for the Phase I objective and , so a feasible solution exists. Drop .
Phase II: Use the original objective . Initial table, basis :
| Basis | RHS | Ratio | |||||
|---|---|---|---|---|---|---|---|
| 0 | 0 | 1/2 | 1 | 1/2 | 2 | 4 | |
| 10 | 1 | 1/2 | 0 | -1/2 | 4 | - | |
| 0 | 3 | 0 | 5 |
enters, leaves (multiply the row by 2, then add half of it to the row):
| Basis | RHS | |||||
|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 2 | 1 | 4 | |
| 10 | 1 | 1 | 1 | 0 | 6 | |
| 0 | -2 | -10 | 0 |
All , so the solution is optimal:
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · Linear Programming (MAT.404)
[a] Convert the following LP problem into the duality [5]
Min
Subject to
[b] If the constraint of the primal is an equality constraint then prove that the dual variable will be unrestricted in sign. [5]
Answer
[a] Dual of the given LP
The primal is
Let the dual variables be corresponding to the three constraints.
Rules used:
- Primal is minimization, so dual is maximization.
- Primal constraint gives dual variable .
- Primal constraint gives dual variable .
- Primal equality constraint gives dual variable unrestricted.
- Primal variables give dual constraints of type .
Hence the dual is
If the intended objective was , then the third dual constraint becomes
[b] Proof: Equality constraint gives unrestricted dual variable
Consider the -th primal constraint as an equality:
This equality can be written as two inequalities:
and
Let the dual variable for the part be , and for the part be .
In the dual objective, these two constraints contribute
In each dual constraint, they contribute
Now define
Since and , the value of may be positive, negative, or zero. Therefore has no sign restriction.
Conversely, any unrestricted can be split as
so the two inequality dual variables together are equivalent to one unrestricted dual variable.
Thus, the dual variable corresponding to an equality constraint of the primal is unrestricted in sign.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · Linear Programming (MAT.404)
[a] Formulate the LP model for a Transportation problem, including a description of the essential variables, constraints, and objective function. Additionally, provide an example of a real-life application of this problem. [4+1]
[b] Formulate the LP model for a Diet problem, including a description of the essential variables, constraints, and objective function. Additionally, provide an example of a real-life application of this problem. [4+1]
OR
Write a general LP model for the maximum flow problem and justify the model is linear. Describe briefly the two applications of the problem. [4+1]
Answer
[a] LP Model for a Transportation Problem
Formulation
Let there be sources (supply points) and destinations (demand points).
Parameters:
- = amount available (supply) at source ,
- = amount required (demand) at destination ,
- = cost of transporting one unit from source to destination
Decision variables:
Objective function: Minimize total transportation cost
Constraints:
Supply constraints (each source cannot ship more than it has):
Demand constraints (each destination must receive what it needs):
Non-negativity:
For a balanced problem, , and the supply and demand constraints become equalities.
Real-life Application
A brewery in Nepal has bottling plants in Kathmandu, Pokhara and Biratnagar, and must supply its product to warehouses in Chitwan, Butwal and Dharan. The company knows the production capacity of each plant, the demand of each warehouse and the per-truck transport cost on each route. The transportation model finds the shipping plan that meets all warehouse demands at minimum total cost.
[b] LP Model for a Diet Problem
Formulation
Let there be food items and nutrients.
Parameters:
- = cost per unit of food
- = amount of nutrient present in one unit of food
- = minimum required amount of nutrient
Decision variables:
Objective function: Minimize the total cost of the diet
Constraints:
Nutrient requirements (each nutrient must reach its minimum level):
Non-negativity:
Real-life Application
A hospital dietician must prepare a daily meal plan for patients from foods such as rice, lentils, milk, vegetables and eggs. Each food has a known price and a known content of calories, protein, calcium and iron. The diet model determines the cheapest combination of foods that still satisfies the patients' minimum daily nutritional requirements.
OR — LP Model for the Maximum Flow Problem
General LP Model
Let be a directed network with source and sink . Each arc has capacity .
Decision variables:
Objective function: Maximize the total flow from source to sink
Constraints:
Capacity constraints:
Flow conservation at every intermediate node (flow in = flow out):
Non-negativity:
Why the Model is Linear
Every term in the objective function and in every constraint is of the form multiplied by a constant (here, the constant is 1). No variable is raised to a power, no two variables are multiplied together, and no variable appears in a denominator. Hence both the objective function and all constraints are linear functions of the decision variables, so the model is a linear programming model.
Two Applications
- Telecommunication networks: Determining the maximum volume of data (calls or internet traffic) that can be sent from one exchange to another through cables of limited capacity.
- Water supply and pipeline systems: Finding the maximum quantity of water that can be delivered from a reservoir to a city through a network of pipes of fixed diameters.
- Road and railway traffic: Computing the maximum number of vehicles per hour that can pass from one point of a city to another, used for traffic planning.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from TU 4 Years BSc 4th Yr Plant Pathology (Bachelor Level [4 Yrs.]/Science & Tech. / IV Year · Plant Pathology and Protection [Bot.403] · 2082), TU 4 Years BSc 4th Yr Linear (Bachelor Level (4 Yrs.)/Science & Tech. / IV Year · Linear Programming (MAT.404) · 2082), TU 4 Years BSc 4th Yr Computational (Bachelor Level (4 Yrs.)/Science & Tech./IV Year · Computational Course (COM 408) · 2082), TU 4 Years BSc 4th Yr Computational (Bachelor Level (4 Yrs.) Science & Tech. / IV Year · Computational Course (COM 408) · 2080), TU 4 Yrs BSc 4th Yr Computational (Bachelor Level (4 Yrs.)/Science & Tech./IV Year · Computational Course (COM 408) · 2081), TU 4 Years BSc 4th Yr Environmental and (BSc 4th Year · Environmental and Biodiversity (Bot. 401) · 2082), TU 4 Years BSc 4th Yr Mechanics 2082 (Bachelor Level (4 Yrs.) /Science & Tech. / IV Year · MAT : 403 · 2082), TU 4 Years BSc 4th Yr Modern Algebra (Bachelor Level (4 Yrs.) Science & Tech. / IV Year · MAT : 401 · 2082), TU 4 Years BSc 4th Yr Material Science (Bachelor Level (4 Yrs.)/Science & Tech. / IV year · Material Science (Phy.405) · 2074), TU 4 Years BSc 4th Yr Quantum Mechanics (Bachelor Level (4 Yrs.)/Science & Tech. / IV year · PHY-401 (New Course) · 2082), TU 4 Years BSc 4th Yr Spatial and (Bachelor Level [4 Yrs.]/Science & Tech. / IV Year · Spatial and Survey Technology [STAT. 407] (Interdisciplinary Paper) · 2081) and TU 4 Years BSc 4th Yr Econophysics (BSc 4th Year · Econophysics-Interdisciplinary (Phy. 407) · 2078). Answers are written for this site; check them against your class notes.