3 ms·
(The generalized term for a polyhedron in higher dimensions is a polytope, by the way.) Don't forget that you can also use LP relaxation ("well, what if we did
by vitus 4y ago
(The generalized term for a polyhedron in higher dimensions is a polytope, by the way.)
Don't forget that you can also use LP relaxation ("well, what if we didn't need everything to be integral?"). If it comes out with integral weights (as was the case in the original example, modulo floating point error), then you're done as the sibling commenter points out. If you're willing to accept approximate solutions to your integer program, you can just pick a point near the "optimal" solution.
And, of course, modern IP solvers will use the relaxed LP problem to implement "cheap" upper bounds (assuming MAX, per standard form) for entire branches of the solution space, as the optimal solution to a less-constrained problem is never worse than for the more-constrained problem (since any feasible assignment remains so if you remove a constraint).