Originally posted by: eLiu
Originally posted by: drinkmorejava
you can have a curve intersecting a line many many times but not infinitely. Since when does linear programming mean no curves? The two variable part of you question makes no sense; you can manipulate any one variable to get a curve out of it...or just do x^2 and you get a parabola that can hit a line twice. Anyone could easily write a linear program to find the two intersection points.
No... linear programming works on stuff like this:
maximize: c1*x1 + c2*x2 + ... + cn*xn
with constraints:
a11*x1 + a12*x2 + ...+ a1n*xn <= b1
...
an1*x1 + .... ... + ann*xn <= bn
Also possible to enforce something like xi>=0, for certain i
Edit: Are you counting corner solutions? B/c if I enforce x1, x2>=0, then the solutions are the intersections of the 2 lines, and the intersections with the coordinate axes. So it could be that the corner solutions are both optimal...