diff options
author | Mike Buland <mike@xagasoft.com> | 2012-08-04 16:59:49 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2012-08-04 16:59:49 -0600 |
commit | aaa733d789612289396d69bb6cf3a0e5de1798a8 (patch) | |
tree | 9004c335d19bad5357737d34615572e002d583ee /default.bld | |
parent | 3cdf68e08d438a0ced0f5f8d957a6aafd68cb43a (diff) | |
download | libgenetic-aaa733d789612289396d69bb6cf3a0e5de1798a8.tar.gz libgenetic-aaa733d789612289396d69bb6cf3a0e5de1798a8.tar.bz2 libgenetic-aaa733d789612289396d69bb6cf3a0e5de1798a8.tar.xz libgenetic-aaa733d789612289396d69bb6cf3a0e5de1798a8.zip |
Optomized the mating / mutation setup.
It should work the same, but it selects the number of bits to mutate
first, then selects the individual bits instead of testing a random
number on each bit. For very large phenotypes this will be
significantly faster while producing about the same result.
Diffstat (limited to '')
-rw-r--r-- | default.bld | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/default.bld b/default.bld index 65c8adb..741f16a 100644 --- a/default.bld +++ b/default.bld | |||
@@ -1,5 +1,5 @@ | |||
1 | CXXFLAGS += "-pg"; | 1 | # CXXFLAGS += "-pg"; |
2 | LDFLAGS += "-pg"; | 2 | # LDFLAGS += "-pg"; |
3 | 3 | ||
4 | target "libgenetic.a" | 4 | target "libgenetic.a" |
5 | { | 5 | { |