Skip to content

small script to find possible seatings for a list of peoples, respecting a preference of each person

Notifications You must be signed in to change notification settings

yonarw/table_planner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wedding / Event table planner

Dependencies (ubuntu)

  • python
  • graphviz
  • pygraphviz
    • install via:

      sudo apt install libgraphviz-dev python-pip

      pip install pygraphviz

csv format

<person(s) A>, <number of persons>, <person perference 1>, <person perference 2>, ...
<person(s) B>, <number of persons>, <person perference 1>, <person perference 2>, ...
...

table setup

change the lines:

num_tables = 3
places_per_table = 5

in table_planner.py to match your needs.

run

python table_planner.py

The score represents the number of preferences that was met with a valid solution.

limitations

  • currently tables all have the same number of seats

About

small script to find possible seatings for a list of peoples, respecting a preference of each person

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages