Bonjour;
je n'arrive pas a le comprendre
Est ce que quelqu'un peut m'expliquer l'algorithme ci-joint et faire un organigramme.
merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
STEP1 Initialisation
STEP2
Begin
While k < MG do
  xi(k) = Li + zi(k) . (Ui - Li), i = 1,. . . ,n
  If f(X(k)) < f* then
    X* = X(k) (i.e., X* = xi(k), i = 1,. . . ,n)
    f* = f(X(k))
  End If
  k = k + 1;
End While
End
 
STEP3
While k<(MG + ML) do
  For i = 1 to n
    If r < 0.5 then 
      xi(k) =x*i ( k )+lunda.zi(k) .| Ui - X|
    Else If
      xi(k) = x*i ( k )- lunda zi(k) | X*i - Li|
    End If
  End For
  If f(X(k)) < f* then
    X* = X(k) (i.e., X* = xi(k), i = 1,. . . ,n)
    f* = f(X(k))
  End If
  k = k + 1;
End While
End