From: Florian Forster Date: Tue, 1 Feb 2011 06:31:24 +0000 (+0100) Subject: sn-evolution: Disable mutation. X-Git-Tag: v1.1.0~10 X-Git-Url: https://git.octo.it/?p=sort-networks.git;a=commitdiff_plain;h=54e981bbdbd22f7521a2351ecb0e6920e79560f6 sn-evolution: Disable mutation. --- 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);