Quick Examples
See your installation method upside for the main call. Below from the official docker image with the command condorcet
.
A simple and short election
condorcet election --candidates="A;B;C" --votes="A>B ; myTag1||C=B>A ; A>C ; B>C;A" -lr Schulze Borda Minimax
Version: v4.2.1-10-gd821a609 || Author: Julien Boudry and contributors || Homepage: https://github.com/julien-boudry/Condorcet
---------------------------------------------
3 candidates registered || 5 votes registered
Configuration
=============
------------------------------------------------------------- -------
Is vote weight allowed? FALSE
------------------------------------------------------------- -------
Votes are evaluated according to the implicit ranking rule? TRUE
------------------------------------------------------------- -------
Is vote tie in rank allowed? TRUE
------------------------------------------------------------- -------
Detailed Election Inputs
========================
+-------------- Stats - votes registration -------+-------+
| Stats | Value |
+-------------------------------------------------+-------+
| Count registered votes | 5 |
| Count valid registered votes with constraints | 5 |
| Count invalid registered votes with constraints | 0 |
| Sum vote weight | 5 |
| Sum valid votes weight with constraints | 5 |
+-------------------------------------------------+-------+
+----------+--------- Registered Votes List +--------+-----------+
| Vote Num | Vote | Weight | Vote Tags |
+----------+--------------------------------+--------+-----------+
| 1 | A > B > C | 1 | |
| 2 | B = C > A | 1 | myTag1 |
| 3 | A > C > B | 1 | |
| 4 | B > C > A | 1 | |
| 5 | A > B = C | 1 | |
+----------+--------------------------------+--------+-----------+
=======================================================
| |
| Vote Method Condorcet natural winner & loser |
| |
=======================================================
+------- Natural Condorcet -------+
| Type | Candidate |
+---------------------+-----------+
| ★ Condorcet Winner | A |
| ⚐ Condorcet Loser | C |
+---------------------+-----------+
Results per methods
===================
======================================
| |
| Vote Method Schulze Winning |
| |
======================================
★ Condorcet Winner || ⚐ Condorcet Loser
+----------------------+- Results: Schulze Winning -------------------------+
| Rank | Candidates |
+----------------------+----------------------------------------------------+
| 1 | A ★ |
| 2 | B |
| 3 | C ⚐ |
+----------------------+----------------------------------------------------+
=================================
| |
| Vote Method BordaCount |
| |
=================================
+- Configuratio... -+
| Variable | Value |
+-----------+-------+
| Starting: | 1 |
+-----------+-------+
★ Condorcet Winner || ⚐ Condorcet Loser
+----------------------+---- Results: BordaCount ---------------------------+
| Rank | Candidates |
+----------------------+----------------------------------------------------+
| 1 | A ★ |
| 2 | B |
| 3 | C ⚐ |
+----------------------+----------------------------------------------------+
======================================
| |
| Vote Method Minimax Winning |
| |
======================================
★ Condorcet Winner || ⚐ Condorcet Loser
+----------------------+- Results: Minimax Winning -------------------------+
| Rank | Candidates |
+----------------------+----------------------------------------------------+
| 1 | A ★ |
| 2 | B,C |
+----------------------+----------------------------------------------------+
From Files / With Stats
You can print stats. And load candidates or votes from a file. See Condorcet Manual for more details.
condorcet election --stats --candidates /path/to/myCandidates.text --votes /path/to/myVotes.txt Kemeny-Young
Summary
=======
3 candidates(s) registered || 10 vote(s) registered
==========================
------------------------------------------------------------- -------
Is vote weight allowed? FALSE
------------------------------------------------------------- -------
Votes are evaluated according to the implicit ranking rule? TRUE
------------------------------------------------------------- -------
Is vote tie in rank allowed? FALSE
------------------------------------------------------------- -------
+-------------------- Pairwise --------------------+
| For each candidate, show their win, null or lose |
+--------------------------------------------------+
| A: |
| win: |
| B: 10 |
| C: 10 |
| 'null': |
| B: 0 |
| C: 0 |
| lose: |
| B: 0 |
| C: 0 |
| B: |
| win: |
| A: 0 |
| C: 10 |
| 'null': |
| A: 0 |
| C: 0 |
| lose: |
| A: 10 |
| C: 0 |
| C: |
| win: |
| A: 0 |
| B: 0 |
| 'null': |
| A: 0 |
| B: 0 |
| lose: |
| A: 10 |
| B: 10 |
| |
+--------------------------------------------------+
Results per methods
===================
Kemeny–Young Method:
--------------------
+----------- Results: Kemeny–Young -----------+
| Rank | Candidates |
+----------------------+----------------------+
| 1 | A* |
| 2 | B |
| 3 | C# |
+----------------------+----------------------+
+------------ Stats: Kemeny–Young ------------+
| Stats |
+---------------------------------------------+
| bestScore: 30 |
| rankingScore: |
| - |
| 1: A |
| 2: B |
| 3: C |
| score: 30 |
| - |
| 1: A |
| 2: C |
| 3: B |
| score: 20 |
| - |
| 1: B |
| 2: A |
| 3: C |
| score: 20 |
| - |
| 1: B |
| 2: C |
| 3: A |
| score: 10 |
| - |
| 1: C |
| 2: A |
| 3: B |
| score: 10 |
| - |
| 1: C |
| 2: B |
| 3: A |
| score: 0 |
| |
+---------------------------------------------+
Votes Weight / Implicit Ranking Mode / No-Tie constraint
bin/condorcet election --candidates="A;B;C" --votes="A>B ^10 ; B>A ; B>A" -lr --allows-votes-weight Schulze
Version: v4.2.1-10-gd821a609 || Author: Julien Boudry and contributors || Homepage: https://github.com/julien-boudry/Condorcet
---------------------------------------------
3 candidates registered || 3 votes registered
Configuration
=============
------------------------------------------------------------- ------
Is vote weight allowed? TRUE
------------------------------------------------------------- ------
Votes are evaluated according to the implicit ranking rule? TRUE
------------------------------------------------------------- ------
Is vote tie in rank allowed? TRUE
------------------------------------------------------------- ------
Detailed Election Inputs
========================
+-------------- Stats - votes registration -------+-------+
| Stats | Value |
+-------------------------------------------------+-------+
| Count registered votes | 3 |
| Count valid registered votes with constraints | 3 |
| Count invalid registered votes with constraints | 0 |
| Sum vote weight | 12 |
| Sum valid votes weight with constraints | 12 |
+-------------------------------------------------+-------+
+----------+--------- Registered Votes List +--------+-----------+
| Vote Num | Vote | Weight | Vote Tags |
+----------+--------------------------------+--------+-----------+
| 1 | A > B > C | 10 | |
| 2 | B > A > C | 1 | |
| 3 | B > A > C | 1 | |
+----------+--------------------------------+--------+-----------+
=======================================================
| |
| Vote Method Condorcet natural winner & loser |
| |
=======================================================
+------- Natural Condorcet -------+
| Type | Candidate |
+---------------------+-----------+
| ★ Condorcet Winner | A |
| ⚐ Condorcet Loser | C |
+---------------------+-----------+
Results per methods
===================
======================================
| |
| Vote Method Schulze Winning |
| |
======================================
★ Condorcet Winner || ⚐ Condorcet Loser
+----------------------+- Results: Schulze Winning -------------------------+
| Rank | Candidates |
+----------------------+----------------------------------------------------+
| 1 | A ★ |
| 2 | B |
| 3 | C ⚐ |
+----------------------+----------------------------------------------------+