Linear Programming Problems

TEMATH has tools for solving linear programming problems using either the graphical method or the simplex method.

Caution: TEMATH's tools will write the values of computed results at the bottom of this Report window. This will cause you to constantly scroll between the computed results and the instructions for this activity. You may want to print a copy of the contents of the Report window before you begin this activity.


Using the Graphical Method to Solve a Linear Programming Problem

Example 1:

Maximize   z = 6x + 8y   subject to the constraints:

2x + 9y<=36
4x + 3y<=42
x>=0, y >= 0


For this example, the constraints and objective function have already been entered into TEMATH. To enter a linear program, do the following:

To enter a constraint
, To enter and fill in a linear program template,
To analyze this linear programming problem, do the following:


Note that the Tracker tool icon Rectangular Tracker has been highlighted and that a black line is drawn in the Graph window representing the objective function for a particular value of z. To visualize where the objective function attains its maximum value,


To find the maximum value more precisely,



Example 2:

Minimize  z = 150x + 120y  subject to the constraints:

 x + y<=150
2x + y<=200
 x + y >= 60
x >= 10, y >= 20



Drag the objective function line to visualize where the minimum value will occur within the region of feasible solutions.

Find the exact minimum (and maximum) value of the objective function by using the Domain & Range window to traverse all the corner points.



Using the Simplex Method to Solve a Linear Programming Problem


Example 3:

Maximize   z = 5 x1 + 7 x2   subject to the constraints:

  x1 +   x2<=5
2 x1 + 3 x2<=12
x1 >= 0, x2 >= 0


The matrix containing the constraints and the objective function is saved in the Work window as Example3[3,3].


To simply solve the linear programming problem,


To find the Simplex Tableau and step through the Simplex method,


To graph this linear programming problem,


It is only possible to graphically solve linear programming problems in two variables.

Example 4 (Phase I - Phase II Method):

Minimize  z = 1500 x1 + 2400 x2  subject to the constraints:

4 x1 +   x2 >= 24
2 x1 + 3 x2 >= 42
  x1 + 4 x2 >=36
x1 >= 0, x2 >= 0


The matrix containing the constraints and the objective function is saved in the Work window as Exampl4[4,3].


To simply solve the linear programming problem,
To find the Simplex Tableau and step through the Simplex method,


To graph this linear programming problem,



A Linear Programming Problem with Three Variables

Example 5:

Maximize  z = 4 x1 + 6 x2 + 5 x3  subject to the constraints:

x1 + 2 x2 + 3 x3<=18
x1 + 3 x2 +   x3<=12
x1 >= 0, x2 >= 0, x3 >= 0


The matrix containing the constraints and the objective function is saved in the Work window as Exampl5[3,4].



Practice Problems

Solve the following linear programming problem using the Graphical method.

Maximize   z = 4x + 5y   subject to the constraints:

x +  y<=10
2x + 3y<=22
x >= 0, y >= 0



Solve this same linear programming problem using the Simplex method.


Return to Topic Start Return to Examples Menu

Copyright 2000-2008 Adam O. Hausknecht and Robert E. Kowalczyk