@@ -73,7 +73,7 @@ def import_schedule_definition(solution_folder):
7373
7474
7575def pickle_solution_and_definition (
76- resources , events , slots , solution , solution_folder
76+ resources , events , slots , allocations , solution , solution_folder
7777):
7878 """Store the computed solution, the resources dict and the associated
7979 events and slots lists in pickle format"""
@@ -84,6 +84,7 @@ def pickle_solution_and_definition(
8484 'resources' : resources ,
8585 'events' : events ,
8686 'slots' : slots ,
87+ 'allocations' : allocations ,
8788 'solution' : solution
8889 }
8990 with pickle_file .open ('wb' ) as f :
@@ -114,9 +115,9 @@ def export_schedule(solution, events, slots, solution_folder):
114115
115116
116117def export_solution_and_definition (
117- resources , events , slots , solution , solution_folder
118+ resources , events , slots , allocations , solution , solution_folder
118119):
119120 solution_folder .mkdir (exist_ok = True )
120121 pickle_solution_and_definition (
121- resources , events , slots , solution , solution_folder )
122+ resources , events , slots , allocations , solution , solution_folder )
122123 export_schedule (solution , events , slots , solution_folder )
0 commit comments