projects
/
sort-networks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea03c7d
)
sn-evolution: Disable mutation.
author
Florian Forster
<octo@leeloo.octo.it>
Tue, 1 Feb 2011 06:31:24 +0000
(07:31 +0100)
committer
Florian Forster
<octo@leeloo.octo.it>
Tue, 1 Feb 2011 06:31:24 +0000
(07:31 +0100)
src/sn-evolution.c
patch
|
blob
|
history
diff --git
a/src/sn-evolution.c
b/src/sn-evolution.c
index
8774f4a
..
72bd141
100644
(file)
--- a/
src/sn-evolution.c
+++ b/
src/sn-evolution.c
@@
-177,6
+177,7
@@
static int rate_network (const sn_network_t *n)
return (rate);
} /* int rate_network */
+#if 0
static int mutate_network (sn_network_t *n)
{
sn_network_t *n_copy;
@@
-214,6
+215,7
@@
static int mutate_network (sn_network_t *n)
return (0);
} /* int mutate_network */
+#endif
static int create_offspring (void)
{
@@
-252,8
+254,10
@@
static int create_offspring (void)
assert (SN_NETWORK_INPUT_NUM (n) == inputs_num);
+#if 0
if ((SN_NETWORK_INPUT_NUM (n) <= 16) && (sn_bounded_random (0, 100) <= 1))
mutate_network (n);
+#endif
population_insert (population, n);