Try to split weekend nwdsTry to split weekend nwds
This commit is contained in:
@@ -11,7 +11,7 @@ import datetime
|
||||
import sys
|
||||
|
||||
use_neos = True
|
||||
use_cplex = False
|
||||
use_cplex = True
|
||||
solve = True
|
||||
|
||||
weeks_to_rota = 8
|
||||
@@ -29,7 +29,7 @@ Rota = RotaBuilder(datetime.date(2021, 9, 6),
|
||||
#Rota = RotaBuilder(datetime.date(2021, 12, 6),
|
||||
#Rota = RotaBuilder(datetime.date(2021, 11, 8),
|
||||
weeks_to_rota=weeks_to_rota,
|
||||
balance_offset_modifier=1,
|
||||
balance_offset_modifier=2,
|
||||
max_weekend_frequency=2,
|
||||
max_night_frequency=2)
|
||||
|
||||
@@ -82,17 +82,17 @@ Rota.add_shifts(
|
||||
12.5,
|
||||
days[4:],
|
||||
balance_offset=3,
|
||||
rota_on_nwds=True,
|
||||
rota_on_nwds=False,
|
||||
force_as_block=True,
|
||||
force_as_block_unless_nwd=False),
|
||||
force_as_block_unless_nwd=True),
|
||||
SingleShift(("torbay", ),
|
||||
"weekend_torbay",
|
||||
12.5,
|
||||
days[4:],
|
||||
balance_offset=3,
|
||||
rota_on_nwds=True,
|
||||
rota_on_nwds=False,
|
||||
force_as_block=True,
|
||||
force_as_block_unless_nwd=False),
|
||||
force_as_block_unless_nwd=True),
|
||||
SingleShift(("plymouth", ),
|
||||
"weekend_plymouth1",
|
||||
8,
|
||||
@@ -362,4 +362,4 @@ ResultsHolder.get_weekend_details()
|
||||
with open("test.html", "w") as f:
|
||||
f.write(ResultsHolder.get_worker_timetable_html(True))
|
||||
|
||||
ResultsHolder.export_rota_to_csv("rota")
|
||||
ResultsHolder.export_rota_to_csv("rota")
|
||||
|
||||
Reference in New Issue
Block a user