forked from science-ation/science-ation
Only count a huge penalty for the team if there's no chair on the team if the minimum number of judges per team is greater than 1. If the minimum is 1, then essentially the "willing chair" stuff should get ignored.
This commit is contained in:
parent
c2856ad9cb
commit
31aebc743f
@ -183,9 +183,10 @@ function judges_cost_function($annealer, $bucket_id, $ids)
|
||||
if(!in_array($l, $j['languages'])) $cost += 25;
|
||||
}
|
||||
}
|
||||
/* Huge penalty for a team without a willing chair */
|
||||
if(!$have_chair) $cost += 40;
|
||||
|
||||
/* Huge penalty for a team without a willing chair, but only if the min judges per team >1 */
|
||||
if(!$have_chair && $config['min_judges_per_team']>1)
|
||||
$cost += 40;
|
||||
|
||||
// TRACE("Team $bucket_id, cost is $cost\n");
|
||||
|
||||
return $cost;
|
||||
|
Loading…
Reference in New Issue
Block a user