Skip to content

Linear Programming: questions with answers

Class 12 Maths, Chapter 12 (NCERT). 15 questions by concept, 2 with pictures. Open “Show answer” for the answer and why.

How to teach this chapter · Common misconceptions & worked visual for this chapter

Linear programming problems and their mathematical formulation

Question 1

A firm wants its running cost Z=16x+14yZ = 16x + 14y to be as small as possible, where the production plan must satisfy 3x+7y≤603x + 7y \leq 60, x+y≤40x + y \leq 40, x≥0x \geq 0, y≥0y \geq 0. The linear programming problem is to

  1. (a)maximise ZZ, because ZZ is linear in xx and yy
  2. (b)maximise ZZ, because every constraint is of the ≤\leq type
  3. (c)neither; a cost function has no optimum
  4. (d)minimise ZZ
Show answer

(d) minimise ZZ

What is to be optimised, and in which direction, is stated by the problem: the firm wants the cost as small as possible, so ZZ is to be minimised. The direction of the constraint inequalities has nothing to do with it - the chapter minimises Z=200x+500yZ = 200x + 500y in Example 2 where one constraint is of the ≤\leq type, and maximises ZZ elsewhere over regions cut out by ≥\geq constraints.

Question 2

A linear programming problem reads:

Maximise Z=6x+2yZ = 6x + 2y

subject to 5x+y≤405x + y \leq 40, x+y≤24x + y \leq 24, x≥0x \geq 0, y≥0y \geq 0.

In this problem the function Z=6x+2yZ = 6x + 2y is called

  1. (a)a decision variable
  2. (b)a constraint
  3. (c)the objective function
  4. (d)a feasible solution
Show answer

(c) the objective function

The linear function whose maximum or minimum is being sought is the objective function. Here that function is Z=6x+2yZ = 6x + 2y. The inequalities written under 'subject to' are the constraints, xx and yy are the decision variables, and a feasible solution is a point of the region those constraints cut out.

Question 3

A linear programming problem reads:

Maximise Z=7x+8yZ = 7x + 8y

subject to 5x+y≤405x + y \leq 40, x+y≤36x + y \leq 36, x≥0x \geq 0, y≥0y \geq 0.

In this problem the conditions 5x+y≤405x + y \leq 40, x+y≤36x + y \leq 36, x≥0x \geq 0, y≥0y \geq 0 are called

  1. (a)the feasible region
  2. (b)the objective function
  3. (c)the optimal solution
  4. (d)the constraints
Show answer

(d) the constraints

The linear inequalities or restrictions on the variables of a linear programming problem are its constraints; x≥0x \geq 0 and y≥0y \geq 0 are the non-negative restrictions and are constraints too. The objective function is the single function Z=7x+8yZ = 7x + 8y being maximised; the feasible region is the region these constraints cut out, not the constraints themselves.

The Corner Point Method on a bounded feasible region

Question 4

The shaded region in the figure is the feasible region of a linear programming problem, and its corner points are labelled. The maximum value of Z=6x+9yZ = 6x + 9y over that region is

A(0, 16)B(7, 11)C(15, 0)
  1. (a)135
  2. (b)144
  3. (c)141
  4. (d)90
Show answer

(b) 144

Read the three corner points off the figure and substitute: Z(A)=144Z(A) = 144, Z(B)=141Z(B) = 141 and Z(C)=90Z(C) = 90. The region is bounded, so the largest of these, 144144, is the maximum. BB is the vertex furthest from the origin but 141141 is not the largest value, and 9090 answers the opposite question.

Question 5

The shaded region in the figure is the feasible region of a linear programming problem, and its corner points are labelled. The minimum value of Z=7x+9yZ = 7x + 9y over that region is

A(0, 14)B(9, 10)C(15, 0)
  1. (a)105
  2. (b)98
  3. (c)126
  4. (d)153
Show answer

(a) 105

Read the three corner points off the figure and substitute: Z(A)=126Z(A) = 126, Z(B)=153Z(B) = 153 and Z(C)=105Z(C) = 105. The region is bounded, so the smallest of these, 105105, is the minimum. AA is the vertex nearest the origin but 126126 is not the smallest value, and 153153 answers the opposite question.

Question 6

A linear programming problem asks only for the maximum of Z=2x+9yZ = 2x + 9y over a bounded feasible region. Does ZZ also have a minimum on that region?

  1. (a)no, because a minimum was not requested
  2. (b)no, because a bounded region gives only one extreme value
  3. (c)yes, but only if the region contains the origin
  4. (d)yes, and it occurs at a corner point of the region
Show answer

(d) yes, and it occurs at a corner point of the region

Yes. Theorem 2 attaches to the REGION, not to the question: a bounded feasible region gives ZZ both a maximum and a minimum, each at a corner point. The problem asking only for the maximum changes what has to be reported, not what exists, and the position of the origin is irrelevant.

The feasible region: graphing the constraints, corner points and boundedness

Question 7

In a linear programming problem no point satisfies all the constraints at the same time. It follows that

  1. (a)the problem has no feasible solution and hence no solution
  2. (b)the optimal value of ZZ occurs at the origin
  3. (c)the optimal value of ZZ is 00
  4. (d)the feasible region is unbounded
Show answer

(a) the problem has no feasible solution and hence no solution

When the half-planes determined by the constraints have no point in common there is no feasible region, so there is no feasible solution at all and the problem has no solution. There is nothing to evaluate ZZ at, so reporting a value of 00, or a value at the origin, invents a solution the problem does not have; and an empty region is not the same thing as an unbounded one.

Question 8

A feasible region of a linear programming problem is said to be bounded when

  1. (a)it lies in the first quadrant
  2. (b)all its constraints are of the ≤\leq type
  3. (c)it can be enclosed within a circle
  4. (d)it has finitely many corner points
Show answer

(c) it can be enclosed within a circle

A feasible region of a system of linear inequalities is bounded if it can be enclosed within a circle; otherwise it is unbounded, meaning it extends indefinitely in some direction. Lying in the first quadrant is not enough - the region x≥0x \geq 0, y≥0y \geq 0, x+y≥8x + y \geq 8 lies there and runs on for ever - and the direction of the inequality signs settles nothing either.

Question 9

The feasible region determined by x+y≥6x + y \geq 6, x+y≤20x + y \leq 20, x≥0x \geq 0, y≥0y \geq 0 is

  1. (a)unbounded, since the region is not a triangle
  2. (b)empty, since a sum cannot be both at least 66 and at most 2020
  3. (c)unbounded, since one of the constraints is of the ≥\geq type
  4. (d)bounded, since it can be enclosed within a circle
Show answer

(d) bounded, since it can be enclosed within a circle

Every feasible point has x≥0x \geq 0, y≥0y \geq 0 and x+y≤20x + y \leq 20, so xx and yy each lie between 00 and 2020 and the whole region fits inside a circle. The region is therefore bounded, even though one of its constraints is of the ≥\geq type. Boundedness is a property of the region, not of the inequality signs.

Unbounded feasible regions and the open half-plane test

Question 10

In one linear programming problem the constraints have no point in common. In another the feasible region is unbounded and ZZ turns out to have no maximum. Which pair of statements is correct?

  1. (a)both problems have an optimal value of 00
  2. (b)neither problem can have an optimum, since neither region is bounded
  3. (c)the first has no feasible solution; the second has feasible solutions but no maximum
  4. (d)the first has feasible solutions but no maximum; the second has no feasible solution
Show answer

(c) the first has no feasible solution; the second has feasible solutions but no maximum

The first problem has an empty feasible region: no point satisfies all the constraints, so there is no feasible solution and nothing to optimise. The second has infinitely many feasible solutions - the region is full, it merely runs on for ever - and the failure is only that no feasible point maximises ZZ. Both end with the word 'no', but they fail in different places, and an optimum of 00 is not on offer in either.

Question 11

An unbounded feasible region has corner points (0,20)(0, 20), (2,6)(2, 6) and (10,0)(10, 0), and Z=3x+7yZ = 3x + 7y has positive coefficients. The open half plane on which ZZ is below every corner value misses the region, while the open half plane on which ZZ is above every corner value meets it. Which statement is correct?

  1. (a)ZZ has a minimum but no maximum
  2. (b)ZZ has a maximum but no minimum
  3. (c)ZZ has both a maximum and a minimum, given by the largest and the smallest corner values
  4. (d)ZZ has neither a maximum nor a minimum, since the region is unbounded
Show answer

(a) ZZ has a minimum but no maximum

The two tests are independent and they answer differently here. Nothing below the smallest corner value 3030 is feasible, so 3030 is the minimum of ZZ. Something above the largest corner value 140140 IS feasible, so 140140 is beaten and ZZ has no maximum. An unbounded region neither guarantees an optimum nor forbids one; only the test decides, and it can decide the two extremes differently.

Question 12

The corner points of an unbounded feasible region are (0,9)(0, 9), (3,8)(3, 8) and (12,0)(12, 0). For Z=2x+4yZ = 2x + 4y the open half plane on which ZZ is smaller than every corner value has no point in common with the feasible region. The minimum value of ZZ is

  1. (a)24
  2. (b)36
  3. (c)ZZ has no minimum value
  4. (d)38
Show answer

(a) 24

The corner values are 3636, 3838 and 2424, so the smallest is 2424. The region is unbounded, so that value only becomes the minimum once the test is passed - and here it is passed, because the open half plane below it misses the region entirely. So the minimum of ZZ is 2424; an unbounded region does not automatically mean no optimum.

Multiple optimal solutions and conditions on the objective coefficients

Question 13

The maximum of an objective function Z=px+qyZ = px + qy over a bounded feasible region is attained at two different corner points. What does that tell us?

  1. (a)the feasible region must be unbounded
  2. (b)the objective line px+qy=Zpx + qy = Z is parallel to the edge joining the two corner points
  3. (c)the two coefficients pp and qq must be equal
  4. (d)no point other than those two corner points is optimal
Show answer

(b) the objective line px+qy=Zpx + qy = Z is parallel to the edge joining the two corner points

If ZZ takes the same value at two corner points, the line px+qy=Zpx + qy = Z passes through both. So it lies along the edge joining them, parallel to that edge. This is about the slope −p/q-p/q matching the slope of the edge, not about pp and qq being equal. Every point of that edge gives the same optimal value, so the optimal set is far more than the two corners.

Question 14

A feasible region has corners P(0,18)P(0, 18) and Q(6,3)Q(6, 3). Both minimise Z=5x+2yZ = 5x + 2y. At which other point is the minimum attained?

  1. (a)(0,0)(0, 0)
  2. (b)no other point
  3. (c)(2,13)(2, 13)
  4. (d)(2,14)(2, 14)
Show answer

(c) (2,13)(2, 13)

Both corners give Z=36Z = 36. The segment joining them has this value throughout, and (2,13)(2, 13) lies inside it. The point (2,14)(2, 14) is off the segment and gives 3838. The origin gives 00, below the stated minimum, so it is infeasible.

Question 15

The maximum value of Z=4x+6yZ = 4x + 6y over a bounded feasible region is attained at both of the corner points (2,18)(2, 18) and (20,6)(20, 6). The number of points at which that maximum is attained is

  1. (a)infinitely many
  2. (b)finitely many, one for each corner point of the region
  3. (c)exactly two
  4. (d)exactly one
Show answer

(a) infinitely many

Both corner points give Z=116Z = 116. When two corner points produce the same maximum value, every point on the line segment joining them gives that same value as well - the objective line lies flush along that edge. A segment contains infinitely many points, so the maximum is attained at infinitely many points, not just at the two vertices the corner-point table happened to list.

Common misconception in Linear Programming

Open full misconception guide →

Can you optimise using just one constraint at a time?

Wrong

A point is feasible if it satisfies at least one constraint.

Why it feels right. Each inequality separately describes allowed points, so I combine the regions as an either-or.

Right

A feasible point satisfies every constraint simultaneously.

Worked example

The shaded polygon is the overlap of all constraints. (3, 1) lies outside x ≤ 2 even though it is below x + y = 5.
  1. With x + y ≤ 5, x ≤ 2 and x,y ≥ 0, (3,1) passes the first inequality but fails x ≤ 2.
  2. The point (2,3) passes all the inequalities.