Professional Documents
Culture Documents
EMMA 04 Simplex Method Students4
EMMA 04 Simplex Method Students4
Simplex Method.
General and Standard form of LP problem.
Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 1 / 29 Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 2 / 29
Simplex Method. Canonical form. Simplex Method. Basic and non-basic variables.
Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 3 / 29 Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 4 / 29
Simplex Method. Basic and non-basic variables. Simplex Method. Basic and non-basic variables.
Example 4.1 – formulate a mathematical model and build the canonical form. Requirements on Simplex algorithm.
Agricultural cooperative has 10 hectares of arable land on which wants to grow medicinal plants: The simplex method is an universal method applicable to all types of LP problems, regardless
agrimony, chamomile and peppermint. Production costs must not exceed 27 thousand CZK, the number of variables and constraints. It is a deterministic iterative method, based on a simple
expected revenues from production should not fall below 65 thousand CZK. mathematical algorithm. This algorithm must fulfill all these requirements:
Agrimony Camonile Peppermint • resultativity requirement – we always get a concrete result
Costs in ths. CZK/ha 3 3 2 • unambiguous requirement – each step is exactly determined by the decision procedure
Revenues in ths. CZK/ha 6 10 5
Profit in ths. CZK/ha 3 7 3
• repeatability requirement – use of the same data gives always the same result
Determine the production structure in order to maximize profit from the production.
• universality requirement – the Simplex method can be used for all types of LP problems
The meaning of iterativity is, that after final count of iterations we always get an optimal solution
or we find out that the LP problem does not have (feasible or optimal) solution.
Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 5 / 29 Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 6 / 29
Simplex Method. Basic and non-basic variables. Simplex Method. Basic and non-basic variables.
Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 7 / 29 Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 8 / 29
Simplex Method. Basic and non-basic variables. Simplex Method. Algorithm of the Simplex Method.
Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 9 / 29 Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 10 / 29
Simplex Method. Algorithm of the Simplex Method. Simplex Method. Initial simplex table.
Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 11 / 29 Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 12 / 29
Simplex Method. Optimality test and basis change. Simplex Method. Pivot cell.
Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 13 / 29 Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 14 / 29
Simplex Method. Results of the simplex method. Simplex Method. Results of the simplex method.
When solving LP problems, the simplex method can lead to the following results: Problem has 1 basic optimal solution:
• problem has optimal solution: Optimality test is fulfilled. In the index row there are all non-basic ∆j 6= 0.
• 1 basic optimal solution,
• 1 basic optimal solution and ∞ non-basic optimal solutions, 1 1 0 0 0 −M
• 2 (or more) basic optimal solutions and ∞ non-basic optimal solutions, ~T
C basis = ~b x1 x2 x3 x4 x5 x6
B
• problem has no finite optimal solution, 1 x2 = 6 0 1 0 1/2 −1/2 0
• problem has no feasible solution. 0 x3 = 4 0 0 1 1/2 −1/2 −1
1 x1 = 3 1 0 0 −1/4 3/4 0
step 3 zmax = 9 0 0 0 1/4 1/4 M
Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 15 / 29 Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 16 / 29
Simplex Method. Results of the simplex method. Simplex Method. Results of the simplex method.
Problem has 2 (or more) BOS and ∞ N-BOS: Problem has 1 basic optimal solution and ∞ non-basic optimal solutions:
Optimality test is fulfilled. In the index row there is non-basic ∆j = 0. Optimality test is fulfilled. In the index row there is non-basic ∆j = 0, but the pivot row can not be
identified because in the pivot column k there are all αi,k ≤ 0.
−2 1 0 0 0 −M −M
~T
C basis = ~b x1 x2 x3 x4 x5 x6 x7 −2 3 0 0 0 −M −M
B
~T
C basis = ~b x1 x2 x3 x4 x5 x6 x7
1 x2 = 4 0 1 0 −1/2 1/2 0 1/2 B
−2 x1 = 5 1 0 0 −3/4 1/4 0 3/4 3 x2 = 4 0 1 0 −1/2 1/2 0 1/2
0 x3 = 2 0 0 1 −1/2 1/2 −1 1/2 −2 x1 = 5 1 0 0 −3/4 1/4 0 3/4
step 3 zmax = −6 0 0 0 1 0 M M −1 0 x3 = 2 0 0 1 0 1/2 −1 1/2
step 3 zmax = 2 0 0 0 0 1 M M
Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 17 / 29 Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 18 / 29
Simplex Method. Results of the simplex method. Simplex Method. Results of the simplex method.
Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 19 / 29 Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 20 / 29
Simplex Method. Results of the simplex method.
Simplex Method.
Example 4.1 – Simplex Method.
Example 4.1 – using the Simplex Method find the optimal solution of following example:
zmax = 2x1 − 7x2 + 3x3
x1 + x2 ≤ 8
2x1 + 4x2 − x3 ≥ 6
2x1 − 2x2 + x3 = 8
x1 , x2 , x3 ≥ 0
Pavel Kolman (FBE Mendelu) Economic Mathematical Methods 4. Simplex Method. October 20, 2016 21 / 29
Examples to practice 4. Examples to practice 4.
Simplex Method.
Example 4.2
Pavel Kolman (FBE Mendelu) Examples to practice 4. October 20, 2016 22 / 29 Pavel Kolman (FBE Mendelu) Examples to practice 4. October 20, 2016 23 / 29
Examples to practice 4.
Simplex Method.
Example 4.3