Write simple rota generation procedure

This commit is contained in:
2024-04-08 18:45:40 +01:00
parent 8ea9dde9d4
commit ad616dd980
2 changed files with 154 additions and 0 deletions

View File

@@ -29,4 +29,10 @@ struct slot_result {
struct allocation allocations[MAX_JOBS];
};
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);
void print_rota(const struct slot_result *rota);
#endif