Académique Documents
Professionnel Documents
Culture Documents
(P N L) x + 4y ≤ 3
x≥y
1
CORRIGE
1. a)
max z = λy1 + 4y2 + 3y3
y1 + 2y2 + 2y3 ≤ 7
y1 + 3y2 + 2y3 ≤ 8
(Dλ )
2y1 + y2 + y3 ≤ 16
2y + 2y2 + 3y3 ≤ 12
1
y1 ≥ 0, y2 ≥ 0, y3 ≥ 0
b) Résolution de (D2 ) par la méthode du simplexe :
y1 y2 y3 y4 y5 y6 y7 y1 y2 y3 y4 y5 y6 y7
y4 1 2 2 1 0 0 0 7 y4 0 1 1/2 1 0 0 -1/2 1
y5 1 3 2 0 1 0 0 8 y5 0 2 1/2 0 1 0 -1/2 2
y6 2 1 1 0 0 1 0 16 y6 0 -1 -2 0 0 1 -1 4
y7 2 2 3 0 0 0 1 12 y1 1 1 3/2 0 0 0 1/2 6
z 2 4 3 0 0 0 0 0 z 0 2 0 0 0 0 -1 -12
y1 y2 y3 y4 y5 y6 y7 y1 y2 y3 y4 y5 y6 y7
y2 0 1 1/2 1 0 0 -1/2 1 y1 1 0 1 -1 0 0 1 5
y5 0 0 -1/2 -2 1 0 1/2 0 y2 0 1 1/2 1 0 0 -1/2 1
y6 0 0 -3/2 1 0 1 -3/2 5 y5 0 0 -1/2 -2 1 0 1/2 0
y1 1 0 1 -1 0 0 1 5 y6 0 0 -3/2 1 0 1 -3/2 5
z 0 0 -1 -2 0 0 0 -14 z 0 0 -1 -2 0 0 0 -14
c) Une solution de (P2 ) se lit dans le dernier tableau dans la ligne −z sous
les variables d’écarts (y4 , y5 , y6 , y7 ), ici : x1 = 2, x2 = 0, x3 = 0, x4 = 0
wmin = 14.
la solution n’est pas unique : x1 = 1, x2 = 1, x3 = 0, x4 = 1/2 est aussi
solution.
cTB = (2, 4, 0, 0), cTN = (3, 0, 0), cTB B −1 b = 14, cTN − cTB B −1 N = (−1, −2, 0).
2
(1, 0, 0) on a alors : c̃TB = cTB + (1, 0, 0, 0), c̃TN = cTN donc
y1 y2 y3 y4 y5 y6 y7
y3 1/2 0 1 3/2 -1 0 0 5/2
y2 0 1 0 -1 1 0 0 1
y7 1/2 0 0 -5/2 1 0 1 5/2
y6 3/2 0 0 -1/2 0 1 0 15/2
z -1/2 0 0 -1/2 -1 0 0 -23/2
La solution optimale de (D1 ) est alors :
3
nécessaires d’optimalité de premier ordre de Karush-Kuhn-Tucker pour (P N L)
s’écrivent :
∇f (x, y) + u1 ∇g1 (x, y) + u2 ∇g2 (x, y)
u1 g1 (x, y) = 0
u2 g2 (x, y) = 0
g1 (x, y) ≤ 0
g (x, y) ≤ 0
2
u1 ≥ 0, u2 ≥ 0
c’est à dire
2(x − 2) + u1 − u2 = 0 (1)
4(y − 1) + 4u1 + u2 = 0 (2)
u1 (x + 4y − 3) = 0 (3)
u2 (−x + y) = 0 (4)
x + 4y ≤ 3 (5)
−x + y ≤ 0 (6)
u1 ≥ 0, u2 ≥ 0
4.
c’est à dire : λf (x1 ) + (1 − λ)f (x2 ) ≥ f (λx1 + (1 − λ)x2 . Donc f est convexe
4
b) (voir cours) Soit x1 , x2 ∈ Rn , comme f set de classe C 2 alors il existe
t ∈]0, 1[ tel que :
1
f (x2 ) − f (x1 ) = Of (x1 )T (x2 − x1 ) + (x2 − x1 )T O2 f (x̄)(x2 − x1 )
2
avec x̄ = tx1 + (1 − t)x2 , si O2 f (x̄) est semi définie positive alors f (x2 ) −
f (x1 ) ≥ Of (x1 )T (x2 − x1 ) et donc, d’après a), f est convexe.
c) Soit f1 (x) = x2 +bx+c, f100 (x) = 2 > 0 donc f1 est convexe sur R. Pour
x1 , x2 ∈ K1 et λ ∈]0, 1[ on a f1 (λx1 +(1−λ)x2 )λ ≤ f1 (x1 )+(1−λ)f1 (x2 ) ≤ 0,
donc que K1 est un ensemble convexe.
e) f3 (x) = (aT x)2 +bT x+c, ∇f3 (x) = 2(aT x).a+b et Hf3 (x) = 2aaT ma-
trice n × n symétrique semi définie positive car xT Hf3 (x)x = 2xT (aaT )x =
2(aT x)2 ≥ 0 pour tout a ∈ Rn donc f3 est convexe et K3 est convexe pour
tout a ∈ Rn .