Skip to content

Instantly share code, notes, and snippets.

@InnovativeInventor
Created September 20, 2020 15:49
Show Gist options
  • Save InnovativeInventor/03e1c5065a87f7a6cf830caf69ccd600 to your computer and use it in GitHub Desktop.
Save InnovativeInventor/03e1c5065a87f7a6cf830caf69ccd600 to your computer and use it in GitHub Desktop.
Example yaml schema of a housing assignment input with encoded preferences
houses:
- name: East Cottage
capacity: 4
- name: Memorial House
capacity: 3
- name: Tenny House
capacity: 3
- name: Atwater
capacity: 3
size: 4
ballots:
- name: Max Fan
rankings:
- name: Tenny House
weight: 20
- name: Memorial House
weight: 5
- name: East Cottage
weight: 30
- name: Atwater
weight: 1
pairings:
- name: James Doe
weight: 5
- name: Albert
weight: 3
- name: James Doe
rankings:
- name: Tenny House
weight: 5
- name: Memorial House
weight: 31
- name: East Cottage
weight: 10
- name: Atwater
weight: 1
pairings:
- name: James Doe
weight: 5
- name: Albert
weight: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment