Consulting

Results 1 to 2 of 2

Thread: Genetic Algorithm

  1. #1
    VBAX Regular
    Joined
    Sep 2006
    Posts
    65
    Location

    Genetic Algorithm

    Hi

    Any tips on how to handle the representation format used by GA.

    The representation format that I'm working on can be thought of as a string of paired values and the sequence of these paired values represents a sequence ie.:

    (1,2) (3,4) (1,7)

    Several strings are generated in order to represent a population.
    At this moment I'm using an two-dimensional array(population, sequence) defined as an single array to represent the above string.
    If the above string represents population 1 then
    array(1,2) = 3,4

    However something tells me that there is a much better way to represent these strings. Especially when the crossover between to strings and the mutation has to be carried out.


    Any Ideas?

    Best regards
    Troels

  2. #2
    VBAX Regular Ebrow's Avatar
    Joined
    May 2007
    Posts
    67
    Location
    Not sure what you are looking for. Is it something like this?

    [VBA]

    Type myArrayType
    myPart1 As String
    myPart2 As String
    End Type
    Public myArray(999, 999) As myArrayType

    Sub test()
    myArray(1, 1).myPart1 = "5"
    myArray(1, 1).myPart2 = "6"
    End Sub
    [/VBA]
    Nothing is impossible, just it hasn't been thought of yet.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •