Class 12 Maths, Worked in Full Past papersGet updates
Chapter 12 · Linear Programming

Exercise 12.1 · Q10: Maximise Z=x+yZ = x + y⁠: no feasible region

Exercise 12.1No feasible region · Section 12.2.2
The question

Solve the following Linear Programming Problems graphically:

Maximise Z=x+yZ = x + y⁠, subject to x−y≤−1x - y \le -1⁠, −x+y≤0-x + y \le 0⁠, x,y≥0x, y \ge 0⁠.

Exam answer

Draw the lines (graph):

x−y=−1x - y = -1 through (−1,0)(-1, 0) and (0,1)(0, 1)⁠;

−x+y=0-x + y = 0 through (0,0)(0, 0) and (5,5)(5, 5)⁠.

At (0,0)(0, 0)⁠: 0≤−10 \le -1 is false, so shade the side of x−y=−1x - y = -1 away from the origin. For −x+y≤0-x + y \le 0 test (1,0)(1, 0)⁠: −1≤0-1 \le 0 is true, so shade the side of −x+y=0-x + y = 0 that contains (1,0)(1, 0)⁠.

The two lines are parallel, and the two shaded parts have no common point (graph). Indeed, adding the two constraints,

(x−y)+(−x+y)≤−1+0⇒ 0≤−1,\begin{aligned} (x - y) + (-x + y) &\le -1 + 0 \\ \Rightarrow\ 0 &\le -1, \end{aligned}

which is false. So no point satisfies both constraints.

∴\therefore There is no feasible region, hence no feasible solution: ZZ has no maximum value.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Before looking for corners, there must be a region. Here the two constraints contradict each other: x−y≤−1x - y \le -1 says y≥x+1y \ge x + 1⁠, so yy is more than xx⁠, while −x+y≤0-x + y \le 0 says y≤xy \le x⁠. No point obeys both, so there is nothing to maximise over.

Given, to find, and the plan
Given
Z=x+yZ = x + y and the constraints x−y≤−1x - y \le -1⁠, −x+y≤0-x + y \le 0⁠, x≥0x \ge 0⁠, y≥0y \ge 0⁠.
To find
The maximum of ZZ⁠, or show that there is none.
Plan
(1) and (2) Draw each line and choose its side. (3) Show that the two sides have no common point. (4) Conclude.

Basics you need

1Lines and sides

Draw each line from two points and test a point off the line to choose its side. Basics: where a line meets the axes · Basics: which side

2The feasible region is the overlap

A point is feasible only if it obeys every constraint. If the kept sides have no common point, there is no feasible region. Basics: where the shadings overlap

3Adding inequalities

If a≤ba \le b and c≤dc \le d⁠, then a+c≤b+da + c \le b + d (Class XI, Linear Inequalities).

Solution

  1. Draw the line x−y=−1x - y = -1 and choose its side

    Put y=0y = 0⁠: x=−1x = -1⁠. Put x=0x = 0⁠: −y=−1-y = -1⁠, so y=1y = 1⁠. So the line joins (−1,0)(-1, 0) and (0,1)(0, 1)⁠; it is the line y=x+1y = x + 1⁠.

    Test (0,0)(0, 0) in x−y≤−1x - y \le -1⁠: 0≤−10 \le -1 is false, so this constraint keeps the side of the line away from the origin, the side above it: x−y≤−1x - y \le -1 means y≥x+1y \ge x + 1⁠.

    The xx-axis point (−1,0)(-1, 0) lies to the left of the origin, but it still fixes the line. Adding y+1y + 1 to both sides of x−y≤−1x - y \le -1 gives x+1≤yx + 1 \le y⁠, which shows directly that the kept side is above the line.
  2. Draw the line −x+y=0-x + y = 0 and choose its side

    The line −x+y=0-x + y = 0 is y=xy = x⁠: it passes through (0,0)(0, 0) and (5,5)(5, 5)⁠.

    The origin lies on it, so test (1,0)(1, 0) in −x+y≤0-x + y \le 0⁠: −1≤0-1 \le 0 is true. So this constraint keeps the side of the line that contains (1,0)(1, 0)⁠, the side below it: −x+y≤0-x + y \le 0 means y≤xy \le x⁠.

    A test point on the line gives "0≤00 \le 0", which decides nothing; any point off the line works. Both lines have slope 1 (y=x+1y = x + 1 and y=xy = x⁠), so they are parallel and never meet.
  3. No point obeys both constraints

    x y O 1 2 3 4 6 7 2 3 4 5 6 7 (−1, 0) (0, 1) (5, 5) x − y = −1 −x + y = 0 x − y ≤ −1 −x + y ≤ 0
    Exercise 12.1 Q10, drawn with equal scales. Gold: the part of the first quadrant with x−y≤−1x - y \le -1⁠, above the line y=x+1y = x + 1⁠. Violet: the part with −x+y≤0-x + y \le 0⁠, below the line y=xy = x⁠. The lines are parallel, and the two shaded parts have no common point.

    The graph shows a gap between the gold and violet parts. To prove it for every point, add the two constraints:

    (x−y)+(−x+y)≤−1+0,that is 0≤−1,\begin{aligned} (x - y) + (-x + y) &\le -1 + 0, \\ \text{that is } 0 &\le -1, \end{aligned}

    which is false. So no point (x,y)(x, y) satisfies both x−y≤−1x - y \le -1 and −x+y≤0-x + y \le 0⁠, and therefore none satisfies all the constraints.

    In words: the first constraint needs y≥x+1y \ge x + 1 and the second y≤xy \le x⁠; together they would give x+1≤y≤xx + 1 \le y \le x⁠, that is 1≤01 \le 0⁠. The gap between the parallel lines y=xy = x and y=x+1y = x + 1 belongs to neither side. The conditions x,y≥0x, y \ge 0 are not even needed for this.
  4. Conclude

    There is no feasible region, and hence no feasible solution. With no feasible point at all, Z=x+yZ = x + y has no maximum value (and no minimum either).

    An optimal solution must be a feasible point, and there are none, so the Corner Point Method has nothing to work on: no region, no corners, no table of ZZ⁠. This is the situation of the book's Example 5.
Result

Adding the constraints x−y≤−1x - y \le -1 and −x+y≤0-x + y \le 0 gives 0≤−10 \le -1⁠, which is false, so no point satisfies them both:

there is no feasible region,\text{there is no feasible region,}

hence no feasible solution, and Z=x+yZ = x + y has no maximum value. (Textbook answer: No feasible region, hence no maximum value of Z.)

Check it with numbers

Points that obey x−y≤−1x - y \le -1 break −x+y≤0-x + y \le 0⁠: (0,1)(0, 1) gives −0+1=1>0-0 + 1 = 1 > 0⁠; (2,5)(2, 5) gives 3>03 > 0 ✓.

Points that obey −x+y≤0-x + y \le 0 break x−y≤−1x - y \le -1⁠: (1,0)(1, 0) gives 1>−11 > -1⁠; (3,3)(3, 3) gives 0>−10 > -1 ✓.

A computer check of all 441 whole-number points with 0≤x,y≤200 \le x, y \le 20 found none that obeys both constraints ✓.

Common mistakes
  1. Looking for the crossing point of the two lines. They are parallel (both have slope 1), so there is none.
  2. Shading towards the origin for x−y≤−1x - y \le -1⁠. The test 0≤−10 \le -1 is false.
  3. Testing (0,0)(0, 0) for −x+y≤0-x + y \le 0⁠. It lies on the line y=xy = x⁠; test a point off it, such as (1,0)(1, 0)⁠.
  4. Writing a maximum anyway. With no feasible point, there is no maximum; say so in words.
What to take away
  1. Always check that the kept sides overlap before looking for corners.
  2. Adding constraints (or combining them) can prove in one line that a region is empty.
  3. Exercise 12.1 has now shown every case: bounded (Q7), unbounded with an optimum (Q6), unbounded without one (Q9), and no region at all.

Every fact used, and where it comes from

FactUsed inSource
A line from two points; a test point off the line chooses the sideSteps 1, 2Class XI, Linear Inequalities (Basics, Basics)
Feasible region: common region of all the constraintsStep 3Section 12.2.2 (Basics)
Inequalities in the same direction can be addedStep 3Class XI, Linear Inequalities
No feasible region means no feasible solutionStep 4Example 5, Section 12.2.2 (Lesson)
AnswerResultNCERT answer key, Exercise 12.1 Q10
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →