This weekend Last weekend First weekend Final weekend Next weekend Coming up Past
Week No cleaning
–
Nothing this weekend.
Thanksgiving break. Cleaning starts back up .
Next weekend's tasks will show up Wednesday.
My apartment's chore plan was a PDF, and its rotations overlapped. I wrote fairness rules, and a small Python optimizer found a semester schedule that follows them. This page runs a JavaScript port of that optimizer and then shows the web app each roommate used to see their weekend. The names and dates are made up.
Try this: press Run the optimizer in step 2. Then pick a name in step 3 and move the date forward to a Wednesday to watch the app switch weekends.
The sample data didn't load. Reload the page to try again.
The PDF had a numbered list for each chore. Each list repeated on its own, and you counted weeks to find your turn. Every list started with the same person, so Theo gets all three chores on 2 weekends and does the bathroom 2 out of every 3 weeks.
Hand towels and rags go in the laundry. Wipe the counters, table and stove, and clear the kitchen.
Old list
Sinks, toilets, showers, mirror and floor.
Old list, 2 people a weekend
Pick everything up off the floor, then vacuum and mop everywhere but the bedrooms.
Old list
Names in red have more than one chore that weekend.
| Week | Weekend | Towels + kitchen | Bathroom | Vacuum + mop | Doubled up |
|---|
Passes 0 of 5 rules
| Rule | Violations |
|---|---|
| Nobody gets more than one chore on a weekend Most chores on one weekend: | |
| Nobody does the same chore two weekends in a row Repeats: towels , bathroom , mop | |
| Bathroom: a different person takes the double turn in each 3-week block Double turns: | |
| Everyone does each chore within 1 time of everyone else Gaps: towels , bathroom , mop | |
| Everyone shares a bathroom shift with every other roommate Pairs covered: of |
The optimizer is simulated annealing. It starts from a random schedule and swaps out one weekend at a time. A swap that lowers the cost is kept. A swap that raises it is sometimes kept too, often at the start and almost never by the end, so the search doesn't stall on the first decent schedule.
Breaking a hard rule adds 1,000 to the cost. Smaller penalties spread repeats apart and mix up the bathroom pairs. Each run is 150,000 swaps, the same as the Python script.
The seed makes a run repeatable. A seed gives the same schedule here as it does in the Python script, which tried seeds 0 to 19 and kept seed 6.
Use a whole number from 0 to 999,999.
schedule optimizerreadyrunningdone
The best schedule from the run and the app each roommate opened to see their weekend.
Run the optimizer in step 2 to see the schedule here.
Schedule from seed
This seed left rule violations. The optimizer counts back-to-back repeats and bathroom pairs as soft penalties, so a single run can leave a few. The Python script runs seeds 0 to 19 and keeps the lowest cost, which is seed 6.
Passes 0 of 5 rules
| Rule | Violations |
|---|---|
| Nobody gets more than one chore on a weekend Most chores on one weekend: | |
| Nobody does the same chore two weekends in a row Repeats: towels , bathroom , mop | |
| Bathroom: a different person takes the double turn in each 3-week block Double turns: | |
| Everyone does each chore within 1 time of everyone else Gaps: towels , bathroom , mop | |
| Everyone shares a bathroom shift with every other roommate Pairs covered: of |
| Person | Towels + kitchen | Bathroom | Vacuum + mop | Total |
|---|
to .
The app switches to the next weekend every Wednesday.
This weekend Last weekend First weekend Final weekend Next weekend Coming up Past
–
Nothing this weekend.
Thanksgiving break. Cleaning starts back up .
Next weekend's tasks will show up Wednesday.
You have tasks on of weekends through . Choose a row to see that weekend.
Your tasks get their own calendar.
The current weekend has an orange bar.
| Week | Weekend | Towels + kitchen | Bathroom | Vacuum + mop |
|---|
· with · just you