X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsn-evolution.c;h=72bd141ccffa802b871870b979fb952d8cf38ea0;hb=54e981bbdbd22f7521a2351ecb0e6920e79560f6;hp=8774f4ada47c25b83339e254e7e1a17bcdace536;hpb=ea03c7deb7078b4e08af1d248ba78a32d40ddd3c;p=sort-networks.git 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);