Example №8. Solving the Linear Programming Problem Using the Simplex Method. Region of Feasible Solutions is an Empty SetThis solution is done by the program presented on the site.
Problem:
Find the maximum value of the function subject to the constraints:   3  x_{1}  +  5  x_{2}  ≤  30   4  x_{1}    3  x_{2}  ≤  12    x_{1}    3  x_{2}  ≥  6  x_{1} ≥ 0 x_{2} ≥ 0
Solution:
1.This is a necessary condition for solving the problem: the numbers on the right parts of the constraint system must be nonnegative. This condition is done.
2. This is a necessary condition for solving the problem: all constraints must be equations.   3  x_{1}  +  5  x_{2}  ≤  30   4  x_{1}    3  x_{2}  ≤  12    x_{1}    3  x_{2}  ≥  6 
  3  x_{1}  +  5  x_{2}  +   S_{1}        =  30   4  x_{1}    3  x_{2}     +   S_{2}     =  12    x_{1}    3  x_{2}           S_{3}  =  6 
S_{1} ≥ 0, S_{2} ≥ 0, S_{3} ≥ 0. The entered variables S_{1}, S_{2}, S_{3}, are called slack variables.
3. Finding the initial basis and the value of the function F which corresponds to the found initial basis.
What is a basis? A variable is called a basic variable for an equation if it enters into this equation with a coefficient of one and does not enter into other equations system (provided that there is a nonnegative number on the right side of the equation).
If each equation has a basic variable, then they say that the system has a basis.
Variables that are not basic are called nonbasic.
What is the idea of the simplex method?
Each basis is corresponded to one function value. One of them is the maximum value of the function F.
We will move from one basis to another.
The next basis will be chosen in such a way that the value of the function F will be no less than we have now.
Obviously, the number of possible bases for any problem is not very large.
So sooner or later the answer will be received.
How will we move from one basis to another?
It is more convenient to record the solution in the form of tables. Each row of the table is equivalent to a system equation. The highlighted row consists of the coefficients of the function (see the table below). This allows us not to rewrite variables every time. It saves time.
In the highlighted row, select a maximum positive coefficient (we can select any positive coefficient).
This is necessary in order to get a value of the function F no less than we have.
Column is selected.
For the positive coefficients of the selected column, we count the coefficient Θ and select the minimum value. This is necessary in order to get nonnegative numbers in the right part of the equations after moving to another basis.
Row is selected.
An element is found that will be basic. Next, we will need to calculate.
Does our system have a basis?   3  x_{1}  +  5  x_{2}  +   S_{1}        =  30   4  x_{1}    3  x_{2}     +   S_{2}     =  12    x_{1}    3  x_{2}           S_{3}  =  6 
There is not a basis in our system. We cannot begin to solve our problem. We need to find it. To do this, we will solve an auxiliary problem. If there is not a basic variable in the equation, add an artificial variable to it.   3  x_{1}  +  5  x_{2}  +   S_{1}           =  30   4  x_{1}    3  x_{2}     +   S_{2}        =  12    x_{1}    3  x_{2}           S_{3}  +   R_{1}  =  6 
R_{1} ≥ 0. The entered variable R_{1} is called an artificial variable. Let's consider a function W and we will find its minimum value. The algorithm for finding the minimum value of the function W has only one difference from the algorithm considered above. W  =  6    x_{1}  +  3  x_{2}  +  S_{3} 

Nonbasic variables are zero. In the mind, we can find the values of the basic variables. (see system)
Function W contains only nonbasic variables. Therefore, the value of the function W for this basis can be found in the mind.
x_{1} = 0 x_{2} = 0 S_{3} = 0 S_{1} = 30 S_{2} = 12 R_{1} = 6 
=> W = 6 
Step №1
x_{1}  x_{2}  S_{1}  S_{2}  S_{3}  R_{1}  const.  Θ  3  5  1  0  0  0  30  30 : 3 = 10  4  3  0  1  0  0  12  12 : 4 = 3  1  3  0  0  1  1  6  6 : 1 = 6  1  3  0  0  1  0  W  6   3  5  1  0  0  0  30   1  3/4  0  1/4  0  0  3   1  3  0  0  1  1  6   1  3  0  0  1  0  W  6   0  29/4  1  3/4  0  0  21   1  3/4  0  1/4  0  0  3   0  9/4  0  1/4  1  1  3   0  9/4  0  1/4  1  0  W  3  
Nonbasic variables are zero. In the mind, we can find the values of the basic variables. (see table)
Function W contains only nonbasic variables. Therefore, the value of the function W for this basis can be found in the mind. (see the highlighted row in the table)
x_{2} = 0 S_{2} = 0 S_{3} = 0 x_{1} = 3 S_{1} = 21 R_{1} = 3 
=> W  3 = 0 => W = 3 
There are not any negative coefficients in the highlighted row. Therefore, the minimum value of the function W was found.
But there are artificial variables in the basis.
Therefore, the region of feasible solutions is an empty set. Result: Region of feasible solutions is an empty set.
It is interesting: At each step, the function value is changed by a value equal to the product of the selected coefficient of the highlighted row by Θ_{min}.
If the numbers allow you to count in the mind, then you can check it yourself.
© 20102020, for all questions please write to matematika1974@yandex.ru
