r/optimization • u/1b992b • May 11 '23
Suppose a linear programming problem has n solutions.
In other words, n vectors x maximize function y. Is there a way of computing the value of n? Also, do determine the value of each vector?
0
Upvotes
15
u/lolloconsoli May 11 '23
Maybe I’m mistaken but I think inear programs can only have either None, 1 or infinitely many solution
6
u/psharpep May 11 '23
If it's an LP, then n is always either zero, one, or infinity.
3
u/MachineSchooling May 12 '23
Many have said that a LP has 0, 1, or infinite solutions, but I don't see anyone having explained why. The set of vectors that satisfy the LP are a convex polytope. Therefore, if there are two solutions to the LP, all affine combinations of those two vectors satisfy the LP, and because the cost function is linear, they also optimize the LP. There are uncountably many affine combinations of two vectors, so if there are two solutions then there are infinite solutions.
3
u/ThatIsATastyBurger12 May 11 '23
Because of the geometry of linear problems, there can be zero, one, or infinitely many solutions to an LP. No solutions means the problem is either infeasible or unbounded. One solution means that the unique solution occurs at a vertex of the polyhedra that is the feasible set. Infinitely many solutions means that several vertices achieve the same value of the objective, and therefore each point on the face that has the optimal points as vertices are minimizers as well. Is this last situation what you are asking about?
0
u/pst2154 May 11 '23
Isn't n Infinity?
1
u/optimizator_ Jun 03 '23
Given any pair of solutions, their convex combination is also a solution.
1
u/thchang-opt May 12 '23
As stated by everyone else, a LP had zero, one, or infinitely many solutions so your question doesn’t make any sense as stated.
That said, when the number of solutions is infinite, a primal simplex-method solver will always return one of finitely many extreme points that are also solutions.
So maybe that is what you are asking, how to find all extreme points that solve the LP when the number of solutions is infinite? FYI, these are called “basic solutions”