Mixed-integer programming formulations for the quadratic bin packing problem: linearization, hybridization, and enhancements
This paper presents and analyzes various linearized and hybrid mixed-integer programming formulations for the quadratic bin packing problem, demonstrating that specific item ordering strategies and a novel hybrid approach combining bin patterns with assignment-based representations significantly outperform existing methods and solve 33 new benchmark instances to optimality.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are organizing a fleet of delivery trucks, each with a strict weight limit. Your goal is to fit all the packages into the fewest trucks possible. This is a classic puzzle known as the bin packing problem, a staple of logistics and computer science. But real-world constraints are rarely that simple. Sometimes, certain packages simply do not belong together. Perhaps two hazardous chemicals cannot share a vehicle, or two competing advertisements look better on separate billboards. Conversely, some items might work better together, like complementary products that boost sales when displayed side-by-side. When you add these pairwise relationships to the mix, the problem transforms. You are no longer just counting trucks; you are balancing the cost of using an extra vehicle against the penalty or profit of specific combinations. This complex challenge is called the quadratic bin packing problem, and it sits at the heart of many modern allocation tasks, from scheduling flights to designing efficient computer networks.
For years, researchers have struggled to solve this problem efficiently. The difficulty lies in the sheer number of ways items can be grouped. As the number of items grows, the possible combinations explode, making it nearly impossible for standard computers to find the perfect arrangement without taking an impractical amount of time. In a recent study, a team of researchers from Tilburg University tackled this issue by developing new mathematical models designed to help computers navigate this maze more effectively. They did not invent a new algorithm from scratch; instead, they refined the way the problem is written down for a computer to understand. By reorganizing the rules and adding specific structural insights, they created formulations that allow standard software to solve these puzzles faster and more accurately than ever before.
The researchers began by examining how computers currently approach the problem. They looked at several existing methods, which essentially translate the complex relationships between items into a set of linear instructions. Think of these instructions as a list of rules that tell the computer, "If item A is in this group, then item B cannot be," or "If these two are together, add this cost." The team discovered that while some of these rule sets were mathematically equivalent in theory, they behaved very differently once the computer started trying to solve them. A key insight was that the order in which items are presented to the computer matters immensely. Just as a librarian might organize books by genre to make them easier to find, the researchers found that sorting items based on how many other items they interact with could drastically simplify the task. By placing the most "social" items—those with the most connections to others—at the beginning of the list, the computer could eliminate unnecessary possibilities much earlier in the process.
To test their ideas, the team created a new type of model that combines two different strategies. One strategy involves listing every possible valid group of items that could fit in a single bin, while the other focuses on assigning items one by one to available bins. The researchers realized that trying to list every possible group for a large number of items would overwhelm a computer's memory, but trying to assign items one by one without any pre-planned groups could be inefficient. Their solution was a hybrid approach: they selected a small, manageable subset of items to generate all possible groups for, while handling the remaining items through the assignment method. This balance allowed them to capture the benefits of both strategies without the computational cost of either extreme. They also introduced a simple but powerful rule derived from the basic bin packing problem: a guarantee that a certain minimum number of bins must be used, regardless of the specific items. This rule acted as a guardrail, preventing the computer from wasting time exploring impossible solutions.
The results of their experiments were striking. Using a standard set of 675 test cases, the researchers compared their new models against the best existing methods. The traditional approach, which had been the gold standard for some time, solved about 343 of these instances to a guaranteed optimal solution within a one-hour time limit. The researchers' best non-hybrid model, enhanced with the new ordering rules, solved 389 instances. Their hybrid model, which mixed the grouping and assignment strategies, performed even better, solving 410 instances. In total, their approaches found the perfect solution for 33 instances that the previous best method could not solve at all within the time limit. These were not just marginal gains; they represented a significant leap in capability, particularly for problems where items had positive interactions or where the connections between items were sparse.
The study also clarified what does not work as well as one might hope. The researchers tested a highly complex mathematical technique known as a reformulation-linearization technique, which is often used to strengthen other types of optimization problems. While this method produced a very strong theoretical lower bound on the solution, it did not translate into faster or better results in practice. The model became so large and complex that the computer spent more time managing the size of the problem than actually solving it. This finding serves as a reminder that in computational science, a theoretically perfect model is not always the most practical one. Sometimes, a slightly weaker model that is smaller and more streamlined will outperform a massive, intricate one.
Another critical discovery was the impact of item ordering. The researchers showed that simply rearranging the items based on their interaction degree—how many other items they are connected to—could reduce the number of variables the computer had to track by nearly 12 percent. This reduction in complexity, combined with a stronger mathematical bound, led to a 13 percent decrease in the average time required to solve the problems. This effect was most pronounced in cases where the items had fewer connections to one another, suggesting that the structure of the problem itself dictates the best way to approach it. The researchers also found that while adding cumulative rules to their models provided some theoretical benefit, the single rule guaranteeing a minimum number of bins was the most effective addition, offering the best return on investment for the computational effort.
Ultimately, the work demonstrates that even in a field dominated by specialized, custom-built algorithms, there is still room for improvement through careful refinement of standard models. The researchers did not need to build a new engine; they simply tuned the existing one. Their hybrid model, which blends explicit group planning with flexible assignment, proved to be a robust tool that complements the specialized branch-and-price algorithms currently used by experts. While the specialized algorithms remain the most powerful overall, the new formulations offer a simpler, more accessible alternative that excels in specific scenarios. For industries dealing with complex allocation problems, this means that high-quality solutions can be found using off-the-shelf software, provided the problem is structured correctly. The study concludes that the key to unlocking efficiency often lies not in adding more complexity, but in understanding the underlying structure of the problem and arranging the data in a way that respects its natural constraints.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.