A Problem Larger Than the Universe

A Problem Larger Than the Universe

In this puzzle, you are not asked to solve a concrete optimization problem, but to provide an estimate. Easy?

The quadratic assignment problem is a classical facility location problem. We are given n facilities that have known traffic volumes between each pair of facilities. We are also given n locations with known distances between each pair of locations. The task is simple: Assign each facility to a location so as to minimize the total transportation costs. We obtain these costs by multiplying the volume times the distance between each pair of facilities and then summing them all.

Say, we employ a brute-force algorithm to find the min-cost assignment. And we use a very large and very fast computer. And we have a lot of time.

We have one processor for each atom in the universe. That is 10^82 processors. Each processor can evaluate the cost of an assignment in Planck-time, 10^43 solutions per second. Note that no physical phenomenon can be measured faster. And we run this insane machine for 16 Billion years, from the Big Bang until now.

Take a guess, do not compute: How many facilities can we have maximally so that our machine can still solve this one instance?



What do you think? Is it more or less than a thousand?


The maximum we can hope to tackle with this brute force approach is one single QAP instance with 93 facilities.

And that is what optimization is all about: To solve real-world sized problems to near-optimality in a time that is suited for the problem. And that means, not to look at every potential solution as this takes way too much time.

We built InsideOpt Seeker to solve problems like the QAP in very short time. Below, we compare the performance of Seeker with Gurobi and Hexaly on the Taillard instances, some of which have 100 or more facilities. You see one triangle for each instance, positioned at the gap to the best-known solution that each solver leaves at the time limit. We used a four-core AMD EPYC x86_64, ubuntu-24_04-lts Linux machine with 5.5MB cache for these experiments.



Seeker vs Hexaly. Time limit 1 hour.




Seeker vs Hexaly. Time limit 60 seconds.




Seeker vs Gurobi. Time limit 1 hour.




Seeker vs Gurobi. Time limit 60 seconds.


You can try out Seeker yourself. Just check out this Google Colab. Here, we stop Seeker when the Hexaly or Gurobi gap after one hour is reached and measure how much faster Seeker is. Under 'Runtime' click 'Run all'. When that comparison is finished, look for 'Gurobi = True' after the definition of solveQAP - setting it to False creates a comparison with Hexaly.

Why do we compare for speed? Because speed matters. A super-efficient plan one minute too late is worth nothing. We need the best possible plans in time to change the world for the better. That is the core belief that drives InsideOpt. That we can change the world by increasing efficiency.

Now you are welcome to venture another guess how much faster is Seeker than Hexaly, more or less than 10 times? And Seeker vs Gurobi? Do you think Seeker is more or less than 100 times faster than Gurobi?

要查看或添加评论,请登录

Meinolf Sellmann的更多文章

  • Balancing Supply and Demand

    Balancing Supply and Demand

    We have three factories from where we service three clients. The first factory can provide 400 units, the second 300…

    2 条评论
  • Balancing Supply and Demand

    Balancing Supply and Demand

    We have three factories from where we service three clients. The first factory can provide 400 units, the second 300…

    2 条评论
  • OR 2025-2030

    OR 2025-2030

    We asked 25 AI/OR researchers, tool makers, developers, and practitioners what they expect the second half of this…

    14 条评论
  • Game of Life

    Game of Life

    In Conway's game of life (https://en.wikipedia.

    1 条评论
  • Non-Linear Optimization

    Non-Linear Optimization

    In todays puzzle, we solve a simple non-linear optimization problem with only five variables. Can you do it? In this…

    58 条评论
  • More Needles, More Haystack: Or The Irony of Optimization

    More Needles, More Haystack: Or The Irony of Optimization

    In this article, we discuss examples where an increase in performance potential frequently leads to a decline in actual…

    8 条评论
  • Can Simulation Entice Cooperation in Non-Zero-Sum Games?

    Can Simulation Entice Cooperation in Non-Zero-Sum Games?

    In honor of Joe Halpern's 70ies Birthday, a year ago Vincent Conitzer posted this puzzle: https://www.cs.

  • The Unquantified Risk

    The Unquantified Risk

    In decision science pipelines, we typically first estimate data, such as demand, travel times, price sensitivity etc…

    1 条评论
  • Mr Bates vs The Post Office

    Mr Bates vs The Post Office

    The Post Office in DS City has come up with a new measure to limit packages that can be sent under a new flat rate…

    3 条评论
  • Seeker 1.1 Released

    Seeker 1.1 Released

    InsideOpt Seeker just got even better. Some highlights: Improved memory efficiency Faster handling of permutation…

    5 条评论

社区洞察

其他会员也浏览了