fix a few typos in the annealer, and bump up the moves to 1000 for better results

This commit is contained in:
james 2006-01-31 23:31:40 +00:00
parent c5e55fad37
commit 738aaeb172

View File

@ -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("<td>&nbsp;</td>");
$last_slot++;
}
print("<td>".($jteam+1));
print("<td>#".($jteam+1));
echo "<br />";
echo "tema_id=".$team[$jteam]['team_id'];
echo "team_id=".$team[$jteam]['team_id'];
echo "<br />";
echo "proj_id=".$proj_id;
echo "<br />";