Vous êtes sur la page 1sur 10

Travail à Rendre N°2

Nom : ABARJI
Prénom : Salman
Groupe : 9
(Méthode du Simplexe)
Equation 1:
Max : Z = x1 + 2 x2
−3x1 + 2 x2 ≤ 2
− 𝑥1 + 2 𝑥2 ≤ 4
SC :{
𝑥1 + 𝑥2 ≤ 5
𝑥1 ≥ 0 ; 𝑥2 ≥ 0

Solution :
Forme Standard :

Max : Z = x1 + 2 x2
−3x1 + 2 x2 + x3 = 2
− 𝑥1 + 2 𝑥2 + 𝑥4 = 4
SC :{
𝑥1 + 𝑥2 + 𝑥5 = 5
𝑥1; 𝑥2; 𝑥3; 𝑥4; 𝑥5 ≥ 0

X3, x4 et x5 sont des variables de base


X1 et x2 sont des variables hors base
- Formation initiale du tableau :
Base X1 X2 X3 X4 X5 B b/a
X3 -3 2 1 0 0 2 2/2 = 1
X4 -1 2 0 1 0 4 4/2 = 2
X5 1 1 0 0 1 5 5/1 = 5
Cj-Zj 1 2 0 0 0 0 0
X2 est la variable entrante
X3 est la variable sortante
1ère Itération :
Base X1 X2 X3 X4 X5 B b/a
X2 -1.5 1 0.5 0 0 0 -
X4 2 0 -1 1 0 2 0
X5 2.5 0 -0.5 0 1 4 1.6
Cj-Zj 4 0 -1 0 0 -2 -

On a 4 ≥ 0 donc on passe à l’itération suivante :


2ème Itération :
Base X1 X2 X3 X4 X5 B b/a
X2 0 1 -0.25 0.75 0 0 -
X1 1 0 -0.5 0.5 0 1 -2
X5 0 0 0.75 -1.25 1 1.5 2
Cj-Zj 0 0 1 -2 0 -6

On a 1 ≥ 0 donc on passe à l’itération suivante :


3ème Itération :
Base X1 X2 X3 X4 X5 B b/a
X2 0 1 0 0.33 0.33 0.5
X1 1 0 0 -0.33 0.66 2
X3 0 0 1 -1.66 1.33 2
Cj-Zj 0 0 0 -0.33 -1.33 -8

Tous les Cj-Zj sont inférieurs ou égaux à 0.


Donc la solution optimale est :
X1 = 2
x2 = 0.5 Z = -8
x3 = 2
Equation 2 :
Max : Z = 12 x1 + 12 x2
x1 + x2 ≤ 7
SC :{2𝑥1 + 𝑥2 ≤ 14
𝑥1 ≥ 0 ; 𝑥2 ≥ 0
Solution :
Forme standard :

Max : Z = 12 x1 + 12 x2
x1 + x2 + x3 = 7
SC :{2𝑥1 + 𝑥2 + 𝑥4 = 14
𝑥1; 𝑥2; 𝑥3; 𝑥4 ≥ 0
X3 et x4 sont des variables de base
X1 et x2 sont des variables hors base
- Formation initiale du tableau :
Base X1 X2 X3 X4 B
X3 1 1 1 0 7
X4 2 1 0 1 14
Cj-Zj 12 12 0 0 0

Base X1 X2 X3 X4 B bi/aij bi/aij


X3 1 1 1 0 7 7/1=7 7/1=7
X4 2 1 0 1 14 14/2=7 14/1=14
Cj-Zj 12 12 0 0 0

-Pour x3 : (1+1+1+0)/1 = 3
- Pour x4 : (2+1+0+1)/2 = 2
On retient le plus grand des deux rapports, donc : X3
Donc la variable entrante est x2 et la variable sortante est x3.
1ère Itération :
Base X1 X2 X3 X4 B
X2 1 1 1 0 7
X4 1 0 -1 1 7
Cj-Zj 0 0 -12 0 -84

Tous les Cj-Zj sont inférieurs ou égaux à 0.


Donc la solution optimale est :
X2 = 7
Z = 84

Equation 3 :
Max : Z = x1
x1 − x2 ≤ 1
2𝑥1 − 𝑥2 ≤ 2
SC :{
𝑥1 + 𝑥2 ≤ 7
𝑥1 ≥ 0 ; 𝑥2 ≥ 0

Solution :
Forme standard :

Max : Z = x1
x1 − x2 + x3 = 1
2𝑥1 − 𝑥2 + 𝑥4 = 2
SC :{
𝑥1 + 𝑥2 + 𝑥5 = 7
𝑥1; 𝑥2; 𝑥3; 𝑥4; 𝑥5 ≥ 0
X3, x4 et x5 sont des variables de base
X1 et x2 sont des variables hors base
- Formation initiale du tableau :

Base X1 X2 X3 X4 X5 b b/a
X3 1 -1 1 0 0 1 1
X4 2 -1 0 1 0 2 1
X5 1 1 0 0 1 7 7
Cj-Zj 1 0 0 0 0 0 -

-Pour x3 : (1 – 1 + 1 + 0 + 0)/1 = 1
- Pour x4 : (2 - 1 + 0 + 1 + 0)/2 = 1
Les deux rapports sont égaux, donc on retient un des deux : X3
Donc la variable entrante est x1 et la variable sortante est x3.

1ère Itération :

Base X1 X2 X3 X4 X5 b b/a
X1 1 -1 1 0 0 1 -1
X4 0 1 -2 1 0 0 -
X5 0 2 -1 0 1 6 3
Cj-Zj 0 1 -1 0 0 -1 -

2ème Itération :

Base X1 X2 X3 X4 X5 b b/a
X1 1 0 0.5 0 0.5 4
X4 0 0 -1.5 1 -0.5 -3
X2 0 1 -0.5 0 0.5 3
Cj-Zj 0 0 -0.5 0 -0.5 -4 -

Tous les Cj-Zj sont inférieurs ou égaux à 0.


Donc la solution optimale est :
X1 = 4
x2 = -3 , Z = -4
x4 = 3
Equation 4 :
Min : Z = x1 - x2 + x3
x1 + 3x2 ≥ 4
SC :{ 𝑥1 + 𝑥2 − 𝑥3 ≤ 14
𝑥1 ≥ 0 ; 𝑥2 ≥ 0 ; 𝑥3 ≥ 0
Solution :
La forme standard :

Min : Z = x1 - x2 + x3 +0x4 +x5 +Ma1


x1 + 3x2 − x4 + a1 = 4
SC :{𝑥1 + 𝑥2 − 𝑥3 + 𝑥5 = 10
𝑥1 ≥ 0 ; 𝑥2 ≥ 0 ; 𝑥3 ≥ 0

X1, x2, x3 et x4 sont des variables hors base


A1et x5 sont des variables de base

- Formation initiale du tableau :


Base X1 X2 X3 X4 X5 A1 B B/A
Cj 1 -1 1 0 1 M
A1 M 1 3 0 -1 0 1 4 4/3=1.33
X5 0 1 1 -1 0 1 0 10 10
Zj M 3M 0 -M 0 M
Cj-Zj 1-M -1-3M 1 M 1 0 14M

1ère Itération :

Base X1 X2 X3 X4 X5 A1 B B/A
Cj 1 -1 1 0 1 M
X2 -1 1/3 1 0 -1/3 0 1/3 4/3 -4
X5 0 2/3 0 -1 1/3 1 -1/3 8.66 26
Zj -1/3 -1 0 1/3 0 -1/3
Cj-Zj 4/3 0 1 -1/3 1 M+1/3 -4/3
2ème Itération :

Base X1 X2 X3 X4 X5 A1 B B/A
Cj 1 -1 1 0 1 M
X2 -1 1 1 -1 0 1 0 15.33
X4 0 2 0 -3 1 3 -1 26
Zj -1 -1 1 0 -1 0
Cj-Zj 2 0 0 0 2 M -15.33

Tous les Cj-Zj ≥ 0, alors la solution obtenue est optimale et on arrête les calculs, avec :

X2 = 15.33, x4 = 42, Z = -15.33

Equation 5 :
Min : Z = x2 - 2x1
2 ≤ 𝑥1 ≤ 8
SC :{𝑥2 ≤ 𝑥1 ≤ 𝑥2 + 2
𝑥1 ≥ 0 ; 𝑥2 ≥ 0
Solution :
On a :

Min : Z = x2 - 2x1
𝑥1 ≤ 8
𝑥1 ≥ 2
SC : 𝑥1 ≤ 𝑥2 + 2
𝑥1 ≥ 𝑥2
{𝑥1 ≥ 0 ; 𝑥2 ≥ 0
Par suite :

Min : Z = x2 - 2x1 +x3 + 0x4 + 0x5 + x6 + Ma1 + Ma2 +Ma3


𝑥1 + 𝑥3 = 8
𝑥1 − 𝑥4 + 𝑎1 = 2
SC : 𝑥1 − 𝑥2 − 𝑥5 + 𝑎2 + 𝑎3 = 0
𝑥1 − 𝑥2 + 𝑥6 + 𝑎2 = 2
{ 𝑥𝑖 ≥ 0 ; 𝑖 = 1, … ,6
X1, x2 , x4, x5 sont des variables hors base
X3, a2, a1, a3, x6 sont des variables hors base

- Formation initiale du tableau :


Base X1 X2 X3 X4 X5 X6 A1 A2 A3 B B/A
Cj -2 1 1 0 0 1 M M M
X3 0 1 0 1 0 0 0 0 0 0 8
A1 M
A2 M
A3 M
X6 0
Zj
Cj-Zj

Equation 6 :
Max : Z = 10 x1 + 12 x2 + 8 x3 + 9 x4
x1 + x2 + x3 + x4 = 100
𝑥3 + 𝑥4 ≥ 30
SC :{
𝑥2 + 𝑥4 ≤ 50
𝑥𝑖 ≥ 0 ; 𝑖 = 1,2,3,4
Solution :
La forme standard:

Max : Z = 10 x1 + 12 x2 + 8 x3 + 9 x4 +0 x5 +x6+ Ma1


x1 + x2 + x3 + x4 = 100
𝑥3 + 𝑥4 − 𝑥5 + 𝑎1 = 30
SC :{
𝑥2 + 𝑥4 + 𝑥6 = 50
𝑥𝑖 ≥ 0 ; 𝑖 = 1,2,3,4
X1, x2, x3, x4 et X5 sont des variables hors base
A1, x6 sont des variables de base
- Formation initiale du tableau :
Base X1 X2 X3 X4 X5 X6 A1 B B/A
Cj 10 12 8 9 0 1 M
A1 M
X6 0
Zj
Cj-Zj

Je me suis bloqué en comment intégrer la première contrainte dans le


tableau.

FIN.

Vous aimerez peut-être aussi