Try   HackMD

OCVX2: Approche lineaire

Exercice 1

On considere la fonction differentiable

f:R2R(x,y)3x2+y2

  1. Representer les courbes de niveaux 2 et 4 de
    f
    dans le plan euclidien
  2. A quel lieu correspond la condition
    f(x,y)4
  3. On s'interesse au probleme d'optimisation
    (P)
    minimiser
    f0(x,y)=2x+y
    sujet a
    3x2+y24
    . Representer la courbe de niveau de la fonction objectif qui correspond a la valeur optimale de
    (P)
  4. Comment trouver le point optimal correspondant a
    (P)
    ? Faire le calcul
Solution

f(x,y)=3x2+y2C2={3x2+y2=2}={32x2+12y2=1}

Il s'agit de l'equation d'une elipse de:

  • demi grand axe
    a
  • demi petit axe
    b

(xa)2+(yb)2=1

Rappel

2πrπ(a+b)πr2πab

C2(f)={3x2+y2=2}

Ellipse de:

  • demi grand axe
    2
    sur
    Oy
  • demi petit axe
    23
    sur
    Ox

C4(f)={3x2+y2=4}

Ellipse de:

  • demi grand axe
    2
    sur
    Oy
  • demi petit axe
    23
    sur
    Oy

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Zoli dessin

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

(P)minf0(x,y)=2x+y3x2+y24C4(f)

C0={2x+y=0}u=(12)n=(21)

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Pour minimiser, on part dans le sens inverse du vecteur normal.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Notre point optimal:

p\*=(x\*,y\*)

pC4(f)3x2+y2=4pCf02x+y=f0

Le gradient d'une fonction en un point donne est orthogonal a la courbe de niveau qui passe par ce point la.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

En

p:

f(p)=λnf(p)+λn=0λ>0

f(x,y)=3x2+y2f=(fx,fy)=(6x,2y)f(p=(x,y))=(6x,2y)=λ(21){6x=2λ2y=λ6x=4y\colorgreeny=32x3x2+y2=43x2+(32x)2=43x2+94x2=4214x2=4x2=1621

Donc:

x=421ou\colorgreen421et\colorgreeny=621

:::

Exercice 2

On considere le probleme d'optimisation

(P) minimiser
f0(x,y)=x+y
sujet a
x+2y3,xB
avec
BR2
l'intersection de l'epigraphe de
xx
.

  1. Dessiner le lieu admissible de
    (P)
  2. Representer la courbe de niveau
    f0
    qui realise le minimum de
    (P)
  3. Calculer le point optimal ainsi que la valeur optimale de
    (P)
Solution

Rappel: Epigraphe

Tout ce qu'il y a au-dessus du graphe de la fonction

epi(f)={(x,t)|tf(x)}

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

x+2y3=0(D)(3,0)Du=(21)n=(12)

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Avec la courbe

C0:

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Avec

p\*=(x\*,y\*):

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Le vecteur normal au graphe va etre colineaire au vecteur normal de notre courbe de niveau.

Gradient de quoi ?

On est sur le graphe et pas la ligne de niveau

Est-ce qu'on peut exprimer le graphe comme ligne de niveau ?

Toutes les representations parametriques peuvent s'ecrire en representation implicite (l'inverse n'etant pas vrai)

Notre graphe de

yx est:

{(x,y) tq y=x}{(x,y) tq x+y=0}=C0(g)
Avec:

g:R2R(x,y)x+y

Condition d'optimalite: en

p\*=(x\*,y\*),

g(p)=λn0g(x,y)=(gx,gy)=(12x,1)

En

p\*:

{12x=λ1=λ{λ=112x=1{x=14y=12

Valeur optimale:

x+y=1412=\colorgreen14

:::