I always like to try to translate it to a really simple English version:
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.
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.
Someone correct if I'm mistaken, but I understand interior point methods are also used for quadratic programming, for example as used by SpaceX in their landing algorithms.
Most general convex solvers used in production are interior point solvers.
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
I'm not really an LP person anymore, but I remember Gurobi using a mixture of Simplex and interior point pretty heavily? Might just be if you have a bunch of spare cores though.
This was also my impression confirmed by a somewhat recent discussion with someone at gurobi. If you plug in a problem it typically tries both but a surprising percentage (something like ~40%) are solved by the simplex method.
I cannot talk about gurobi specifically, but that's not an uncommon approach for pure LPs and root MIP relaxations.
Simplex is pretty single threaded since you perform many sequential pivots. If you want to parallelize you basically have to use things like parallel pricing.
This is of course also true for interior point, but the difference is that interior point uses fewer, larger steps, which work more nicely on parallel hw.
for milp this is less useful since you want a basic solution and warm start is much better done with a dual simplex.
There are still some big things you can do for simplex, e.g. we get closer and closer to block pivots becoming viable.
Simplex often has very fast solves but WCET is exponential. Interior point methods can achieve polynomial time, but have a much larger cost for setup and can be expensive for each step. Simplex problems with new constraints can often start at a previous solution and slide along the solution face quickly.
Anyone with experience in the field knew this ( but had not proven it).
You could have a small problem and then add in just one more variable and could make it unsolvable. Then you could one more and then it is solvable again.
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.
This doesn't look right to me.
] ...and can make it unsolvable.
This isn't the issue, rather issueis whether one can make it solvable but hard. (Simplex always converges.)
Also smoothed analysis (Spielmann etc.) shows that simplex becomes provablu fast if you add a bit of noise. My mental picture was always these "adversarial" examples would never be met by the practioner, a bit like how blowing up solutions of navier stokes never show up in nature.
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.
Replies (5)
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.
Replies (2)
Replies (1)
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
Replies (1)
Replies (2)
Simplex is pretty single threaded since you perform many sequential pivots. If you want to parallelize you basically have to use things like parallel pricing. This is of course also true for interior point, but the difference is that interior point uses fewer, larger steps, which work more nicely on parallel hw.
for milp this is less useful since you want a basic solution and warm start is much better done with a dual simplex.
There are still some big things you can do for simplex, e.g. we get closer and closer to block pivots becoming viable.
You should start a blog, if you don't already have one. I would subscribe.
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.
Replies (1)
Replies (1)
Navier stokes is entirely unphysical to begin with, fluids are made of particles.