Problem
A bank plans next week's contacts for tens of millions of customers: who gets which product offer through which channel (call, SMS). The planning problem is an integer linear program with hundreds of millions of variables and constraints. Solved whole, it takes about a day and a half, while the schedule allows about 20 minutes. To fit the time, the team split customers into chunks. Small chunks tighten the capacity limits and can lose part of the optimal value.
Example from the article: a weekly communication plan for Alfa-Bank's customer base with the open-source CBC solver, previously split into 150 chunks.
Solution in brief
First make one chunk solve much faster: tune CBC settings, remove two Pyomo habits that slow CBC down, and rewrite the model with auxiliary variables that sum customers sharing the same objective coefficient. Then use the freed time to make chunks larger. The article reports speedups of up to 80 times and about 0.5% more objective value.
Questions this case answers
- How to solve an assignment problem with tens of millions of binary variables and capacity constraints within a fixed time window when the exact solve takes days
- How to choose the size of independent subproblems when splitting a large integer program trades solution quality against solving time
- How to build a weekly customer communication plan with an integer program when the full problem takes a day and a half to solve?
- How to speed up the CBC open-source solver on a large assignment-type integer program?
Tools and methods
- Integer linear programming — assigns each customer at most one contact to maximize expected responses
- CBC — open-source solver for the model
- Pyomo — Python modeling library that calls CBC
- Chunking — splits customers into independent subproblems
- Auxiliary aggregate variables — shrink the model by grouping customers with equal objective coefficients
Google or a one-time email code. No password.