A genetic algorithm for the lot-sizing and scheduling problem