Need Help in Genetic Algorithm

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gotcha
    New Member
    • Oct 2006
    • 3

    Need Help in Genetic Algorithm

    Does anyone know how to evaluate the diversity of a population or how diverve is an individual in C++ ?? Thanks in advance!!
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    You need to find some mathematrical formula for this evaluation. This will be nothing to do with C++ but part of genetics.

    Once you have the formula then you can convert it to C++ and we can help that being what we do here :D

    Comment

    • gotcha
      New Member
      • Oct 2006
      • 3

      #3
      Originally posted by Banfa
      You need to find some mathematrical formula for this evaluation. This will be nothing to do with C++ but part of genetics.

      Once you have the formula then you can convert it to C++ and we can help that being what we do here :D
      front spread = maximum distance among the solutions in space in each dimension seperately

      fs = sqrt { for (i=0;i<N;i++) {sum += max distances in each dimension} }

      N: # of objectives

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        Your text formula does not mention a square root but your pseudo coded formula seems to?

        Comment

        • gotcha
          New Member
          • Oct 2006
          • 3

          #5
          Originally posted by Banfa
          Your text formula does not mention a square root but your pseudo coded formula seems to?
          sorry it should be:

          fs = sqrt { for (i=0;i<N;i++) {sum += max distances^2 in each dimension} }

          Comment

          Working...