From 54e981bbdbd22f7521a2351ecb0e6920e79560f6 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 1 Feb 2011 07:31:24 +0100 Subject: [PATCH] sn-evolution: Disable mutation. --- src/sn-evolution.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sn-evolution.c b/src/sn-evolution.c index 8774f4a..72bd141 100644 --- 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); -- 2.11.0