W13
This commit is contained in:
parent
fae35f1ebf
commit
7cb96051a3
105
config.yaml
105
config.yaml
@ -1,5 +1,5 @@
|
||||
config:
|
||||
days: 4
|
||||
days: 3
|
||||
weights:
|
||||
likes: 1
|
||||
hates: 3
|
||||
@ -8,99 +8,98 @@ config:
|
||||
task_re: "[ ,/]+"
|
||||
tasks:
|
||||
hotemetoten:
|
||||
personen: [Lucus, Yorick, Sjors, MacGyver, Linda, Wassasin]
|
||||
personen: [MrNGm, Pepper, Joost, Annelies]
|
||||
workload: 4
|
||||
req: [1, 1, 1, 1]
|
||||
req: [1, 1, 1]
|
||||
hardcode:
|
||||
- Wassasin
|
||||
- lucus
|
||||
- Yorick
|
||||
- Sjors
|
||||
- MrNGm
|
||||
# - Pepper
|
||||
- Joost
|
||||
- Annelies
|
||||
lookup: [hotemetoten]
|
||||
superkok:
|
||||
req: [1, 1, 1, 1]
|
||||
personen: [linda, pepper, bwesterb, tommeh]
|
||||
req: [1, 1, 1]
|
||||
personen: [lynn, pepper, Wassasin]
|
||||
workload: 4
|
||||
lookup: [superkok]
|
||||
hardcode:
|
||||
- Linda
|
||||
- Pepper
|
||||
- bwesterb
|
||||
- tommeh
|
||||
- Wassasin
|
||||
- lynn
|
||||
drankmanagen:
|
||||
req: [1, 1, 1, 1]
|
||||
req: [1, 1, 1]
|
||||
personen: [MacGyver]
|
||||
workload: 1
|
||||
lookup: [drankmanagen]
|
||||
koken:
|
||||
req: [3, 2, 2, 2]
|
||||
req: [2, 3, 2]
|
||||
workload: 3
|
||||
personen: liefhebbers
|
||||
lookup: [koken, kookhulp, hulpkoken]
|
||||
schoonmaken:
|
||||
req: [3, 4, 4, 4]
|
||||
req: [3, 4, 4]
|
||||
workload: 2
|
||||
personen: iedereen
|
||||
lookup: [schoonmaken]
|
||||
snackdealen:
|
||||
req: [4, 5, 5, 5]
|
||||
req: [4, 5, 5]
|
||||
workload: 1
|
||||
personen: iedereen
|
||||
lookup: [hapjes, snackdealen]
|
||||
fotograferen:
|
||||
req: [2, 2, 2, 2]
|
||||
req: [2, 2, 2]
|
||||
workload: 1
|
||||
personen: liefhebbers
|
||||
lookup: [fotograferen]
|
||||
afwassen:
|
||||
req: [4, 4, 4, 4]
|
||||
req: [4, 4, 4]
|
||||
workload: 2
|
||||
personen: iedereen
|
||||
lookup: [afwassen]
|
||||
snijpieten:
|
||||
req: [3, 4, 4, 4]
|
||||
req: [3, 4, 4]
|
||||
workload: 2
|
||||
personen: iedereen
|
||||
lookup: [snijden]
|
||||
pendelen:
|
||||
req: [2, 1, 2]
|
||||
workload: 2
|
||||
personen: liefhebbers
|
||||
lookup: [pendelen]
|
||||
people:
|
||||
- Lucus
|
||||
- Yorick
|
||||
- Sjors
|
||||
- MacGyver
|
||||
- Linda
|
||||
- Wassasin
|
||||
- Daan
|
||||
- MrNGm
|
||||
- Petervdv
|
||||
- Minnozz
|
||||
- Nova
|
||||
- Joost
|
||||
- Obfusk:
|
||||
dagen: []
|
||||
- Marlon
|
||||
- Pepper
|
||||
- PaxSum: # vrijdag
|
||||
dagen: [1,2,3]
|
||||
- M-ou-se
|
||||
- Joost
|
||||
- MrNGm
|
||||
- Annelies
|
||||
- Weasel
|
||||
- Carrot
|
||||
- Wassasin
|
||||
- lynn
|
||||
- Roflincopter
|
||||
- Bwesterb
|
||||
- Tommeh: # vrijdag
|
||||
dagen: [1,2,3]
|
||||
- NickNick
|
||||
- Quis
|
||||
- SyntaxTerror
|
||||
- lucus
|
||||
- Weasel
|
||||
- ElizaAntoine
|
||||
- Lyra
|
||||
- MacGyver
|
||||
- Abel
|
||||
- Carlien
|
||||
- SyntaxTerror
|
||||
- carrot
|
||||
- Blondie
|
||||
- Avel: # vrijdag
|
||||
dagen: [1,2,3]
|
||||
- Thundur: # vrijdag
|
||||
dagen: [1,2,3]
|
||||
- Ayke
|
||||
- Bwesterb
|
||||
- M-ou-se
|
||||
- PaxSum
|
||||
- Petervdv
|
||||
- Margot
|
||||
- Daan
|
||||
- Laurens
|
||||
- yorick
|
||||
- Minnozz
|
||||
- Sjors
|
||||
- Quis
|
||||
- Nova
|
||||
- Marlon
|
||||
- Aaron
|
||||
- AlphaCentauri
|
||||
- BOBMarlie
|
||||
- Martijn
|
||||
- Colin
|
||||
- Blu
|
||||
- Hannah
|
||||
- Cocidius:
|
||||
dagen: [1,2,3]
|
||||
|
@ -148,7 +148,9 @@ def write_tasks(people, tasks, file=sys.stdout):
|
||||
for (d,t) in p.does:
|
||||
days[d].append((t, t in p.loves, t in p.hates))
|
||||
q = lambda w: ",".join([t + (" <3" if l else "") + (" :(" if h else "") for (t,l,h) in w])
|
||||
print("| {} || {} || {} || {} || {} || {} || {}".format(name, *map(q, days), p.vrolijkheid(), p.workload(tasks)), file=file)
|
||||
days_fmt = " {} ||" * len(days)
|
||||
days_filled = days_fmt.format(*map(q, days))
|
||||
print("| {} ||{} {} || {}".format(name, days_filled, p.vrolijkheid(), p.workload(tasks)), file=file)
|
||||
print("|-")
|
||||
people = read_people(conf['people'])
|
||||
with open('prefs_table', 'r') as pref_file:
|
||||
|
@ -82,4 +82,4 @@ printf{p in P} "%d %d\n", p, abs((sum{j in J, d in D : A[p,j,d] > 0} Wl[j]) - Co
|
||||
printf "workload_dev: %d\n", sum{p in P} abs((sum{j in J, d in D : A[p,j,d] > 0} Wl[j]) - Costs[p])^2;
|
||||
|
||||
|
||||
end;
|
||||
end;
|
||||
|
62
prefs_table
62
prefs_table
@ -1,31 +1,31 @@
|
||||
Lucus koken schoonmaken, fotograferen
|
||||
Wassasin koken fotograferen
|
||||
linda superkok koken, snijden, afwassen, schoonmaken, fotograferen
|
||||
Nova koken, afwassen fotograferen, snackdealen
|
||||
Obfusk koken, afwassen fotograferen, snackdealen, schoonmaken
|
||||
Daan fotograferen, koken schoonmaken
|
||||
Pepper superkok
|
||||
Roflincopter snijden, afwassen, schoonmaken snackdealen, fotograferen, koken
|
||||
SyntaxTerror fotograferen, snijden, afwassen koken
|
||||
Annelies fotograferen, afwassen, koken snackdealen
|
||||
Joost snijden, koken, afwassen fotograferen, snackdealen
|
||||
MrNGm koken, snijden, schoonmaken, fotograferen
|
||||
PaxSum koken, snijden, afwassen Fotograferen, snackdealen
|
||||
Weasel hulpkoken, snijden, fotograferen snackdealen, schoonmaken
|
||||
NickNick snackdealen, snijden, koken schoonmaken, afwassen
|
||||
carrot snijden, koken, afwassen schoonmaken, snackdealen
|
||||
bwesterb superkok, snijden schoonmaken, snackdealen, afwassen
|
||||
Minnozz koken schoonmaken
|
||||
ElizaAntoine snijden, schoonmaken, afwassen snackdealen, koken
|
||||
Ayke koken, snijden, afwassen
|
||||
Cocidius koken, snijden, afwassen schoonmaken
|
||||
Blondie fotograferen, koken schoonmaken, snackdealen
|
||||
Thundur snijden, koken, afwassen snackdealen, fotograferen
|
||||
Tommeh superkok
|
||||
Petervdv snackdealen fotograferen, koken, afwassen
|
||||
Abel fotograferen, afwassen
|
||||
Avel fotograferen, schoonmaken, snackdealen snijden, afwassen
|
||||
Sjors snackdealen, schoonmaken koken
|
||||
Carlien snackdealen, schoonmaken koken
|
||||
Quis snackdealen, snijden, koken schoonmaken, fotograferen
|
||||
MacGyver drankmanagen
|
||||
Pepper koken, snijden fotograferen, snackdealen
|
||||
Joost afwassen, koken, snijden fotograferen, snackdealen
|
||||
Annelies afwassen, fotograferen, pendelen koken, snijden, snackdealen
|
||||
Laurens pendelen, koken, snijden schoonmaken
|
||||
Weasel fotograferen, koken, snijden snackdealen, schoonmaken
|
||||
Martijn koken, snijden schoonmaken, afwassen
|
||||
PaxSum koken, snijden, afwassen fotograferen, snackdealen
|
||||
petervdv snackdealen, pendelen koken, afwassen, schoonmaken, fotograferen
|
||||
Lyra fotograferen, afwassen, snijden pendelen
|
||||
Nova pendelen, koken, snijden fotograferen, schoonmaken, snackdealen
|
||||
ElizaAntoine afwassen, schoonmaken, fotograferen koken, snijden, snackdealen, pendelen
|
||||
SyntaxTerror fotograferen, snijden, afwassen koken, snackdealen, pendelen
|
||||
AlphaCentauri snackdealen, schoonmaken, afwassen koken, pendelen, snijden
|
||||
Daan pendelen, fotograferen afwassen, schoonmaken
|
||||
Lucus koken, snijden, afwassen fotograferen, schoonmaken
|
||||
Abel fotograferen, snijden, afwassen schoonmaken, koken
|
||||
yorick snijden, afwassen fotograferen, schoonmaken
|
||||
bwesterb snijden, koken afwassen, schoonmaken, snackdealen
|
||||
Quis snijden, koken, snackdealen schoonmaken
|
||||
Minnozz snijden, koken schoonmaken, snackdealen, afwassen
|
||||
Margot snijden, koken, afwassen schoonmaken, snackdealen, fotograferen
|
||||
lynn fotograferen
|
||||
Colin Afwassen, schoonmaken, snackdealen koken, snijden
|
||||
Sjors Pendelen, schoonmaken, snackdealen koken, snijden
|
||||
Blondie fotograferen, afwassen, snackdealen schoonmaken, snijden
|
||||
Roflincopter schoonmaken, snijden, afwassen snackdealen, fotograferen
|
||||
BOBMarlie fotograferen, koken, snijden afwassen, schoonmaken, snackdealen
|
||||
Aaron fotograferen, afwassen, snijden koken, schoonmaken, snackdealen, pendelen
|
||||
Wassasin koken, snijden, snackdealen fotograferen
|
||||
carrot pendelen, schoonmaken, koken fotograferen, snackdealen
|
||||
M-ou-se snijden, snackdealen afwassen, schoonmaken, fotograferen
|
||||
|
Loading…
Reference in New Issue
Block a user