From 738aaeb1722b7097a6d735b563def13606736c9b Mon Sep 17 00:00:00 2001 From: james Date: Tue, 31 Jan 2006 23:31:40 +0000 Subject: [PATCH] fix a few typos in the annealer, and bump up the moves to 1000 for better results --- admin/judges_sa.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/judges_sa.php b/admin/judges_sa.php index 8935e97..8d6c216 100644 --- a/admin/judges_sa.php +++ b/admin/judges_sa.php @@ -281,7 +281,7 @@ function judges_assign_anneal($divisions, $categories, $languages, $judges, &$te /* Anneal */ $temperature = 25.0; while(1) { - $moves = 750; + $moves = 1000; for($m = 0; $m<$moves; $m++) { /* Pick 2 moves at random */ $move = pick_random_move($team); @@ -456,7 +456,7 @@ foreach($div AS $d_id=>$d_val) if($j==$numteams) $j=0; } $x++; - /* If we've used all the judging temas, of we've assigned judges equal + /* If we've used all the judging teams, of we've assigned judges equal * to the number of projects, it's time for the next timeslot */ if(count($teams_at_this_ts) == $numteams || count($teams_at_this_ts) == $num) { $ts++; @@ -613,9 +613,9 @@ while(list($proj_id, $projinfo) = each( $data['projects'] )) { print(" "); $last_slot++; } - print("".($jteam+1)); + print("#".($jteam+1)); echo "
"; - echo "tema_id=".$team[$jteam]['team_id']; + echo "team_id=".$team[$jteam]['team_id']; echo "
"; echo "proj_id=".$proj_id; echo "
";