Condorcet Class version :
Number of Candidates :
countCandidates(); ?>
|
Number of votes :
countVotes(); ?>
Candidates list :
getCandidatesList() as $candidatName) {
echo '- '.$candidatName.'
';
}
?>
Registered votes details :
getVotesList() as $vote) {
echo '';
echo '
'.implode(' / ', $vote->getTags()).'';
echo '
';
foreach ($vote as $rank => $value) {
if ($rank === 'tag') {
continue;
} ?>
';
}
?>
getWinner() !== null) {
echo $election->getWinner();
} else {
echo 'The votes of this group do not allow natural Condorcet winner because of Condorcet paradox.';
}
?>
computed in getLastTimer(), 5); ?> second(s).
getLoser() !== null) {
echo $election->getLoser();
} else {
echo 'The votes of this group do not allow natural Condorcet loser because of Condorcet paradox.';
}
?>
computed in getLastTimer(), 5); ?> second(s).
Ranking by :
getResult($method);
$lastTimer = $election->getLastTimer();
if ($method === 'Kemeny–Young' && !empty($result->getWarning(\CondorcetPHP\Condorcet\Algo\Methods\KemenyYoung\KemenyYoung::CONFLICT_WARNING_CODE))) {
$kemeny_conflicts = explode(';', $result->getWarning(\CondorcetPHP\Condorcet\Algo\Methods\KemenyYoung\KemenyYoung::CONFLICT_WARNING_CODE)[0]['msg']);
echo 'Arbitrary results: Kemeny-Young has '.$kemeny_conflicts[0].' possible solutions at score '.$kemeny_conflicts[1].'';
}
?>
computed in second(s).
Total computed in getGlobalTimer(), 5); ?> second(s).
getTimerManager()->getHistory()); ?>
Computing statistics :
Pairwise :
getPairwise())); ?>
Stats for :
getResult($method)->getStats())); ?>
Debug Data :
Defaut method (not used explicitly before) :