diff options
author | Eduardo Pedroni <ep625@york.ac.uk> | 2014-02-11 16:50:27 +0000 |
---|---|---|
committer | Eduardo Pedroni <ep625@york.ac.uk> | 2014-02-11 16:50:27 +0000 |
commit | dd3b6446671f31d716eb07e546c6150b4d080abd (patch) | |
tree | b30c1ac7599bce9a17f1ea621eecc427256e1486 /README | |
parent | 3fc4bf4a2ea7c6cff9810b76964dd3c1388c0b3f (diff) |
Implemented more tests, refactored chromosome more, added the beginnings of active node detection
Diffstat (limited to 'README')
-rw-r--r-- | README | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -88,6 +88,19 @@ necessarily a problem. 7/2 The resource classes have been refactored so that tests can be implemented more easily. Parameters, Utilities and TruthTable -are now top-level classes and work independently from CGP, allowing them to be initialised for testing purposes. Some chromosome -tests have been written and more tests will be written in the next few days. +are now top-level classes and work independently from CGP, allowing them to be initialised for testing purposes. Some +chromosome tests have been written and more tests will be written in the next few days. +11/2 + +Methods to get random connections and mutable elements have been moved into Chromosome, as well as refactored to require +less random number generations. + +Chromosome and its associated members (Node, Output, Input) have been refactored to allow copying. A copy constructor has been +written which initialises a new chromosome as an exact copy of a given chromosome. + +Cloning has been tested and is working. + +Active node detection will be implemented via a getActiveNodes() method in Chromosome. The chromosome is notified whenever +one of its nodes or outputs is mutated, and re-computes the list of active elements when it is required. It does so by recursively +acquiring node connections and copying them to a separate list.
\ No newline at end of file |