Commit Graph

16 Commits

Author SHA1 Message Date
David Pätzel
e346270907 Parametrize selection, add tournament, remove erroneous proportionate 2020-05-02 16:12:31 +02:00
David Pätzel
509e7d0361 Fix population size not being constant 2020-05-02 16:11:28 +02:00
David Pätzel
7a48c1278f Add length test for GA.bestsBy 2020-01-07 09:17:39 +01:00
David Pätzel
281acc0b88 Improve documentation of GA module slightly 2019-10-22 17:02:04 +02:00
David Pätzel
bcf11d61e1 Implement bestsBy properly
Only needs something in O(n) now instead of a lot more. Also, returns the
complement.
2019-10-22 14:33:19 +02:00
David Pätzel
0044b6cc18 Revert Population to type alias (instead of newtype) 2019-10-22 14:32:36 +02:00
David Pätzel
84c876f1b5 Add basis for tests to GA module 2019-10-22 08:18:34 +02:00
David Pätzel
db55ec0716 Clean up comments and TODOs in GA module 2019-10-22 07:10:28 +02:00
David Pätzel
43071b9b1e Remove unnecessary 'ga'' function 2019-10-22 07:09:17 +02:00
David Pätzel
3c45c206fc Fix floating point precision problems in GA.worst
By using negate instead of (1 /).
2019-10-22 07:08:37 +02:00
David Pätzel
939502e511 Add TODOs and comments about shuffle 2019-10-22 06:53:53 +02:00
David Pätzel
ec84f84aa8 Add 1-elitism as (unchangeable, for now) default 2019-10-18 13:43:18 +02:00
David Pätzel
6c41743dbd Divide step and run, add progress support via pipes 2019-10-18 09:57:43 +02:00
David Pätzel
531cb74aac Rename Topic to T, fix T Eq instance, fix fitness calculation 2019-10-18 09:10:11 +02:00
David Pätzel
49b105f42a Cleanup existing GA code 2019-10-17 18:23:19 +02:00
David Pätzel
1d62a5cbea Correct package name, add draft for GA module 2019-10-17 17:25:25 +02:00