The Simplex Algorithm
Basic Concepts and Principles

The simplex algorithm performs iterations into the extreme points set of feasible region, checking for each one if Optimalit criterion holds.

The Simplex Algorithm whose invention is due to George Dantzig in 1947 and in 1975 earned him the National Medal of Science is the main method for solving linear programming problems.
Given a linnear programming standard problem P,
Minimizar Ctx
Sujeto a
Ax = b
x ≥ 0
Donde
\( \,\,A \in M_{mxn}, con \, Rk(A)=m\)
\( \,\, b\in R^{m}, \, C\in R^{n}, \,\, n \geqslant m \)
Thus, m is the number of constraits (files of matrix A or dimension of vector b) and n is the number of variables (columns of matriz A or dimension of vector C).
If P has optimal solution x
k finite, we know from
Linear Programming Theory that x
k is contained into the
extreme points subset of feasible points set, S.
Simplex Algorithm basic idea is to perform iterations into extreme points set until a condition called "optimality criterion" holds.
If it holds at a certain extreme point x
k, then this x
k then such point
is the solution that we are looking for.
Extended Theory
Suppose that x,
extreme point of S.
Because the extreme points set is formed by solutions of Ax=b subsystems, x can be write as
\( x=\begin{bmatrix} B^{1}b \\ 0\end{bmatrix} \).
with B mxmsquare A submatrix with rank m.
We can decompose A in B and N submatricesin following mode
\( A=\begin{bmatrix} B \\ N\end{bmatrix} \)
B as said, is submatrix with rank m
and N is the matrix formed with the remaining columns from A.(Remember that n≥m).
Lets w another point from the feasible region S. Then
Aw = b, ie
\(Bw_{B} + Nw_{N} = b \)
Because B is invertible
\(w_{B} = B^{1}b  B^{1}Nw_{N} \)
Applying C
t to w we obtain
\( C^{t}w = C_{B}^{t}w_{B} + C_{N}^{t}w_{N} = C_{B}^{t}(B^{1}b  B^{1}Nw_{N}) + C_{N}^{t}w_{N} \).
Because w belongs to feasible region, we know that
w
N ≥ 0, so, if x were the optimal solution, then it must holds
\((1) \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,C_{N}^{t}C_{B}B^{1}N\, >\, 0\)
This is the basic idea from the Simplex Algorithm that we were refering before,
and it is call
Optimality Criterion
The Simplex Algorithm Optimality Criterion
$$ C_{N}^{t}C_{B}B^{1}N\, >\, 0 $$
If this condition holds, then x is the optimal solution of P.
The criterion equation has as coordinates
c
j  C
BtB
1 a
j
= c
j  C
Bty
j
= c
j  z
j
Being a
j, column vector of N.
In resume, optimality criterion is
z
j  c
j < 0, con z
j = C
Bt B
1 a
j
Suposse now than (1) does not holds, ie
C
Nt  C
Bt B
1 N ≥ 0 (2)
them there are two possibilities ...
1) yj = B1aj ≤ 0 ∀j, then we can build
x = w + λ d
j, being d
j = (B
1a
j, e
j)
t
we know that d
j is an extreme direction of feasible set S, in particular
Ad
j = 0
so x = w + λ d
j is also feasible solution ∀ λ ≥ 0.
In another way
C
tx = C
tw + λd
j = C
tw + λ(C
tB
1a
j) d
j = C
tw  λ(z
j  c
j) → ∞ when λ → ∞
This means that we can make the solution as small as
want without leaving the feasible set S and so this is a
Unbounded case solution
2) The Vector
yj = B1aj has someone positive component
Them is possible to build other feasible solution (it will be into the
extreme point of S) where the function is smaller
The new solutions is build as follows
x = w + λd
j
being d
j = (B
1a
j e
j)
t
and
λ = min{β/y
ij : y
ij > 0}, β = B
1 b.
With this value λ, x is feasible solution and if for example
λ = β
j/ y
ij
Then x is the basic solution associed to the matrix
B
, = (a
1, a
2, ..., a
r1, a
j, a
r+1, ..., , a
m )
Ie,
That is, we changed a vector by another (we have substituted the vector in r position for which is in place j).
In resume we have built a solution from other.
Note: if there are various indexes satisfying
z
j  c
j > 0
Then the operations is performed on the index k that satisfies
z
j  c
k = max (z
j  c
j), con z
j  c
j > 0
Overview of the Simplex Method
The extreme points x0, ..., xs, are the solutions for the systms
Bx=b, with B mxm submatrix of initial matrix A.
The optimal solution, if there, should be between these points...
Given an extreme point xi in the feasible set, we check if the Optimality criterion holds for it, if does then xi is the optimal solution founded.
Otherwise, one of these two situations can happen:
1) Unbouded Solution.
2) It is possible to iterate to next extreme point and
test the optimality criterion for it.
This is the simplex algorithm basic idea, iterating between the extreme points of feasible set,
which are solutions of linear systems equations taken from square submatrices of constraints matrix A, and make this until
one of them meets the optimality criterion.
There remains the problem of obtaining these solutions, we will see in
section
Simplex calculations
how Simplex algorithm
offers us a calculation in which there is not need to perform the inverse of the matrix A. This calculation is called pivoting the matrix and is another basic element of the simplex algorithm.
Was useful? want add anything?
Post here
Post from other users
Admin:
20151127 12:39:55
Hi, Ayodeji Omoboye.
You can use our tool in.
Simplex Algorithm online to solve this problem.
Aparently problem has infinte possible solutions.
Regards.
Carlos
Ayodeji Omoboye:
20151127 11:37:03
Max P = 3x + 2y
Subject To
2x + y ≤ 18
2x + 3y ≤ 42
3x + y ≤ 24
x ≥ 0, y ≥ 0
Solve the problem using the simplex method in linear programming
Admin:
20150129 12:49:1
Hi Malli.
You can insert your problem in "the simplex algorithm" in this same web at
http://www.mathstools.com/section/main/simplex_online
To obtain
X1= 7/4,
X2=9/8,
X3=0
after 4 iterations
Malli:
20150129 10:39:14
z= 3x1 + 2X2  x3
min(Z)
Subject to
x1 + 2X2  3x3 = 4
4x1  x3 =7
2x1  3x2 + x3 <=5
bashir:
20131212 22:25:24
it was very benefit for me...
thank you...
could you post it to my Email?!
Rudra Prakash:
20130204 13:49:36
thnks a lot.its very very very useful to me...
arun:
20121211 11:27:51
Thanks for this theory and worked samples.
It was very heplfull for me!!!
Post here