Flow chart d'un algorithme
bonjour a toutes et tous
est ce que quelq'1 peut m'aider à crée le FLOW CHART de cet algorithme
et merci d'avance
*STEP1 Initialisation
*STEP2
Code:
1 2 3 4 5 6 7 8 9 10 11
|
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
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Begin
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 |