Descriptor for individual decrete precisions.
Base class for individuals.
- ranges (tuple list) – value ranges for all entries in solution.
- eps (float or float list (with the same length with ranges)) – decrete precisions for binary encoding, default is 0.001.
Clone a new individual from current one.
Convert chromsome sequence to solution.
Returns: The solution vector Return type: list of float
Convert solution to chromsome sequence.
Returns: The chromsome sequence Return type: list of float
Initialize the individual by providing chromsome or solution.
- chromsome (list of (float / int)) – chromesome sequence for the individual
- solution (list of float) – the variable vector of the target function.
If both chromsome and solution are provided, only the chromsome would be used. If neither is provided, individual would be initialized randomly.