Open hosford42 opened 9 years ago
This will require that the code that explicitly depends on bit-strings and bit-conditions be moved out of the classes in init.py. Bit-strings should be used by default, but it should be possible to use arbitrary input and condition types, provided they implement a sufficiently similar interface. An abstract base class, Condition, would serve to define the standard condition interface.
Generalize the algorithms to support other classes besides BitString for inputs and BitCondition for input patterns. This will most likely entail accepting a factory of some sort for the input patterns, which supports the operators necessary for a genetic algorithm.