by Luke2642 · 1w ago · 0 comments
You can represent many problems like logistics with a list of linear requirements so valid combinations form a multi-dimensional geometric shape where every corner of that shape and inside that shape represents a 'valid' but probably not optimal solution, e.g. every package gets delivered by a driver, but not the lowest fuel or time, and 'valid' so no rules are broken, like no driver is scheduled more than >24 hours in one day.
Every edge is a single step that changes one variable. It's interesting and useful because surprisingly the representation means the optimal solution will always lie on an outside corner. You generally start somewhere 'warm' and try to get hotter, that's the Simplex algorithm.
The polynomial Hirsch conjecture was that the number of steps between any two corners grows polynomially as you add more variables and rules, limiting how many steps you might need to find that optimal corner. Now we know you need more steps.
Hope I saved you time/tokens though.
In real-world logistics, the shapes are generally nice and convex, not "adversarially warped", so Simplex is fast.
Apparently when guaranteed polynomial speed is needed, solvers use interior-point methods, which tunnel straight through the inside of the shape rather than walking along the outside edges, which is unaffected by the new result anyway.
For LPs, simplex frequently ends up better because it is naturally well conditioned (you don't need e.g. LU factors), and because solutions are basic you can use row generation to add in constraints as they become relevant.
The latter is particularly helpful for combinatorial optimization or when iteratively refining linearizations of convex problems.
Interior point for LPs become interesting when your problem is somewhat degenerate. In well structured problems one can exploit the polytope surface to quickly step through bases without needing to factorize or even materialize large matrices
Simplex is great most of the times (specially the commercial implementations of it), to the point we forget it is an exponential algo. But some times the beast reminds us it’s still there, just hiding.
Navier stokes is entirely unphysical to begin with, fluids are made of particles.
You should start a blog, if you don't already have one. I would subscribe.