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:
8111ff9
)
src/sn_evolution.c: Print the rating of the best solution periodically.
author
Florian Forster
<octo@leeloo.home.verplant.org>
Wed, 7 May 2008 15:01:45 +0000
(17:01 +0200)
committer
Florian Forster
<octo@leeloo.home.verplant.org>
Wed, 7 May 2008 15:01:45 +0000
(17:01 +0200)
src/sn-evolution.c
patch
|
blob
|
history
diff --git
a/src/sn-evolution.c
b/src/sn-evolution.c
index
48012a6
..
f9b5f0b
100644
(file)
--- a/
src/sn-evolution.c
+++ b/
src/sn-evolution.c
@@
-261,10
+261,11
@@
static int start_evolution (void)
iteration_counter++;
i = iteration_counter;
-#if 0
- if ((stats_interval > 0) && ((i % stats_interval) == 0))
- population_print_stats (i);
-#endif
+ if ((i % 1000) == 0)
+ {
+ int rating = sn_population_best_rating (population);
+ printf ("After %10llu iterations: Best rating: %4i\n", i, rating);
+ }
}
return (0);