Algorithms and heuristics for variable-yield lot sizing