Académique Documents
Professionnel Documents
Culture Documents
de
lalgorithme du simplexe
Forme standard
Aprs avoir transform les contraintes dingalit en galits, nous
retrouvons le problme sous sa forme standard o certaines variables
peuvent tre des variables dcart:
min
Sujet
a m1 x1 + a m 2 x 2 + ... + a mn x n = b m
x1 , x 2 , ..., x n 0
min z
Sujet a11 x1 + a12 x 2 + ... + a1n x n
= b1
a 21 x1 + a 22 x 2 + ... + a 2 n x n
.
= b2
.
.
.
.
a m1 x1 + a m 2 x 2 + ... + a mn x n
= bm
c1 x1 + c 2 x 2 + ... + c n x n z = 0
x1 , x 2 , ..., x n 0
+ a 1m +1 x m +1 + ... + a 1s x s + ... + a 1n x n = b1
x1 +
x2 +
.
+ a 2 m +1 x m +1 + ... + a 2 s x s + ... + a 2 n x n = b 2
.
x r + + a rm +1 x m +1 + ... + a rs x s + ... + a rn x n = b r
.
x m + a mm +1 x m +1 + ... + a ms x s + ... + a mn x n = b m
c m +1 x m +1 + ... + c s x s + ... + c n x n = z z
Itration typique
peut tre reprsenter dans le tableau suivant
{ }
Si c s 0, alors la solution
courante est optimale et
lalgorithme sarrte
Variable dentre
Variable dentre
bi
a is
br
xs =
= min
: a is > 0
1
m
a is
a rs
Variable dentre
Variable de sortie
tape 3: Pivot
Llment de pivot a rs est lintersection de la
ligne de la variable dentre xs et de la colonne
de la variable de sortie xr
Variable dentre
a rs
Variable de sortie
a rs
tape 3: Pivot
Divisons la ligne r par llment
de pivot a rs afin dobtenir la
ligne r rsultante
Variable dentre
a rs
Variable de sortie
1
a rs
tape 3: Pivot
Divisons la ligne r par llment
de pivot a rs afin dobtenir la
ligne r rsultante
Variable dentre
a rs
Variable de sortie
1
ars
ar m +1
ars
arn
ars
br
ars
tape 3: Pivot
Multiplions la ligne r rsultante
par a is pour la soustraire de la
ligne i du tableau. Ceci ramne le
coefficient de la variable dentre xs 0.
Variable dentre
a rs
Variable de sortie
1
ars
ar m +1
ars
arn
1
ars
br
ars
tape 3: Pivot
Multiplions la ligne r rsultante
par a is pour la soustraire de la
ligne i du tableau. Ceci ramne le
coefficient de la variable dentre xs 0.
Variable dentre
a rs
Variable de sortie
1
ars
ar m +1
ars
arn
1
ars
br
ars
tape 3: Pivot
Multiplions la ligne r rsultante
par a is pour la soustraire de la
ligne i du tableau. Ceci ramne le
coefficient de la variable dentre xs 0.
Variable dentre
a rs
Variable de sortie
1
ars
ar m +1
ars
arn
1
ars
br
ars
tape 3: Pivot
Multiplions la ligne r rsultante
par a is pour la soustraire de la
ligne i du tableau. Ceci ramne le
coefficient de la variable dentre xs 0.
Variable dentre
a rs
Variable de sortie
1
ars
ar m +1
ars
arn
1
ars
br
ars
Tableau rsultant
pour
amorcer la prochaine itration
Problmes quivalents
min z = 8x 6y
Sujet
=30
5x + 3y + u
2x + 3y
+ p =24
1x + 3y
+ h = 18
x, y, u, p, h 0
min z
Sujet
5x + 3y + u
=30
2x + 3y
+ p
=24
1x + 3y
+ h = 18
8x 6y
z = 0
x, y, u, p, h 0
= 30 5x 3y
p
= 24 2x 3y
h
= 18 1x 3y
z = 0 8x 6y
min z
Sujet
5x + 3y + u
=30
2x + 3y
+ p
=24
1x + 3y
+ h = 18
8x 6y
z = 0
x, y, u, p, h 0
= 30 5x 3y
p
= 24 2x 3y
h
= 18 1x 3y
z = 0 8x 6y
{ }
c s = min c j
1 j n
= 30 5x 3y
p
= 24 2x 3y
h
= 18 1x 3y
z = 0 8x 6y
xs =
br
a rs
b i
= min
: a is > 0
1i m a is
variable dentre
Pour identifier la variable de sortie
dterminons le min des quotients des
termes de droite diviss par les
lments correspondants dans la
colonne de la variable dentre
qui sont positifs:
= 30 5x 3y
p
= 24 2x 3y
h
= 18 1x 3y
z = 0 8x 6y
xs =
br
a rs
b i
= min
: a is > 0
1i m a is
variable dentre
min {30/5, 24/2, 18} = 30/5 = 6
La variable correspondante u
devient la variable de sortie
= 30 5x 3y
p
= 24 2x 3y
h
= 18 1x 3y
z = 0 8x 6y
Variable de sortie
tape 3 : Pivot
Transformation du systme ou
du tableau
variable dentre
variable de sortie
variable dentre
Ceci est quivalent
(5x + 3y + u
=6
variable dentre
Ceci est quivalent
(5x + 3y + u
=6
variable dentre
Le tableau qui en rsulte est le suivant
x + 3 / 5 y + 1/ 5u = 6
variable dentre
Le tableau qui en rsulte est le suivant
x + 3 / 5 y + 1/ 5u = 6
deuxime ligne
moins
2(la premire ligne)
deuxime ligne
moins
2(la premire ligne)
Le tableau devient
0 x + 9 / 5 y 2 / 5u + p = 12
deuxime ligne
moins
2(la premire ligne)
Le tableau devient
0 x + 9 / 5 y 2 / 5u + p = 12
min z = c x
Sujet Ax = b
x0
c, x R n , b R m
A matrice m n
a 21 x1 + a 22 x 2 + ... + a 2 n x n = b 2
.
a m1 x1 + a m 2 x 2 + ... + a mn x n = b m
x1 , x 2 , ..., x n 0
peut aussi scrire
Problme du restaurateur:
x y u p h
5 3 1 0 0
A = 2 3 0 1 0
1 3 0 0 1
c T = [ 8, 6, 0, 0, 0]
30
b = 24
18
min z = 8 x 6 y
Sujaet 5 x + 3 y + u
2x + 3y
1x + 3 y
+ p = 24
+ h = 18
x, y , u , p , h 0
min z = c T x
Sujet Ax = b
x0
c, x R 5 , b R 3
A matrice 3 5
= 30
a 21 x1 + a 22 x 2 + ... + a 2 n x n
min z
Sujet
= b1
Ax
=b
cT x z = 0
x0
c, x R n , b R m
A matrice m n
= b2
.
.
.
.
a m1 x1 + a m 2 x 2 + ... + a mn x n
= bm
c1 x1 + c 2 x 2 + ... + c n x n z = 0
x1 , x 2 , ..., x n 0
min z
Sujet
Ax
=b
cT x z = 0
x0
A = [B R]
Dnotons galement
xB
x=
xR
c B
c=
c R
min z
min z
Sujet
Ax
=b
cT x z = 0
x0
xB
Sujet
[ B R] x = b
R
xB
T
T
cB cR z = 0
x
R
x0
min z
min z
Sujet
BxB + RxR
=b
cBT xB + cRT xR z = 0
x B , xR 0
xB
Sujet
[ B R] x = b
R
xB
T
T
cB c R z = 0
x
R
x0
Bx B + Rx R = b
B 1 ( Bx B + Rx R ) = B 1b
B 1 Bx B + B 1 Rx R = B 1b
Ix B + B 1 Rx R = B 1b
Ainsi
Ix B = B 1 Rx R + B 1b
min z
Sujet
BxB + RxR
=b
cBT xB + cRT xR z = 0
x B , xR 0
min z
Sujet
IxB + B 1RxR
= B 1b
min z
Sujet
IxB + B 1RxR
= B 1b
min z
Sujet
IxB + B 1RxR
= B 1b
min z
Sujet
Ix B + B 1 Rx R
= B 1b
0 x B + (c TR c TB B 1 R) x R z = c TB B 1b
xB , xR 0
Le problme se traduit dans le tableau suivant
cBT
cRT
c = cB , cR
T
R m dfini par
T = cBT B 1
Alors
c T = cT T A
Ou
min z
Sujet Ax = b
cT x z = 0
x0
min z
Sujet Ax = b + b
c T x z = 0
x 0
min z
Sujet Ax = b + b
c T x z = 0
x 0
x*R = 0
x* * = B*1b = b 0
B
min z
Sujet Ax = b + b
c T x z = 0
x 0
~
x R* = 0
~
x B** = B *1 (b + b) 0
~
x R* = 0
~
x B** = B *1 (b + b) 0
c *T = c T *T A
*T = c T* B*1
B
cj
~
x R* = 0
~
x B** = B *1 (b + b) 0
valuons la valeur optimale du nouveau problme:
z* = c T* x* * + cRT x*R
B
B
T
*1
B*
=c B
(b + b)
= c T* B*1b + c T* B*1b
B
*
*T
= z + b
m
= z* +
i =1
i* bi
*T = cBT* B*1
z * = c T* B*1b
B
z* = c T* x * * + cRT x R*
B
B
T
*1
B*
=c B
(b + b)
= c T* B*1b + c T* B*1b
B
*
= z + *T b
m
= z* +
i =1
i* bi
min z = 8x 6y
Sujet
5x + 3y + u
=30
2x + 3y
+ p =24
1x + 3y
+ h = 18
x, y, u, p, h 0
x
x 1
y
0
z 0
u
1
4
1
4
1
12
3
2
p
0
1
0
0
h
1
4
3
4
5
12
1
2
*T = c T* B*1
B
3 *T
54
1
4
1
= [ 8 0 6]
4
1
12
z* = z * + *T b
b
1 1
3
1
3
= 54 + 0 b2 = 54 b1 + 0b2 b3
2 b
2
2
2
3
3
b1 < 0 b1 > 0 z* > z *
2
0
1
0
1
4
3
4
5
12
3
1
= 0
2
2
Domaine ralisable
Traons la droite
5x + 3y = 30
Lensemble des points qui
satisfont la contrainte
5x + 3y 30
sont sous cette droite car lorigine
satisfait cette relation
Domaine ralisable
Traons la droite
2x + 3y = 24
Lensemble des points qui
satisfont la contrainte
2x + 3y 24
sont sous cette droite car lorigine
satisfait cette relation
Domaine ralisable
Traons la droite
1x + 3y = 18
Lensemble des points qui
satisfont la contrainte
1x + 3y 18
sont sous cette droite car lorigine
satisfait cette relation
Domaine ralisable
Lensemble des points ralisables
pour le systme
5x + 3y 30
2x + 3y 24
1x + 3y 18
x,y0
Rsolution
Considrons la fonction
conomique :
z = 8x 6y.
Plus on sloigne de lorigine,
plus la valeur diminue:
x = 0 et y = 0 => z = 0
8
z
y = x
6
6
8
droites de pente
6
Rsolution
Considrons la fonction
conomique :
z = 8x 6y.
Plus on sloigne de lorigine,
plus la valeur diminue:
x = 0 et y = 0 => z = 0
x = 0 et y = 6 => z = 36
x + 3 y = 18 x = 0
x
= 0 y = 6
x + 3 y = 18
Rsolution
Considrons la fonction
conomique :
z = 8x 6y.
Plus on sloigne de lorigine,
plus la valeur diminue:
x = 0 et y = 0 => z = 0
x = 0 et y = 6 => z = 36
x = 6 et y = 0 => z = 48
5 x + 3 y = 30 x = 6
y = 0 y = 0
5 x + 3 y = 30
Rsolution
Considrons la fonction
conomique :
z = 8x 6y.
Plus on sloigne de lorigine,
plus la valeur diminue:
x = 0 et y = 0 => z = 0
x = 0 et y = 6 => z = 36
x = 6 et y = 0 => z = 48
x = 3 et y = 5 => z = 54.
Impossible daller plus loin sans
sortir du domaine ralisable.
5 x + 3 y = 30
x = 3
x = 3
x + 3 y = 18
y = 5
3
+
3
y
=
18
4x
= 12
Solution optimale:
x = 3 et y = 5
Valeur optimale:
z = 54
x + 3 y = 18
5 x + 3 y = 30
x
x 1
y
0
z 0
u
1
4
1
4
1
12
3
2
p
0
1
0
0
h
1
4
3
4
5
12
1
2
*T = c T* B*1
B
3 *T
54
1
4
1
= [ 8 0 6]
4
1
12
z* = z * + *T b
b
1 1
3
1
3
= 54 + 0 b2 = 54 b1 + 0b2 b3
2 b
2
2
2
3
3
b1 < 0 b1 > 0 z* > z *
2
0
1
0
1
4
3
4
5
12
3
1
= 0
2
2
Domaine ralisable
Lensemble des points ralisables
pour le systme
5x + 3y 30
2x + 3y 24
1x + 3y 18
x,y0
Rsolution graphique
Considrons la fonction
conomique :
z = 8x 6y.
La solution optimale:
x = 3 et y = 5 => z = 54.
Vecteur des multiplicateurs
optimaux:
T = [ 3/2, 0, 1/2]
Si b1 = 30 devient b1+b1 avec
b1<0
domaine ralisable diminue
5x + 3y 30
2x + 3y 24
1x + 3y 18
x
x 1
y
0
z 0
u
1
4
1
4
1
12
3
2
p
0
1
0
0
h
1
4
3
4
5
12
1
2
z
0
*T = c T* B*1
B
54
*T
1
4
1
= [ 8 0 6]
4
1
12
z* = z * + *T b
b
1 1
3
1
3
= 54 + 0 b2 = 54 b1 + 0b2 b3
2 b
2
2
2
3
3
b1 > 0 b1 < 0 z * < z*
2
0
1
0
1
4
3
4
5
12
3
1
= 0
2
2
Rsolution graphique
Considrons la fonction
conomique :
z = 8x 6y.
La solution optimale:
x = 3 et y = 5 => z = 54.
Vecteur des multiplicateurs
optimaux:
T = [ 3/2, 0, 1/2]
5x + 3y 30
2x + 3y 24
1x + 3y 18
x
x 1
y
0
z 0
u
1
4
1
4
1
12
3
2
p
0
1
0
0
h
1
4
3
4
5
12
1
2
*T = c T* B*1
B
3 *T
54
1
4
1
= [ 8 0 6]
4
1
12
z* = z * + *T b
b
1 1
3
1
3
= 54 + 0 b2 = 54 b1 + 0b2 b3
2 b
2
2
2
3
1
b3 < 0 b3 > 0 z* > z*
2
0
1
0
1
4
3
4
5
12
3
1
= 0
2
2
Rsolution graphique
Considrons la fonction
conomique :
z = 8x 6y.
La solution optimale:
x = 3 et y = 5 => z = 54.
Vecteur des multiplicateurs
optimaux:
T = [ 3/2, 0, 1/2]
Si b3 = 18 devient b3+b3 avec
b3<0
domaine ralisable diminue
5x + 3y 30
2x + 3y 24
1x + 3y 18
x
x 1
y
0
z 0
u
1
4
1
4
1
12
3
2
p
0
1
0
0
h
1
4
3
4
5
12
1
2
*T = c T* B*1
B
3 *T
54
1
4
1
= [ 8 0 6]
4
1
12
z* = z * + *T b
b
1 1
3
1
3
= 54 + 0 b2 = 54 b1 + 0b2 b3
2 b
2
2
2
3
b2 < 0 0b2 = 0 z* = z *
0
1
0
1
4
3
4
5
12
3
1
= 0
2
2
Rsolution graphique
Considrons la fonction
conomique :
z = 8x 6y.
La solution optimale:
x = 3 et y = 5 => z = 54.
Vecteur des multiplicateurs
optimaux:
T = [ 3/2, 0, 1/2]
Si b2 = 24 devient b2+b2 avec
b2<0
domaine ralisable ne change pas
5x + 3y 30
2x + 3y 24
1x + 3y 18