How to improve Performance for student grouping algorithm based on BalanceGroupSat #4091
-
What version of OR-Tools and what language are you using? Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) What did you do? I have tested the algorithm with 200 students data, and it takes only 0.29 seconds to obtain the optimal result when dividing the students into 2 groups. However, when dividing them into 10 groups, the algorithm runs for 4 minutes without reaching an optimal result. attached the source code, logs from two test runs, and the format of the test data. Could you please provide guidance on how to optimize the algorithm's performance? Thank you. source_code.txt |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
logs are not in ascii format. Try to upgrade to 9.8 and use more workers. |
Beta Was this translation helpful? Give feedback.
logs are not in ascii format.
Please run model.ExportToFile('2groups.pb.txt') (or 10groups.pb.txt) and attach the proto files.
Try to upgrade to 9.8 and use more workers.