Prashnikaप्रश्निका
Code
About

LPP solver (graphical method)

Solve a linear programming problem in two variables by the graphical method, as ISC Mathematics asks for it: the constraint lines and the shaded feasible region, every corner point with its value of Z, and the maximum or minimum.

How to use it

  1. 1Type the objective, e.g. Maximise Z = 5x + 3y.
  2. 2Type each constraint on its own line, including x, y >= 0 if the question has it.
  3. 3Press Solve to see the feasible region, every corner point and the optimum.

Write ≤ as <= and ≥ as >=. Remember x, y >= 0 if the question has it.

Worked example

Maximise Z = 5x + 3y

This is the kind of answer you get. Put these values in the boxes or type your own.

Answer

Maximum of Z
$\dfrac{235}{19}$
At
$x = \dfrac{20}{19}$, $y = \dfrac{45}{19}$

Graph

xy1234512345O3x + 5y = 153x + 5y = 155x + 2y = 105x + 2y = 10(0, 0)(0, 3)(20/19, 45/19)(2, 0)

The shaded part is the feasible region; the dots are its corner points.

Corner points

Corner (x, y)Z = 5x + 3y
(0, 0)0
(0, 3)9
($\dfrac{20}{19}$, $\dfrac{45}{19}$)$\dfrac{235}{19}$ ← optimal
(2, 0)10

Method

  1. Draw each constraint as a line: 3x + 5y = 15, 5x + 2y = 10, x = 0, y = 0
  2. Shade the side of each line that satisfies its inequality (test the origin when the line misses it). The region shaded by all of them is the feasible region.
  3. Find its corner points: where the boundary lines meet.
  4. Work out Z at each corner; the largest value is the maximum.

About the LPP solver (graphical method)

What it does

Solves a linear programming problem in two variables by the graphical (corner point) method: it draws each constraint line, shades the feasible region, lists every corner point with the value of Z there, and picks the maximum or the minimum.

The corner point method

  1. Draw each constraint as a line and shade the side that satisfies it.
  2. The feasible region is where all the shaded sides overlap. With x, y ≥ 0 it lies in the first quadrant.
  3. Find the corner points of the region.
  4. Work out Z at each corner point. The largest value is the maximum and the smallest is the minimum.

If no point satisfies every constraint, or the region is unbounded in the direction where Z keeps improving, there is no optimum and the tool says so.

How to write the input

Type ≤ as <= and ≥ as >=; the buttons under the box insert them. Write the objective as “Maximise Z = 5x + 3y” or “Minimise Z = 3x + 5y”, and x, y >= 0 as its own line.

Common questions

Do I have to type x, y >= 0?

Yes, if the question says x and y cannot be negative. Write it as its own line, x, y >= 0.

What is a corner point?

A point where two boundary lines of the feasible region meet. If Z has a maximum or minimum on a bounded region, it is reached at a corner point.

What if Z has the same best value at two corners?

Then every point on the edge joining them gives that value, and the tool says so in the answer.

Practise on real ISC questions

More Mathematics tools

All study tools →