Add badness calculation

Current using the number of times someone is on-rota two days in a
row, multiplied by the standard deviation in the allocation
frequencies.
This commit is contained in:
2024-04-08 18:45:40 +01:00
parent 0e0a224f91
commit a9b310b557
2 changed files with 48 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ void generate_rota(struct slot_result *rota_out);
void generate_allocation(int slot, int job, struct allocation *allocation_out);
bool satisfies_allocation_constraints(const struct allocation *allocation);
bool satisfies_slot_constraints(const struct slot_result *slot);
int rota_badness(const struct slot_result *rota);
void print_rota(const struct slot_result *rota);
#endif