Skip to content

Commit 3fce36e

Browse files
committed
Remove pre-allocations from solution for consistency optimisation
1 parent 1a6b194 commit 3fce36e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/scheduler/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ def build(algorithm, objective, diff, input_dir, solution_dir, build_dir):
6969
kwargs = {}
7070
if objective == 'consistency' or diff:
7171
original_solution = io.import_solution()
72-
defn.add_allocations(events, slots, original_solution, allocations)
72+
revised_solution = [
73+
item for item in original_solution
74+
if item[0] < len(events)]
7375
original_schedule = solution_to_schedule(
74-
original_solution, events, slots)
76+
revised_solution, events, slots)
7577

7678
if objective == 'consistency':
7779
diff = True

0 commit comments

Comments
 (0)