#
# Strategic Cost Selection in Participatory Budgeting
# NeurIPS Submission
#

To replicate our experiments you need to install several packages
>> pip install pabutools==1.1.11
>> pip install tqdm
>> pip install matplotlib

///-----------------------\\\
|||To get Figures 2 and 6.|||
\\\-----------------------///

To compute data for Figures 2 and 6 run the following code.
-----------------------------------------------------------

# Compute winning and losing margins
>> python script_01.py

To plot Figure 2
----------------

# Plot the results as images/PAPERPLOT_margins.png
>> python script_02.py paperplot

To plot the pictures from Figure 6 run the following code.
----------------------------------------------------------

# Plot the results in the folder images/
>> python script_02.py


///-----------------------\\\
|||To get Figures 3 and 7.|||
\\\-----------------------///

To compute data for Figures 3 and 7 run the following code.
-----------------------------------------------------------

# Simulation 10000 iterations of the game
>> python script_03.py

To plot Figure 3
----------------

# Plot the results as images/PAPERPLOT_games.png
>> python script_04.py paperplot

To plot the pictures from Figure 7
----------------------------------

# Plot the results in images/
>> python script_04.py

///----------------\\\
|||To get Figure 8.|||
\\\----------------///

To compute data for Figure 8 run the following code.
----------------------------------------------------

# Simulation 10000 iterations of the game
>> python script_05.py

To plot the pictures from Figure 8
----------------------------------
# Plot the results to the directory /images.
>> python script_06.py
