Skip to content

Repository of the project from "Progetto di Ingegneria Informatica" (Computer Engineering Progect) course at Politecnico di Milano (AY 2021-2022)

License

Notifications You must be signed in to change notification settings

alessandrozito98/electoral-systems-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulatore di sistemi elettorali

License: MIT CodeFactor

GitHub pull requests GitHub issuess

Description

Simulations of different electoral laws with the same dataset to see if there would be any changes in the composition of the parliament.

Installation

Needs python3.

Use the package manager pip to install all the librabries.

pip3 install -r requirements.txt

Configuration

Usage

Two ways of starting the simulation:

  1. Using the bash console:
python3 -m src LeggiElettorali/LawName
  1. Using the python console:
import src
src.run_simulation('LeggiElettorali/LawName')

Setup

Create a folder in LeggiElettorali/name_of_new_law with this structure:

  • Classes
  • Data
  • Instances

for more information on which files to put in the folder, see the documentation.

Credits

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Licensed under GNU General Public License v3.0 license.

About

Repository of the project from "Progetto di Ingegneria Informatica" (Computer Engineering Progect) course at Politecnico di Milano (AY 2021-2022)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published