Closed joegaudet closed 5 years ago
Yes. This is intended. Enumerating all solutions in parallel without duplicate is not yet planned. Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53 00
Le jeu. 11 avr. 2019 à 09:10, Joe Gaudet notifications@github.com a écrit :
Running a copy of the nurse scheduling solution from the examples:
# Creates the solver and solve. solver = cp_model.CpSolver() solver.parameters.linearization_level = 0 solver.parameters.num_search_workers = 2 # Display the first five solutions. a_few_solutions = range(1) solution_printer = NursesPartialSolutionPrinter( shifts, num_nurses, num_days, num_shifts, a_few_solutions) solver.SearchForAllSolutions(model, solution_printer)
I added the num_workers_params to test out parallel search and got the following error.
WARNING: Logging before InitGoogleLogging() is written to STDERR F0411 09:09:06.670298 307049920 cp_model_solver.cc:1957] Check failed: !params.enumerate_all_solutions() Check failure stack trace:
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/1186, or mute the thread https://github.com/notifications/unsubscribe-auth/AKj17eiW3AJ09w3H0p46iY5rNKJdNC4cks5vf16QgaJpZM4cp_Ee .
Running a copy of the nurse scheduling solution from the examples:
I added the num_workers_params to test out parallel search and got the following error.