Refactor RotaBuilder export functionality and enhance display of run times with improved layout

This commit is contained in:
Ross
2025-08-11 16:31:27 +01:00
parent 45837597d9
commit 3b3d432694
4 changed files with 411 additions and 54 deletions
+2 -2
View File
@@ -318,7 +318,7 @@ def main(
rota_start_date,
weeks_to_rota=weeks,
balance_offset_modifier=bom,
name="cons rota",
name="cons rota test",
)
# Rota = RotaBuilder(start_date, weeks_to_rota=20, balance_offset_modifier=1)
Rota.constraint_options["balance_weekends"] = True
@@ -486,7 +486,7 @@ def main(
# solver_options = {"seconds": time_to_run, "threads": 10}
# start_time = time.time()
Rota.build_and_solve(solver_options, export=True, solve=solve, solver="appsi_highs")
Rota.build_and_solve(solver_options, export=True, export_with_timestamp=False, solve=solve, solver="appsi_highs")
# Rota.solve_shifts_by_block(solver_options, block_length=13)
# Rota.solve_shifts_individually(solver_options)