IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

MATLAB Discussion :

coa: optimisation par algorithme genetique


Sujet :

MATLAB

  1. #1
    Nouveau membre du Club
    Inscrit en
    Octobre 2010
    Messages
    61
    Détails du profil
    Informations forums :
    Inscription : Octobre 2010
    Messages : 61
    Points : 31
    Points
    31
    Par défaut coa: optimisation par algorithme genetique
    Je suis nouveau avec matlab et j'ai un algo un peu particulier sur l'optimisationBegin
    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
    While k6 (MG + ML) do
    For i = 1 to n
    If r < 0.5 then (where r is a uniformly distributed random variable with range [0, 1])
    xiðkÞ ¼ x
    i þ k  ziðkÞ  jUi  X
    i j
    Else If
    xiðkÞ ¼ x
    i  k  ziðkÞ  jX
    i  Lij
    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

  2. #2
    Modérateur

    Homme Profil pro
    Ingénieur en calculs scientifiques
    Inscrit en
    Août 2007
    Messages
    4 639
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Ingénieur en calculs scientifiques

    Informations forums :
    Inscription : Août 2007
    Messages : 4 639
    Points : 7 614
    Points
    7 614
    Par défaut
    Bonjour,

    Quelle est ta question et quel est le rapport avec matlab?
    Pour une bonne utilisation des balises code c'est ici!
    Petit guide du voyageur MATLABien : Le forum La faq Les tutoriels Les sources


    La nature est un livre écrit en langage mathématique. Galilée.

  3. #3
    Nouveau membre du Club
    Inscrit en
    Octobre 2010
    Messages
    61
    Détails du profil
    Informations forums :
    Inscription : Octobre 2010
    Messages : 61
    Points : 31
    Points
    31
    Par défaut
    algorithme est dans le fichier joints

  4. #4
    Nouveau membre du Club
    Inscrit en
    Octobre 2010
    Messages
    61
    Détails du profil
    Informations forums :
    Inscription : Octobre 2010
    Messages : 61
    Points : 31
    Points
    31
    Par défaut
    voila l'algorithme que je veux ecrire sous matlab
    -----------------------------
    Many unconstrained optimization problems with continuous variables can be formulated as the following functional
    optimization problem.
    Find X to minimize f (X); X in[x1; x2; . . . ; xn]
    Subject to xi in [Li;Ui]; i ¼ 1; 2; . . . ; n;
    where f is the objective function, and X is the decision solution vector consisting of n variables xi in Rn bounded by lower
    (Li) and upper limits (Ui). In this work, n = 3 and X = [x1,x2,x3] = [Kp, Ki, Kd] are adopted.
    The chaotic search procedure based on Lozi map can be illustrated as follows:
    Inputs:
    MG: maximum number of iterations of chaotic Global search;
    ML: maximum number of iterations of chaotic Local search;
    ML + MG: stopping criterion of chaotic optimization method in iterations;
    k: step size in chaotic local search.
    Outputs:
    X*: best solution from current run of chaotic search
    f*: best objective function (minimization problem).
    Algorithm 1. Step 1: Initialization of variables: Set k = 1, where k represents the iteration number. Set the initial conditions
    y1(0), y(0), a=1.7 and b = 0.5 of Lozi map. Set the initial best objective function f* = +1;
    Step 2: Algorithm of chaotic global search:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    Begin
    While k 6 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
    Step 3: Algorithm of chaotic local search:
    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
    Begin
    While k6 (MG + ML) do
    For i = 1 to n
    If r < 0.5 then (where r is a uniformly distributed random variable with range [0, 1])
    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
    ------------------
    et je suis la pour d'autre question

  5. #5
    Modérateur

    Homme Profil pro
    Ingénieur en calculs scientifiques
    Inscrit en
    Août 2007
    Messages
    4 639
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Ingénieur en calculs scientifiques

    Informations forums :
    Inscription : Août 2007
    Messages : 4 639
    Points : 7 614
    Points
    7 614
    Par défaut
    Citation Envoyé par el-bey2 Voir le message
    voila l'algorithme que je veux ecrire sous matlab
    Oui, et donc? As-tu essayé de le coder? ou bloques-tu? encore une fois, quel est ton problème en rapport avec matlab?
    Pour une bonne utilisation des balises code c'est ici!
    Petit guide du voyageur MATLABien : Le forum La faq Les tutoriels Les sources


    La nature est un livre écrit en langage mathématique. Galilée.

Discussions similaires

  1. Réponses: 1
    Dernier message: 18/11/2013, 13h48
  2. Réponses: 0
    Dernier message: 13/03/2012, 11h29
  3. Réponses: 0
    Dernier message: 21/09/2011, 15h47
  4. Optimisation par algorithme génétique
    Par k.emna dans le forum Mathématiques
    Réponses: 9
    Dernier message: 15/04/2011, 13h28
  5. Algorithme d'optimisation par colonie de fourmis
    Par floopy dans le forum Algorithmes et structures de données
    Réponses: 3
    Dernier message: 08/11/2006, 15h03

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo