Minimizing piecewise-concave functions over polyhedra