Chapter 1 LP
Chapter 1 LP
programming
Sommaire
2.1 Linear algebra reminders . . . . . . . . . . . . . . . . . . . . . . . 14
2.1.1 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
D ⊂ Rn , x ∈ Rn , x = (x1 , x2 , ..., xn )
f :D→R
2
Z. Benméziane 1.1. A Mathematical Program
M ax f (x)
M in f (x)
Notation 1 (P ) x∈D or (P 0 ) x∈D
maximisation problem minimisation problem
A point x∗ ∈ D,such that f (x∗ ) is maximum (or minimum) is called an optimum solution of
max(x2 + 2)
Exemple 1 (P ) x ≤ −2
x≥3
3
Z. Benméziane 1.1. A Mathematical Program
0
To solve
(P ) equivale to solve (P ) defined as follows:
M ax g(x)
0
(P ) such that: g(x) = −f (x)
x∈D
or ≥)
a11 x1 +a12 x2 +... +a1n xn ≤ b1
a21 x1 +a22 x2 +... +a2n xn ≥ b2
+...
am x1 +am2 x2 +... +amn xn = bm
These equations and inequations are called the constraints of the linear program (P ).
A general linear program in the decision variables x1 , x2 , ..., xn is therefore of the following
form:
4
Z. Benméziane 1.1. A Mathematical Program
A firm produces two products A and B using raw materials I,II and III.
The quantities (in units) of materials I,II and III are 8,7 and 3 respectively.
To make a unit of A, we use 2 units of I and 1 unit of II, and to make a unit of B, we use 1
The sale of a unit of A brings a profit of 4 and that of a unit of B brings a profit of 5.
The contraints:
x1 ≥ 0
x2 ≥ 0
2x1 + x2 ≤ 8
x1 + 2x2 ≤ 7
x2 ≤ 3
5
Z. Benméziane 1.1. A Mathematical Program
2x1 + x2 ≤ 8
x1 + 2x2 ≤ 7
(P 1)
x2 ≤ 3
4x1 + 5x2 = Z(max), x1 , x2 ≥ 0
1.1.2 Notations
We consider that all the operations of addition, difference and product of matrices are known.
2. A is a m by n matrix
Aji :is the entry in the i-th row and j-th column of the matrix A.
8. Let A be a m by n matrix.
6
Z. Benméziane 1.1. A Mathematical Program
(c) AJI : represents the |I| ∗ |J| matrix with the elements are Aji , i ∈ I and j ∈ J.
Exemple 4 Given :
3
2 1 1 0 0 8 2
A= , b = , x =
1 2 0 1 0 7 0
0 1 0 0 1 3 0
1
c= 4, 5, 0, 0, 0 , y = 1, 2, 0 ,
explicite:
c = (4, 5)
7
Z. Benméziane 1.1. A Mathematical Program
A standard form:
. it is a maximization program,
A canonical form
Définition 3 Two linear programs (P ) and (P 0 ) are equivalent if for every feasable solution
of one, we can associate a feasble solution of the other such that the objective functions’s
8
Z. Benméziane 1.1. A Mathematical Program
then we can transform it into an equality constraint by adding a slack variable, say
indeed,
Ai x = bi the ith constraint of (P ), can be transformed in two inequalities
A i x ≤ bi
−Ai x ≤ −bi
Théorème 1 Every linear program can be transformed into an equivalent linear program
Preuve.
2. The constraints:
3. The variables:
9
Z. Benméziane 1.2. Duality
(a) if xi ≤ 0, then we replace every occurence of xi , by −x0i , where x0i is a non negative
decision variable.
(b) if xi is unrestricted in sign, then we can introduce two new decision variables x0i
and x00i restricted to be non negative and replace every occurrence of xi by x0i − x00i .
1.2 Duality
10
Z. Benméziane 1.2. Duality
≤8
2x1 +x2
≤7
x1 +2x2
(P1 ) x2 ≤3 is (D1 )
4x1 +5x2 = Z(max)
x ≥0 x ≥0
1 2
of maximisation, then evry linear program has a dual. Especially, the dual of the dual is the
primal.
max min
11
Z. Benméziane 1.2. Duality
x1 +x2 ≤ 8
−1x1 +2x2 = 3
x1 −x2 ≥ −2
(P ) (D)
5x1 +x2 ≥ 1, x1 ≥ 0
3x1 −2x2 = −1, x2 ≤ 0
5x1
+3x2 = Z(max)
then: cx ≤ yb
A.x ≤ b, x ≥ 0
y.A ≥ c, y ≥ 0
Corollaire 1 Let (P ) C.x = Z(max) and let (D) . its dual.
y.b
= W (min)
12
Z. Benméziane 1.2. Duality
suppose x and y are feasble solutions of (P ) and (D) respectively, such that cx = yb and
that cx∗ > cx, , but we have cx = yb, so cx∗ > yb, but this contradicts theorem 17.
13