I am trying to solve a problem using genetic algorithms.
The problem is to find the set of integral and real values that optimizes a function.
I need to represent the problem using a binary string (simply because I understand the concept of crossover/mutation etc much better when applied to binary string chromosomes).
A candidate solution S would be the set {I1, I2, ... IN, R1, R2, RM }
Where the I variables are integers and the R variables are floating point numbers.
I want to be able to transform the candidate solution S into a binary string, but I don't know how to encode the floating point numbers.
Any ideas on how to encode the set S into a chromosome?
Although the solution is supposed to be language agnostic, my prefered choice of language (in decreasing order of preference for this particular task) is:
Python, C++, C
BTW, I am coding the problem using Pyevolve