Forums

Genetic algorithm gene encoding

Started by "sim...@ymail.com" April 12, 2009
Hi Friends,
I am writing a simple genetic algorithm in matlab. Note I am not using the GA toolbox, just the Matlab language. I wish to encode `the genes' as unique binary strings. The algorithm is iteratively deriving a formula between overhead transmission line fault location and features on the associated current waveform's FFT spectra.
The genes will represent operators, i.e. plus, minus, multiply, divide, the variables involved, and a space (no operator or variable). E.g 'plus' might be encoded as 001, the variable 'x' might be as 011 etc.
Given that the encoded genes will need to be decoded later to produce a formula, what is the best way to go about doing this in Matlab?
Thanks for any help in advance,
Simon Le Blond